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