angularjs-requirejs-rjs-md5

A boilerplate for angularjs, 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 only need one command: gulp

Added by: Sam Deering

GitHub

Repository

lmk123/angularjs-requirejs-rjs-md5

Stats

Stars: 101

Watchers: 101

Forks: 43

Author

Milk Lee
Milk Lee

Module Description

angularjs-requirejs-rjs-md5

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.

Online preview is here.

How dose it lazyload controllers (or filters, directives and so on)?

See app/bootstrap.js.

How dose it use gulp to handle files?

The gulp command has follow steps:

  1. Compress files form app folder to build folder;
  2. Use r.js to combine files and output to build-requirejs;
  3. Then use gulp-rev-all to rename files to a md5 filename and output to cdn.

See gulpfile.js for more infomation.

Use E2E Test

Install protractor, then run npm test.

License

MIT

Module stats last updated: 2017-04-28 16:00:03

Disclaimer: Some data on this page may have been gathered from the authors GitHub respository. If you see any mistakes or outdated information please let us know. Thanks!