fis-cloud-app-autopack
Advanced tools
Comparing version 0.0.3 to 0.0.6
@@ -124,3 +124,4 @@ //todo : 记录打包中的各个过程 | ||
var svns = [], | ||
project = req.param("project"); | ||
project = req.param("project"), | ||
staticType = req.param("staticType"); | ||
for(var i=1; i<=svn_num; i++){ | ||
@@ -144,4 +145,19 @@ var svn = req.param("svn" + i); | ||
//todo : 测试阶段添加特殊url后续会删除 | ||
var url = "http://wangcheng.fe.baidu.com/Fis_Static_Count.201311160000"; | ||
autoPackager.package(outputDir, resultDir, project, modules, url, function(error, result){ | ||
var url = "http://wangcheng.fe.baidu.com/Fis_Static_Count.201312130000"; | ||
//选择需要打包的静态资源类型 | ||
switch (staticType){ | ||
case "js" : | ||
staticType = ["js"]; | ||
break; | ||
case "css" : | ||
staticType = ["css"]; | ||
break; | ||
case "all": | ||
staticType = ["js", "css"]; | ||
break; | ||
default : | ||
staticType = ["js", "css"]; | ||
break; | ||
} | ||
autoPackager.package(outputDir, resultDir, project, modules, staticType, url, function(error, result){ | ||
res.render("result", { | ||
@@ -148,0 +164,0 @@ "descs" : descriptions, |
{ | ||
"name": "fis-cloud-app-autopack", | ||
"version": "0.0.3", | ||
"version": "0.0.6", | ||
"description": "fis-cloud-app-autopack", | ||
@@ -5,0 +5,0 @@ "main": "fis-cloud-app-autopack.js", |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
114648
500
1