fis-command-release
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -32,3 +32,3 @@ /* | ||
} else { | ||
file.deliver(dest.root + dest.to, dest.md5); | ||
file.deliver(dest.to, dest.md5); | ||
} | ||
@@ -51,8 +51,7 @@ } | ||
if(opt.to){ | ||
opt.to = normilize(opt.to); | ||
opt.to = fis.util(opt.to); | ||
} else if(/^output\b/.test(d)){ //local | ||
opt.to = normilize(d); | ||
opt.to = fis.util(root, d); | ||
} else if(d === 'preview'){ | ||
opt.root = fis.project.getTempPath('www'); | ||
opt.to = '/'; | ||
opt.to = fis.project.getTempPath('www'); | ||
} else { | ||
@@ -65,3 +64,3 @@ fis.log.error('invalid deploy destination options [' + d + ']'); | ||
dests.forEach(function(d){ | ||
if(file.release.indexOf(d.from) === 0){ | ||
if(file.release.indexOf(d.from) === 0 && fis.util.filter(file.subpath, d.include, d.exclude)){ | ||
deploy(d, file, fis); | ||
@@ -68,0 +67,0 @@ } |
{ | ||
"name" : "fis-command-release", | ||
"description" : "fis release command.", | ||
"version" : "0.3.2", | ||
"version" : "0.3.3", | ||
"author" : "FIS Team <fis@baidu.com>", | ||
@@ -6,0 +6,0 @@ "homepage" : "http://fis.baidu.com/", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9492
218