Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 1.07 KB

README.md

File metadata and controls

22 lines (17 loc) · 1.07 KB

#RequireJS DEMO

A wide sample of Usage of RequireJS created after a quick read given to Instant Dependency Management with RequireJS How-to. The application is served by a very simple NodeJS/Express server

The sample covers:

  • RequireJS Basic configuration (client/js/app/config/main.js)
  • RequireJS Basic usage (client/simpleIndex.html)
  • AMD compliant module definition (client/js/app/sample.js)
  • Platform and environment dependent file configuration (client/index.html)
  • Jasmine unit test RequireJS-based (client/test.html)
  • RequireJS optimization via r.js (client/js/app/config/build.js and client/js/app/config/build-single.js)

In particular The sample focus on facing problems such as: