AngularJS Lazy load project seed, with minimal Karma.
If Gulp! or Bower aren't installed:
npm install bower -g
npm install gulp -g
If is a fresh clone of this project:
bower install
npm install
From here and for future sessions:
gulp
(this is one man show, start the server a watch for file changes, to reload at needs to be reloaded)
To generate the CSS file:
gulp less
To lint all the Javascript (app/js
) files:
gulp lint
For more details have a look at gulpfile.js
.
If is your first time:
npm install karma -g
npm install karma-requirejs -g
npm install karma-jasmine -g
npm install karma-phantomjs-launcher -g
npm install karma-firefox-launcher -g
To run test tests and watch changes:
karma start
(the example of karma-runner/gulp-karma isn't working properly and isn't a problem!)
- Test runner (with Karma)
gulp test
- Build to dist folder (using r.js "on references")
gulp build