fis-kernel
Advanced tools
Comparing version 2.0.9 to 2.0.10
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -20,9 +20,9 @@ /* | ||
if (fis.util.is(exclude, 'Array')){ | ||
project_exclude = exclude.concat([project_exclude]); | ||
project_exclude = [project_exclude].concat(exclude); | ||
}else if (exclude){ | ||
project_exclude = [project_exclude, exclude]; | ||
} | ||
fis.util.find(root, null, project_exclude).forEach(function(file){ | ||
fis.util.find(root, include, project_exclude, root).forEach(function(file){ | ||
file = fis.file(file); | ||
if(file.release && fis.util.filter(file.subpath, include, exclude)){ | ||
source[file.subpath] = file; | ||
} | ||
source[file.subpath] = file; | ||
}); | ||
@@ -29,0 +29,0 @@ return source; |
@@ -0,0 +0,0 @@ /* |
@@ -22,4 +22,4 @@ /* | ||
return value.replace(/\$(\d+|&)/g, function(all, $1){ | ||
var val = matches[$1 === '&' ? '0' : $1]; | ||
return (typeof val == 'undefined') ? all : val; | ||
var key = $1 === '&' ? '0' : $1; | ||
return matches.hasOwnProperty(key) ? (matches[key] || '') : all; | ||
}); | ||
@@ -26,0 +26,0 @@ } |
@@ -513,14 +513,15 @@ /* | ||
_.find = function(rPath, include, exclude){ | ||
_.find = function(rPath, include, exclude, root){ | ||
var list = [], | ||
path = _.realpath(rPath); | ||
path = _.realpath(rPath), | ||
filterPath = root ? path.substring(root.length) : path; | ||
if(path){ | ||
var stat = fs.statSync(path); | ||
if(stat.isDirectory()){ | ||
if(stat.isDirectory() && (include || _.filter(filterPath, include, exclude))){ | ||
fs.readdirSync(path).forEach(function(p){ | ||
if(p[0] != '.') { | ||
list = list.concat(_.find(path + '/' + p, include, exclude)); | ||
list = list.concat(_.find(path + '/' + p, include, exclude, root)); | ||
} | ||
}); | ||
} else if(stat.isFile() && _.filter(path, include, exclude)) { | ||
} else if(stat.isFile() && _.filter(filterPath, include, exclude)) { | ||
list.push(path); | ||
@@ -527,0 +528,0 @@ } |
@@ -0,0 +0,0 @@ Copyright (C) 2013 baidu.com |
{ | ||
"name": "fis-kernel", | ||
"description": "fis kernel.", | ||
"version": "2.0.9", | ||
"version": "2.0.10", | ||
"author": "FIS Team <fis@baidu.com>", | ||
@@ -30,4 +30,5 @@ "homepage": "http://fis.baidu.com/", | ||
"fis-optimizer-uglify-js": "0.1.2", | ||
"fis-packager-map": "0.0.9" | ||
"fis-packager-map": "0.0.9", | ||
"mocha": "^2.0.1" | ||
} | ||
} |
# FIS Kernel | ||
This is fis kernel. |
Sorry, the diff of this file is not supported yet
81436
2365
5