-
Notifications
You must be signed in to change notification settings - Fork 8
Development
uupaa edited this page Jul 7, 2014
·
29 revisions
-
Install Node.js
$ brew install node
-
Set NODE_PATH
# for Mac user export NODE_PATH="/usr/local/lib/node_modules"
-
Install development dependency tools
$ npm install -g plato $ npm install -g jshint $ npm install -g http-server $ npm install -g uupaa.compile.js
-
Clone WebModule Repository
$ git clone git@github.com....git # git clone git@github.com:uupaa/Foo.js.git $ cd {{MyWebModule}} # cd Foo.js
-
npm install
$ npm install
-
Build and Minify
$ npm run build
-
Test
$ npm run test-page # at first time $ npm run test
-
Lint
$ npm run lint
Easy to run
npm install; npm run build; npm run test-page; npm run test;