Skip to content
uupaa edited this page May 11, 2014 · 29 revisions

for WebModule Developers

  1. Install Node.js

    $ brew install node
  2. Set NODE_PATH

    export NODE_PATH="/usr/local/lib/node_modules"
  3. Install development dependency tools

    $ npm install -g plato
    $ npm install -g uupaa.compile.js
  4. Clone WebModule Repository

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

    $ npm install
  6. Build and Minify

    $ npm run build

  7. Test

    $ npm run test-page   # at first time
    $ npm run test
  8. Lint

    $ npm run lint

Clone this wiki locally