This will get you up and running an Angular app with all the fixings. Routing, error handling, logging, styling, Gulp builds, tests, ci, code analysis and much more. Most of this is from John Papa and all the work he puts into the Angular world. http://www.johnpapa.net/
- Node, Bower, Gulp
npm install -g node-inspector bower gulp
Clone this repo and run the content locally
$ npm install
$ bower install
$ gulp serve-dev-
gulp helpDisplays all of the available gulp tasks.
-
gulp vetPerforms static code analysis on all javascript files. Runs jshint and jscs.
-
gulp serve-specsServes and browses to the spec runner html page and runs the unit tests in it. Injects any changes on the fly and re runs the tests. Quick and easy view of tests as an alternative to terminal via
gulp test. -
gulp testRuns all unit tests using karma runner, mocha, chai and sinon with phantomjs. Depends on vet task, for code analysis.
-
gulp test --startServersRuns all unit tests and midway tests. Cranks up a second node process to run a server for the midway tests to hit a web api.
-
gulp autotestRuns a watch to run all unit tests.
-
gulp autotest --startServersRuns a watch to run all unit tests and midway tests. Cranks up a second node process to run a server for the midway tests to hit a web api.
-
gulp serve-devServes the development code and launches it in a browser. The goal of building for development is to do it as fast as possible, to keep development moving efficiently. This task serves all code from the source folders and compiles less to css in a temp folder.
-
gulp serve-buildServe the optimized code from the build folder and launch it in a browser.