requirejs-library-skeleton

RequireJS skeleton for modern JS libraries.

RequireJS skeleton for modern JS libraries.

This template is a starting point for developing modern javascript modules and libraries. Dependency management is handled by the AMD loader RequireJS. Unit testing is implemented with the BDD framework Jasmine. Compilation is handled with r.js and almond--the result is a single file with no external dependencies that runs in Node or the browser (with AMD, or as an inline script).

How to build (node.js is required):

node vendor/r.js -o build.js

This generates a minified/optimized file under build/app.js.

  • @jrburke for the fantastic tools RequireJS/r.js & almond.
  • @pivotal for the intuitive testing framework Jasmine.