diff --git a/aop.profile.js b/aop.profile.js new file mode 100644 index 0000000..2d1e7a0 --- /dev/null +++ b/aop.profile.js @@ -0,0 +1,20 @@ +var profile = (function(){ + var testRE = /^aop\/test\//; + return { + resourceTags: { + test: function(filename, mid){ + // Tag test files as such + return testRE.test(mid); + }, + amd: function(filename, mid){ + // Tag the module as AMD so it doesn't get + // wrapped by the Dojo builder + return mid == "aop/aop"; + }, + copyOnly: function(filename, mid){ + // Don't process package.json + return mid == "aop/package.json"; + } + } + }; +})(); diff --git a/package.json b/package.json index 4a90204..3b79ccd 100644 --- a/package.json +++ b/package.json @@ -31,5 +31,6 @@ "main": "./aop", "directories": { "test": "test" - } -} \ No newline at end of file + }, + "dojoBuild": "aop.profile.js" +}