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
appand output tobuild-requirejs; - Compress files form
build-requirejsfolder tobuildfolder; - Then use gulp-rev-all to rename files to a md5 filename from
buildand output tocdn.
See gulpfile.js for more infomation.
Install protractor, then run npm test.
MIT