- JSLint
- Testing with Mocha + Chai
- Front-end building with RequireJS + RequireCSS
-
Install
node
-
Checkout project:
git clone git://github.com/nkbt/build.git build cd build
-
Install dependencies:
npm install
-
Run linter and perform tests:
npm test
-
Build assets:
npm run-script build
-
Run app ind
dev
(default, serves all assets from ./public) orprod
(serves all assets from ./build):node app <dev|prod>
-
Go to http://localhost:3000
All files are loaded dynamically from dev host.
All local files are built into single prod.js, 3rd-party libs are loaded from CDN.