Skip to content

Commit

Permalink
add a dojo build profile
Browse files Browse the repository at this point in the history
This only tells Dojo about moment.js and lang/*.js.
  • Loading branch information
djmitche committed Nov 26, 2012
1 parent 5a99019 commit f18f4eb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion moment.js
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,7 @@
}
/*global define:false */
if (typeof define === "function" && define.amd) {
define("moment", [], function () {
define(function () {
return moment;
});
}
Expand Down
11 changes: 11 additions & 0 deletions package.js
Original file line number Diff line number Diff line change
@@ -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);
}
}
};
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.