Permalink
Browse files

add a dojo build profile

This only tells Dojo about moment.js and lang/*.js.
  • Loading branch information...
1 parent 5a99019 commit f18f4eb71d891fd035093c0f76657abbb794b485 @djmitche djmitche committed Nov 25, 2012
Showing with 14 additions and 2 deletions.
  1. +1 −1 moment.js
  2. +11 −0 package.js
  3. +2 −1 package.json
View
@@ -1288,7 +1288,7 @@
}
/*global define:false */
if (typeof define === "function" && define.amd) {
- define("moment", [], function () {
+ define(function () {
return moment;
});
}
View
@@ -0,0 +1,11 @@
+var profile = {
+ resourceTags: {
+ ignore: function(filename, mid){
+ // only include moment/moment
+ return mid != "moment/moment";
+ },
+ amd: function(filename, mid){
+ return /\.js$/.test(filename);
+ }
+ }
+};
View
@@ -42,5 +42,6 @@
"scripts": {
"test": "grunt"
},
- "ender": "./ender.js"
+ "ender": "./ender.js",
+ "dojoBuild": "package.js"
}

0 comments on commit f18f4eb

Please sign in to comment.