Skip to content

Instantly share code, notes, and snippets.

@udkl
Created January 1, 2014 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save udkl/8210640 to your computer and use it in GitHub Desktop.
Save udkl/8210640 to your computer and use it in GitHub Desktop.
A boilerplate for creating a AMD module using the CommonJS format.
define(function (require) {
// import dependencies
var defineComponent = require('./lib/component');
// export component constructor
return defineComponent(helloWorld);
// component definition
function helloWorld () {};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment