fis-command-release
Advanced tools
Comparing version 0.11.2 to 0.11.3
@@ -54,2 +54,3 @@ /* | ||
if(dest.replace && dest.replace.from){ | ||
var reg = dest.replace.from; | ||
@@ -84,3 +85,2 @@ if(typeof reg === 'string'){ | ||
file.setContent(content); | ||
} | ||
@@ -93,3 +93,3 @@ if(file.useHash && dest.opt.md5 > 0){ | ||
} | ||
callback && callback(processors[dest._type], dest, release, file, settings[dest._name]); | ||
callback && callback(processors[dest._type], dest, release, file, content, settings[dest._name]); | ||
} else { | ||
@@ -123,4 +123,4 @@ fis.log.error('unreleasable file [' + file.realpath + ']'); | ||
asyncTasks.push(function(cb){ | ||
prepareDeploy(task.dest, task.file, function(processor, dest, release, file, settings){ | ||
processor({to: dest.to, release: release}, file, dest, function(){ | ||
prepareDeploy(task.dest, task.file, function(processor, dest, release, file, content, settings){ | ||
processor({to: dest.to, release: release}, file, content, dest, function(){ | ||
//https://github.com/caolan/async/issues/75 | ||
@@ -144,3 +144,3 @@ //call async.parallelLimit with a sync function might cause Maximum call stack size exceeded | ||
tasks.forEach(function(task){ | ||
prepareDeploy(task.dest, task.file, function(processor, dest, release, file, settings){ | ||
prepareDeploy(task.dest, task.file, function(processor, dest, release, file, content, settings){ | ||
taskSettings = settings; | ||
@@ -153,3 +153,4 @@ taskProcessor = processor; | ||
}, | ||
file: file | ||
file: file, | ||
content: content | ||
}); | ||
@@ -156,0 +157,0 @@ }); |
{ | ||
"name": "fis-command-release", | ||
"description": "fis release command.", | ||
"version": "0.11.2", | ||
"version": "0.11.3", | ||
"author": "FIS Team <fis@baidu.com>", | ||
@@ -6,0 +6,0 @@ "homepage": "http://fis.baidu.com/", |
59221