[Pkg-javascript-commits] [dojo] 123/149: refs #18648, exclude node_modules directory with dojo package for builds
David Prévot
taffit at moszumanska.debian.org
Sat Feb 27 03:13:55 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository dojo.
commit c9c04061f13f50db35f694c04967c99217127bf2
Author: Dylan Schiemann <dylan at dojotoolkit.org>
Date: Thu Dec 31 09:37:29 2015 -0700
refs #18648, exclude node_modules directory with dojo package for builds
---
dojo.profile.js | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/dojo.profile.js b/dojo.profile.js
index 6ecc802..7a2f24d 100644
--- a/dojo.profile.js
+++ b/dojo.profile.js
@@ -1,5 +1,6 @@
var profile = (function(){
var testResourceRe = /^dojo\/tests(?:DOH)?\//,
+ nodeModulesRe = /\/node_modules\//,
copyOnly = function(filename, mid){
var list = {
@@ -19,13 +20,14 @@ var profile = (function(){
/^dojo\/_base\/config\w+$/.test(mid) ||
(/^dojo\/resources\//.test(mid) && !/\.css$/.test(filename)) ||
/(png|jpg|jpeg|gif|tiff)$/.test(filename) ||
+ nodeModulesRe.test(mid) ||
/built\-i18n\-test\/152\-build/.test(mid);
};
return {
resourceTags:{
test: function(filename, mid){
- return testResourceRe.test(mid) || mid=="dojo/tests" || mid=="dojo/robot" || mid=="dojo/robotx";
+ return testResourceRe.test(mid) || mid=="dojo/robot" || mid=="dojo/robotx";
},
copyOnly: function(filename, mid){
@@ -34,6 +36,10 @@ var profile = (function(){
amd: function(filename, mid){
return !testResourceRe.test(mid) && !copyOnly(filename, mid) && /\.js$/.test(filename);
+ },
+
+ miniExclude: function(filename, mid){
+ return nodeModulesRe.test(mid);
}
}
};
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/dojo.git
More information about the Pkg-javascript-commits
mailing list