larsthorup / jsdevenv

Creating a build environment for JavaScript projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jsdevenv

Build Status

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

About

Creating a build environment for JavaScript projects

License:MIT License


Languages

Language:JavaScript 100.0%