Skip to content

Instantly share code, notes, and snippets.

@stdavis
Created March 29, 2016 17:11
Show Gist options
  • Select an option

  • Save stdavis/ab2cdaca1d71097f78988b077d8da5e2 to your computer and use it in GitHub Desktop.

Select an option

Save stdavis/ab2cdaca1d71097f78988b077d8da5e2 to your computer and use it in GitHub Desktop.
moment package definition for Dojo build system
{
packages: [{
name: 'moment',
main: 'moment',
resourceTags: {
amd: function (filename) {
return /\.js$/.test(filename);
},
test: function (filename, mid) {
return /\/tests/.test(mid);
},
miniExclude: function (filename, mid) {
return /\/src/.test(mid) || /\/templates/.test(mid);
}
}
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment