Skip to content
uupaa edited this page Jul 30, 2014 · 29 revisions

for WebModule Developers

  1. Install Node.js. ( need Homebrew )

    $ brew install node
  2. Add a NODE_PATH environment variable.

    # for Mac user
    
    export NODE_PATH="/usr/local/lib/node_modules"
  3. Install development dependency tools.

    $ npm install -g plato
    $ npm install -g jshint
    $ npm install -g http-server
    $ npm install -g uupaa.compile.js
  4. Clone WebModule repository.

    $ git clone git@github.com:uupaa/Foo.js.git
    $ cd Foo.js
  5. npm install.

    $ npm install
  6. Build and Minify.

    $ npm run build
  7. Tests.

    $ npm run test-page   # at first time. build test/index.html, test/index.node.js 
    $ npm run test        # at every time. open test/index.html, test/index.node.js
    $ npm run test-sim    # at sometimes. run iOS Simulator
  8. Check and Lint.

    $ npm run hint       # run jshint lib/*.js 
    $ npm run lint       # run coverage tools

Easy to run.

npm install; npm run build; npm run test-page; npm run test;

Clone this wiki locally