From: Dustin J. Mitchell Date: Sun, 25 Nov 2012 20:54:56 +0000 (-0500) Subject: add a dojo build profile X-Git-Tag: 2.0.0~25^2~1^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f18f4eb71d891fd035093c0f76657abbb794b485;p=thirdparty%2Fmoment.git add a dojo build profile This only tells Dojo about moment.js and lang/*.js. --- diff --git a/moment.js b/moment.js index 12ae51f48..c7a71685b 100644 --- a/moment.js +++ b/moment.js @@ -1288,7 +1288,7 @@ } /*global define:false */ if (typeof define === "function" && define.amd) { - define("moment", [], function () { + define(function () { return moment; }); } diff --git a/package.js b/package.js new file mode 100644 index 000000000..aba8d502e --- /dev/null +++ b/package.js @@ -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); + } + } +}; diff --git a/package.json b/package.json index 1ab7ebe6b..74c95f2c2 100755 --- a/package.json +++ b/package.json @@ -42,5 +42,6 @@ "scripts": { "test": "grunt" }, - "ender": "./ender.js" + "ender": "./ender.js", + "dojoBuild": "package.js" }