A boilerplate for angularjs. It use requirejs to lazyload controllers, filters, directives...and so on, then use r.js to suitable combine these files as modules and compress them , finally use gulp-rev-all to rename these files to a md5 filename.
All of these operations only need one command: gulp
.
Online preview is here. User your network panel from dev tool to check the files load status.
See app/bootstrap.js.
The gulp
command has follow steps:
- Use r.js to combine files from
app
and output tobuild-requirejs
; - Compress files form
build-requirejs
folder tobuild
folder; - Then use gulp-rev-all to rename files to a md5 filename from
build
and output tocdn
.
See gulpfile.js for more infomation.
Install protractor, then run npm test
.
MIT