Skip to content

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

Notifications You must be signed in to change notification settings

wntd/angularjs-requirejs-rjs-md5

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 82.0%
  • HTML 14.7%
  • CSS 3.3%