Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add Dojo build packaging.

  • Loading branch information...
commit a598ea522c6890e64b65ef86ce9334fe42720d08 1 parent 4b55763
@csnover csnover authored
Showing with 26 additions and 1 deletion.
  1. +24 −0 package.js
  2. +2 −1  package.json
View
24 package.js
@@ -0,0 +1,24 @@
+var miniExcludes = {
+ "dgrid/CHANGES.md": 1,
+ "dgrid/LICENSE": 1,
+ "dgrid/README.md": 1,
+ "dgrid/package": 1
+ },
+ isTestRe = /\/test\//;
+
+var profile = {
+ resourceTags: {
+ test: function(filename, mid){
+ return isTestRe.test(filename);
+ },
+
+ miniExclude: function(filename, mid){
+ console.log(mid);
+ return /\/(?:test|demos)\//.test(filename) || mid in miniExcludes;
+ },
+
+ amd: function(filename, mid){
+ return /\.js$/.test(filename);
+ }
+ }
+};
View
3  package.json
@@ -25,5 +25,6 @@
"lib": "."
},
"main": "./OnDemandGrid",
- "icon": "http://packages.dojofoundation.org/images/dgrid.png"
+ "icon": "http://packages.dojofoundation.org/images/dgrid.png",
+ "dojoBuild": "package.js"
}
Please sign in to comment.
Something went wrong with that request. Please try again.