Skip to content

Commit 4fdb144

Browse files
committed
Committing a minified version for broad usage
1 parent 21123bf commit 4fdb144

File tree

8 files changed

+44
-1146
lines changed

8 files changed

+44
-1146
lines changed

LICENSE

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2014 marmelab
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in
11+
all copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ build: clean
44
@(cd $(BUILD_DIR) && r.js -o build.js)
55

66
clean:
7-
@(rm gremlins.js)
7+
@(rm gremlins.min.js)

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ horde.unleash(10);
2222

2323
## Installation
2424

25-
In the browser, the `gremlins.js` file can be used as a standalone library:
25+
In the browser, the `gremlins.min.js` file can be used as a standalone library:
2626

2727
```html
28-
<script src="path/to/gremlins.js"></script>
28+
<script src="path/to/gremlins.min.js"></script>
2929
<script>
3030
gremlins
3131
.createHorde()
@@ -34,12 +34,12 @@ gremlins
3434
</script>
3535
```
3636

37-
Alternately, you can include `gremlins.js` as a RequireJS module:
37+
Alternately, you can include `gremlins.min.js` as a RequireJS module:
3838

3939
```js
4040
require.config({
4141
paths: {
42-
gremlins: 'path/to/gremlins.js'
42+
gremlins: 'path/to/gremlins.min'
4343
}
4444
});
4545

build/build.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@
77
startFile: '../build/start.frag',
88
endFile: '../build/end.frag'
99
},
10-
out: '../gremlins.js',
11-
optimize: 'none'
10+
out: '../gremlins.min.js'
1211
})

demo/main.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ require.config({
33
/*
44
// alternative: use the packaged version
55
paths: {
6-
gremlins: '../gremlins'
6+
gremlins: '../gremlins.min'
77
}
88
*/
9-
109
});
1110

1211
require(['gremlins'], function(gremlins) {

0 commit comments

Comments
 (0)