jsdevenv
A sample build environment for JavaScript projects.
Prerequisites:
- install node.js
then
npm install
From the browser
run all tests
file://(path-to)/src/test/index.html
run app
http://localhost:8080/
From the command line
continuously lint and test on every save
grunt watch
perform static analysis
grunt lint
run all tests (results in output\testresults)
grunt test
produce test coverage statistics (in output\coverage\out\coverage.html)
grunt coverage
serve source application
grunt serve:src wait
compress and minify (in output\bundle)
grunt bundle
serve bundled application
grunt serve:bundle wait