Created
January 1, 2014 19:15
-
-
Save udkl/8210640 to your computer and use it in GitHub Desktop.
A boilerplate for creating a AMD module using the CommonJS format.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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