You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can also add a second argument `compress`. With `compress`, the resulting
80
-
bundle file will be compressed for smaller file size as well as obfuscated.
93
+
More Help
94
+
===========
81
95
82
-
`minify-app.sh` will create the bundled file `app.min.js` in your app's
83
-
`javascript` folder.
96
+
See the [GameJs Website](http://gamejs.org) for more help or drop us
97
+
an email in the [Mailing List](http://groups.google.com/group/gamejs).
84
98
85
-
With browserify
86
-
----------------
99
+
Example application can be found in the `examples/` directory.
87
100
88
-
If you already have nodejs installed, this might be convinient:
101
+
Development - How to build
102
+
===================
89
103
90
-
npm install -g browserify
91
-
npm install gamejs
104
+
GameJs consists of CommonJs modules in `./src/` which we build and jshint with grunt. If you don't already have node and npm, install those. You will also need `java` on your path for building the CommonJs files.
92
105
106
+
Install then grunt commandline interface:
93
107
94
-
GameJs Contribution
95
-
===================
108
+
$ npm install -g grunt-cli
96
109
97
-
Don't forget to `./bin/build.sh` when modifying the source.
98
110
99
-
All applications use a bundled JavaScript file which contains all the
100
-
GameJs source files; thus if you modify the files below `./lib` your
101
-
changes won't show up in the examples unless you re-build the source files
102
-
with the `./bin/build.sh` command.
111
+
In the GameJs folder you cloned, install the dependencies to build using npm:
103
112
104
-
Unit Tests
105
-
--------------
113
+
$ npm install
106
114
107
-
We use QUnit <https://github.com/jquery/qunit> for the GameJs unit tests. Execute
108
-
the tests by opening `tests/index.html`.
115
+
Build GameJs:
109
116
110
-
JsDoc
111
-
----------
112
-
For the JavaScript documentation system, RingoJs must be installed on your system.
117
+
$ grunt
113
118
114
-
$ ./bin/create-jsdoc.sh
119
+
This will create the `gamejs-VERSION.js` file and a minified `gamejs-VERSION.min.js` which you can use standalone in the browser, as demonstrated in the examples.
0 commit comments