Skip to content

Commit

Permalink
Add dojo build package profile
Browse files Browse the repository at this point in the history
  • Loading branch information
kriszyp committed Oct 10, 2014
1 parent b6e9e81 commit bf35063
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
25 changes: 25 additions & 0 deletions package.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
var miniExcludes = {
"rql/README.md": 1,
"rql/package": 1
},
amdExcludes = {
},
isJsRe = /\.js$/,
isTestRe = /\/test\//,
isSpecificationRe = /\/specification\//;

var profile = {
resourceTags: {
test: function(filename, mid){
return isTestRe.test(filename);
},

miniExclude: function(filename, mid){
return isTestRe.test(filename) || isSpecificationRe.test(filename) || mid in miniExcludes;
},

amd: function(filename, mid){
return isJsRe.test(filename) && !(mid in amdExcludes);
}
}
};
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@
"devDependencies": {
"patr": ">0.2.6"
},
"icon": "http://packages.dojofoundation.org/images/persvr.png"
"icon": "http://packages.dojofoundation.org/images/persvr.png",
"dojoBuild": "package.js"
}

0 comments on commit bf35063

Please sign in to comment.