-
Notifications
You must be signed in to change notification settings - Fork 8
Development
uupaa edited this page Aug 11, 2014
·
29 revisions
-
$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" $ brew -v > Homebrew 0.9.5 $ brew install -g node $ npm -v > 1.4.6
-
Add a NODE_PATH.
$ echo 'export NODE_PATH="/usr/local/lib/node_modules"' >> ${HOME}/.zshrc $ source ${HOME}/.zshrc $ env | grep NODE_PATH > NODE_PATH=/usr/local/lib/node_modules
-
Install dependency npm modules.
$ npm install -g plato $ npm install -g jshint $ npm install -g http-server $ npm install -g uupaa.compile.js
Create
TBD
Clone
$ git clone [email protected]:uupaa/{{WebModuleName}}.js.git
$ cd {{WebModuleName}}.js$ npm run init # npm update
# npm run build
# npm run test-page# edit lib/{{WebModuleName}}.js
$ npm run hint # run jshint lib/*.js
$ npm run test # npm test/index.node.js
# open test/index.html
$ npm run test-sim # run MobileSafari on iOS Simulator$ npm run lint # run coverage tools$ npm run vup # update patch version
> update patch version. 0.0.1 -> 0.0.2$ git add .
$ git commit -m "message"
$ git push
$ npm publish