From cced3ab63d6b5e8f4f1613762fc91257fa131856 Mon Sep 17 00:00:00 2001 From: xiangshouding Date: Thu, 7 May 2015 08:33:28 +0800 Subject: [PATCH 01/51] 1.9.17 --- CHANGELOG.md | 17 +++++++++++++++++ node_modules/fis-command-server | 2 +- node_modules/fis-deploy-default | 2 +- node_modules/fis-postprocessor-jswrapper | 2 +- package.json | 8 ++++---- 5 files changed, 24 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b110be0..8901fca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,20 @@ +## 1.9.17 / Wed May 06 2015 + +> 升级 fis-command-server至v1.7.4 + +> 升级 fis-deploy-default至v0.0.6 + +> 升级 fis-postprocessor-jswrapper至v0.0.11 + +- 修正 `fis server {open|clean}`, `fis release -d preview` 服务器 root 一致性问题; + + 当用户 `fis server start --root=` 设定了某一个目录为服务器 root,那么后续执行 + `fis server open`、`fis server clean`、`fis release` 的时候都会操作这个目录。这个 root + 信息会被保存,现在未提供**重置**的接口。 + +- 修正 jswrapper 如果一个文件已经 define 的情况下仍然去做 define 的问题 +- 更新了所有依赖的代码,可方便在 fis 仓库查看 fis 依赖的核心代码。 + ## 1.9.16 / Wed Apr 29 2015 > 升级 fis-preprocessor-components 到 0.1.18 diff --git a/node_modules/fis-command-server b/node_modules/fis-command-server index 6ee12da..678fdf7 160000 --- a/node_modules/fis-command-server +++ b/node_modules/fis-command-server @@ -1 +1 @@ -Subproject commit 6ee12daa1a339422ec5a9d2db468d0ae4d5c22a7 +Subproject commit 678fdf761a2a82e48cc0d92b42cfdd8d4352c917 diff --git a/node_modules/fis-deploy-default b/node_modules/fis-deploy-default index 7b471d7..096566f 160000 --- a/node_modules/fis-deploy-default +++ b/node_modules/fis-deploy-default @@ -1 +1 @@ -Subproject commit 7b471d7c879119aad13c5bf6708c38511a7ba085 +Subproject commit 096566fc0f7d9ef794db136d8e0f9f52605277d4 diff --git a/node_modules/fis-postprocessor-jswrapper b/node_modules/fis-postprocessor-jswrapper index 8e8607c..2c375b7 160000 --- a/node_modules/fis-postprocessor-jswrapper +++ b/node_modules/fis-postprocessor-jswrapper @@ -1 +1 @@ -Subproject commit 8e8607cd760b0636134bcfb407b3f929d85c8149 +Subproject commit 2c375b74bb45316975ff79ee5ac6b3ea655a9048 diff --git a/package.json b/package.json index e7ced1e..efce974 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.9.17", + "version": "1.9.18", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ @@ -29,15 +29,15 @@ "commander": "1.3.2", "fis-command-install": "~0.1.11", "fis-command-release": "0.11.6", - "fis-command-server": "0.7.3", - "fis-deploy-default": "0.0.5", + "fis-command-server": "0.7.4", + "fis-deploy-default": "0.0.6", "fis-kernel": "2.0.12", "fis-preprocessor-components": "1.0.19", "fis-optimizer-clean-css": "0.0.9", "fis-optimizer-png-compressor": "0.0.8", "fis-optimizer-uglify-js": "0.1.7", "fis-packager-map": "0.0.9", - "fis-postprocessor-jswrapper": "0.0.10", + "fis-postprocessor-jswrapper": "0.0.11", "fis-spriter-csssprites": "0.2.9", "fis-prepackager-derived": "~0.0.2" } From 314536fed60c91ccb28277a4f0e453a2d8a1c8bb Mon Sep 17 00:00:00 2001 From: xiangshouding Date: Thu, 7 May 2015 08:35:42 +0800 Subject: [PATCH 02/51] 1.9.18 --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8901fca..88c144e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 1.9.17 / Wed May 06 2015 +## 1.9.18 / Wed May 06 2015 > 升级 fis-command-server至v1.7.4 From 3970115dd81d09a7085952209ae53a3027be11a0 Mon Sep 17 00:00:00 2001 From: xiangshouding Date: Tue, 12 May 2015 15:39:49 +0800 Subject: [PATCH 03/51] 1.9.19 --- CHANGELOG.md | 10 ++++++++++ node_modules/fis-optimizer-png-compressor | 2 +- node_modules/fis-spriter-csssprites | 2 +- package.json | 6 +++--- 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 88c144e..aec95f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +## 1.9.19 / Tue May 12 2015 + +> 升级 fis-optimizer-png-compressor至v0.1.0 + +> 升级 fis-spriter-csssprites至v0.3.0 + +- 禁止 png 图片压缩时 `libpng` warning 信息输出 +- 提升 Linux x64 上的图片压缩的稳定性,提升 csssprites 的稳定性 +- 提供 Linux / Unix 系统下手动编译依赖图形工具的教程及其编译脚本,放置某些系统由于 glibc 版本过低导致已提供二进制扩展无法加载的问题; + ## 1.9.18 / Wed May 06 2015 > 升级 fis-command-server至v1.7.4 diff --git a/node_modules/fis-optimizer-png-compressor b/node_modules/fis-optimizer-png-compressor index 03824ef..8c0a3e6 160000 --- a/node_modules/fis-optimizer-png-compressor +++ b/node_modules/fis-optimizer-png-compressor @@ -1 +1 @@ -Subproject commit 03824ef680bd9cdedfa6f40ee9cd115da9222f0d +Subproject commit 8c0a3e64e583c40230224e481585a1ba5774e94c diff --git a/node_modules/fis-spriter-csssprites b/node_modules/fis-spriter-csssprites index 08b4e25..09baa28 160000 --- a/node_modules/fis-spriter-csssprites +++ b/node_modules/fis-spriter-csssprites @@ -1 +1 @@ -Subproject commit 08b4e257e4ddfcc43e990d21b5a0dbd3ff3f92d5 +Subproject commit 09baa28fa200daacc75f8cc2b91f73ac1ea034bf diff --git a/package.json b/package.json index efce974..e800df3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.9.18", + "version": "1.9.19", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ @@ -34,11 +34,11 @@ "fis-kernel": "2.0.12", "fis-preprocessor-components": "1.0.19", "fis-optimizer-clean-css": "0.0.9", - "fis-optimizer-png-compressor": "0.0.8", + "fis-optimizer-png-compressor": "0.1.0", "fis-optimizer-uglify-js": "0.1.7", "fis-packager-map": "0.0.9", "fis-postprocessor-jswrapper": "0.0.11", - "fis-spriter-csssprites": "0.2.9", + "fis-spriter-csssprites": "0.3.0", "fis-prepackager-derived": "~0.0.2" } } From bb8e3a2b0cfa8d79170ab344647290eb5b7d9db5 Mon Sep 17 00:00:00 2001 From: xiangshouding Date: Tue, 12 May 2015 15:42:50 +0800 Subject: [PATCH 04/51] fix --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aec95f9..c9b99eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ - 禁止 png 图片压缩时 `libpng` warning 信息输出 - 提升 Linux x64 上的图片压缩的稳定性,提升 csssprites 的稳定性 -- 提供 Linux / Unix 系统下手动编译依赖图形工具的教程及其编译脚本,放置某些系统由于 glibc 版本过低导致已提供二进制扩展无法加载的问题; +- 提供 Linux / Unix 系统下手动编译依赖图形工具的教程及其编译脚本,以防某些系统由于 glibc 版本过低导致已提供二进制扩展无法加载时方便修复; ## 1.9.18 / Wed May 06 2015 From 82d2fba94bcec9872856ccfd1daa65a1e9bd334f Mon Sep 17 00:00:00 2001 From: xiangshouding Date: Tue, 12 May 2015 18:45:55 +0800 Subject: [PATCH 05/51] update --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c9b99eb..71d2448 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ - 禁止 png 图片压缩时 `libpng` warning 信息输出 - 提升 Linux x64 上的图片压缩的稳定性,提升 csssprites 的稳定性 -- 提供 Linux / Unix 系统下手动编译依赖图形工具的教程及其编译脚本,以防某些系统由于 glibc 版本过低导致已提供二进制扩展无法加载时方便修复; +- 提供 Linux / Unix 系统下手动编译依赖图形工具的[教程]()及其[编译脚本](https://github.com/xiangshouding/some-scripts/blob/master/install-fis-image-deps.sh),以防某些系统由于 glibc 版本过低导致已提供二进制扩展无法加载时方便修复; ## 1.9.18 / Wed May 06 2015 From 817672328030572e7dc3a0a8f337295c4a1791c6 Mon Sep 17 00:00:00 2001 From: xiangshouding Date: Tue, 12 May 2015 19:08:01 +0800 Subject: [PATCH 06/51] update --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 71d2448..6baf24a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ > 升级 fis-spriter-csssprites至v0.3.0 -- 禁止 png 图片压缩时 `libpng` warning 信息输出 +- 禁止 png 图片压缩时 `libpng` warning 信息输出 (非 Windows 环境) - 提升 Linux x64 上的图片压缩的稳定性,提升 csssprites 的稳定性 - 提供 Linux / Unix 系统下手动编译依赖图形工具的[教程]()及其[编译脚本](https://github.com/xiangshouding/some-scripts/blob/master/install-fis-image-deps.sh),以防某些系统由于 glibc 版本过低导致已提供二进制扩展无法加载时方便修复; From 120c265db743a06e12c2a83abf5a183a8ed754ba Mon Sep 17 00:00:00 2001 From: hefangshi Date: Wed, 13 May 2015 14:00:16 +0800 Subject: [PATCH 07/51] release 1.9.20 --- .gitmodules | 3 +++ node_modules/fis-preprocessor-components | 1 + package.json | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) create mode 160000 node_modules/fis-preprocessor-components diff --git a/.gitmodules b/.gitmodules index e28db70..1777325 100644 --- a/.gitmodules +++ b/.gitmodules @@ -31,3 +31,6 @@ [submodule "node_modules/fis-deploy-default"] path = node_modules/fis-deploy-default url = https://github.com/fex-team/fis-deploy-default +[submodule "node_modules/fis-preprocessor-components"] + path = node_modules/fis-preprocessor-components + url = https://github.com/fex-team/fis-preprocessor-components diff --git a/node_modules/fis-preprocessor-components b/node_modules/fis-preprocessor-components new file mode 160000 index 0000000..c267bdb --- /dev/null +++ b/node_modules/fis-preprocessor-components @@ -0,0 +1 @@ +Subproject commit c267bdb15d3e06be5585283a28643967442d85af diff --git a/package.json b/package.json index e800df3..097c391 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.9.19", + "version": "1.9.20", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ @@ -37,7 +37,7 @@ "fis-optimizer-png-compressor": "0.1.0", "fis-optimizer-uglify-js": "0.1.7", "fis-packager-map": "0.0.9", - "fis-postprocessor-jswrapper": "0.0.11", + "fis-postprocessor-jswrapper": "0.0.12", "fis-spriter-csssprites": "0.3.0", "fis-prepackager-derived": "~0.0.2" } From 53ff4eb885ef2ea81ba00ae4a31aa8703183db56 Mon Sep 17 00:00:00 2001 From: Sighless Date: Wed, 13 May 2015 14:01:55 +0800 Subject: [PATCH 08/51] Update CHANGELOG.md --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6baf24a..cb0b9b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 1.9.19 / Wed May 13 2015 + +> 升级 fis-postprocessor-jswrapper至v0.0.12 + +- 恢复原有 `define` 包裹逻辑,防止现有代码异常 + ## 1.9.19 / Tue May 12 2015 > 升级 fis-optimizer-png-compressor至v0.1.0 From 39756a439d08a6550d9abce8bd5e584f798483e6 Mon Sep 17 00:00:00 2001 From: zhangtao07 Date: Wed, 13 May 2015 14:39:15 +0800 Subject: [PATCH 09/51] update fis-command-server --- CHANGELOG.md | 9 ++++++++- package.json | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cb0b9b0..65a5246 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,11 @@ -## 1.9.19 / Wed May 13 2015 + +## 1.9.21 / Wed May 13 2015 + +> 升级 fis-command-server至v0.7.5 + +- 本地调试支持https服务器 + +## 1.9.20 / Wed May 13 2015 > 升级 fis-postprocessor-jswrapper至v0.0.12 diff --git a/package.json b/package.json index 097c391..da62681 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.9.20", + "version": "1.9.21", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ @@ -29,7 +29,7 @@ "commander": "1.3.2", "fis-command-install": "~0.1.11", "fis-command-release": "0.11.6", - "fis-command-server": "0.7.4", + "fis-command-server": "0.7.5", "fis-deploy-default": "0.0.6", "fis-kernel": "2.0.12", "fis-preprocessor-components": "1.0.19", From d6d0c5199a75e85c794e292db06ee80a26153a17 Mon Sep 17 00:00:00 2001 From: 2betop Date: Tue, 26 May 2015 16:23:36 +0800 Subject: [PATCH 10/51] upgrade fis --- CHANGELOG.md | 12 ++++++++---- package.json | 4 ++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 65a5246..9379798 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,15 @@ -## 1.9.21 / Wed May 13 2015 +## 1.9.22 / Tue May 26 2015 + +> 升级 fis-kenerl 至 v2.0.13 + +## 1.9.21 / Wed May 13 2015 > 升级 fis-command-server至v0.7.5 - 本地调试支持https服务器 -## 1.9.20 / Wed May 13 2015 +## 1.9.20 / Wed May 13 2015 > 升级 fis-postprocessor-jswrapper至v0.0.12 @@ -19,9 +23,9 @@ - 禁止 png 图片压缩时 `libpng` warning 信息输出 (非 Windows 环境) - 提升 Linux x64 上的图片压缩的稳定性,提升 csssprites 的稳定性 -- 提供 Linux / Unix 系统下手动编译依赖图形工具的[教程]()及其[编译脚本](https://github.com/xiangshouding/some-scripts/blob/master/install-fis-image-deps.sh),以防某些系统由于 glibc 版本过低导致已提供二进制扩展无法加载时方便修复; +- 提供 Linux / Unix 系统下手动编译依赖图形工具的[教程]()及其[编译脚本](https://github.com/xiangshouding/some-scripts/blob/master/install-fis-image-deps.sh),以防某些系统由于 glibc 版本过低导致已提供二进制扩展无法加载时方便修复; -## 1.9.18 / Wed May 06 2015 +## 1.9.18 / Wed May 06 2015 > 升级 fis-command-server至v1.7.4 diff --git a/package.json b/package.json index da62681..93ac1b2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.9.21", + "version": "1.9.22", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ @@ -31,7 +31,7 @@ "fis-command-release": "0.11.6", "fis-command-server": "0.7.5", "fis-deploy-default": "0.0.6", - "fis-kernel": "2.0.12", + "fis-kernel": "2.0.13", "fis-preprocessor-components": "1.0.19", "fis-optimizer-clean-css": "0.0.9", "fis-optimizer-png-compressor": "0.1.0", From ea9a611a145e9097bddc14dd8bf8fdf3f42da0b4 Mon Sep 17 00:00:00 2001 From: 2betop Date: Tue, 26 May 2015 20:00:30 +0800 Subject: [PATCH 11/51] bugfix --- CHANGELOG.md | 4 ++-- package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9379798..3d1a94c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ -## 1.9.22 / Tue May 26 2015 +## 1.9.23 / Tue May 26 2015 -> 升级 fis-kenerl 至 v2.0.13 +> 升级 fis-kenerl 至 v2.0.14 ## 1.9.21 / Wed May 13 2015 diff --git a/package.json b/package.json index 93ac1b2..e8c3d7b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.9.22", + "version": "1.9.23", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ @@ -31,7 +31,7 @@ "fis-command-release": "0.11.6", "fis-command-server": "0.7.5", "fis-deploy-default": "0.0.6", - "fis-kernel": "2.0.13", + "fis-kernel": "2.0.14", "fis-preprocessor-components": "1.0.19", "fis-optimizer-clean-css": "0.0.9", "fis-optimizer-png-compressor": "0.1.0", From de5b1a4cb9cbfabfc940d7ea09cdac82d9014d2b Mon Sep 17 00:00:00 2001 From: 2betop Date: Tue, 26 May 2015 21:02:12 +0800 Subject: [PATCH 12/51] bugfix --- CHANGELOG.md | 4 ++-- package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d1a94c..ef16f5f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ -## 1.9.23 / Tue May 26 2015 +## 1.9.24 / Tue May 26 2015 -> 升级 fis-kenerl 至 v2.0.14 +> 升级 fis-kenerl 至 v2.0.15 ## 1.9.21 / Wed May 13 2015 diff --git a/package.json b/package.json index e8c3d7b..6842030 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.9.23", + "version": "1.9.24", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ @@ -31,7 +31,7 @@ "fis-command-release": "0.11.6", "fis-command-server": "0.7.5", "fis-deploy-default": "0.0.6", - "fis-kernel": "2.0.14", + "fis-kernel": "2.0.15", "fis-preprocessor-components": "1.0.19", "fis-optimizer-clean-css": "0.0.9", "fis-optimizer-png-compressor": "0.1.0", From 1286c369d36bd1fdd3c6274e78173ff212dbb815 Mon Sep 17 00:00:00 2001 From: 2betop Date: Wed, 27 May 2015 15:07:04 +0800 Subject: [PATCH 13/51] upgrade fis release command --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6842030..2b42fc9 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.9.24", + "version": "1.9.25", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ @@ -28,7 +28,7 @@ "colors": "0.6.2", "commander": "1.3.2", "fis-command-install": "~0.1.11", - "fis-command-release": "0.11.6", + "fis-command-release": "0.11.8", "fis-command-server": "0.7.5", "fis-deploy-default": "0.0.6", "fis-kernel": "2.0.15", From 8a25c10ac8b2a52bee743e8337d884d1f1d0c668 Mon Sep 17 00:00:00 2001 From: xiangshouding Date: Mon, 8 Jun 2015 17:20:58 +0800 Subject: [PATCH 14/51] 1.9.26 --- CHANGELOG.md | 8 ++++++++ node_modules/fis-command-install | 2 +- node_modules/fis-command-release | 2 +- node_modules/fis-command-server | 2 +- node_modules/fis-kernel | 2 +- node_modules/fis-optimizer-uglify-js | 2 +- node_modules/fis-postprocessor-jswrapper | 2 +- package.json | 8 ++++---- 8 files changed, 18 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ef16f5f..1bff2c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## 1.9.26 / Mon Jun 08 2015 + +> 升级 fis-command-release 至 v0.12.0 + +- 修复 Bug #455 +- 修复 Bug #527 +- project.exclude & project.include 过滤条件也在 watch 时能正常工作 +- 固定 fis-command-install 的版本号 ## 1.9.24 / Tue May 26 2015 diff --git a/node_modules/fis-command-install b/node_modules/fis-command-install index 1b79f87..a74e098 160000 --- a/node_modules/fis-command-install +++ b/node_modules/fis-command-install @@ -1 +1 @@ -Subproject commit 1b79f87dcacdb2fb5cea1a83cd0944bfc6bf75ec +Subproject commit a74e098672ff3bbc64f401c32e33a1939f0e6688 diff --git a/node_modules/fis-command-release b/node_modules/fis-command-release index edd589f..65bef50 160000 --- a/node_modules/fis-command-release +++ b/node_modules/fis-command-release @@ -1 +1 @@ -Subproject commit edd589f13af745050fadbf10ef79bbf957e28bd8 +Subproject commit 65bef50000c3af8d849be37736d856a4ee1cb4c4 diff --git a/node_modules/fis-command-server b/node_modules/fis-command-server index 678fdf7..11744a9 160000 --- a/node_modules/fis-command-server +++ b/node_modules/fis-command-server @@ -1 +1 @@ -Subproject commit 678fdf761a2a82e48cc0d92b42cfdd8d4352c917 +Subproject commit 11744a9244ed9399127248e48e2fc724dc621469 diff --git a/node_modules/fis-kernel b/node_modules/fis-kernel index 3661aa0..2532c9d 160000 --- a/node_modules/fis-kernel +++ b/node_modules/fis-kernel @@ -1 +1 @@ -Subproject commit 3661aa0f991967495beae5be30effb58d1d62dc2 +Subproject commit 2532c9d7627beb9ee6e9656535080ae98658c6db diff --git a/node_modules/fis-optimizer-uglify-js b/node_modules/fis-optimizer-uglify-js index fc63888..1e04d37 160000 --- a/node_modules/fis-optimizer-uglify-js +++ b/node_modules/fis-optimizer-uglify-js @@ -1 +1 @@ -Subproject commit fc63888b9da14b11492e7ea8cc3ac0df5cf725b9 +Subproject commit 1e04d3757bd854310dbbce266696941537bd5184 diff --git a/node_modules/fis-postprocessor-jswrapper b/node_modules/fis-postprocessor-jswrapper index 2c375b7..8c30df3 160000 --- a/node_modules/fis-postprocessor-jswrapper +++ b/node_modules/fis-postprocessor-jswrapper @@ -1 +1 @@ -Subproject commit 2c375b74bb45316975ff79ee5ac6b3ea655a9048 +Subproject commit 8c30df33e02c9bf26c35cfd3b642e3c1b69d1a4a diff --git a/package.json b/package.json index 2b42fc9..ceb3ae3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.9.25", + "version": "1.9.26", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ @@ -27,8 +27,8 @@ "dependencies": { "colors": "0.6.2", "commander": "1.3.2", - "fis-command-install": "~0.1.11", - "fis-command-release": "0.11.8", + "fis-command-install": "0.1.28", + "fis-command-release": "0.12.0", "fis-command-server": "0.7.5", "fis-deploy-default": "0.0.6", "fis-kernel": "2.0.15", @@ -39,6 +39,6 @@ "fis-packager-map": "0.0.9", "fis-postprocessor-jswrapper": "0.0.12", "fis-spriter-csssprites": "0.3.0", - "fis-prepackager-derived": "~0.0.2" + "fis-prepackager-derived": "0.0.3" } } From f8d73743f7cc374908cac950ba348238bb2a5e30 Mon Sep 17 00:00:00 2001 From: xiangshouding Date: Mon, 8 Jun 2015 17:27:12 +0800 Subject: [PATCH 15/51] update --- CHANGELOG.md | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1bff2c1..29b17e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,14 @@ ## 1.9.26 / Mon Jun 08 2015 > 升级 fis-command-release 至 v0.12.0 +> 升级 fis-kernel 至 v2.0.16 - 修复 Bug #455 - 修复 Bug #527 - project.exclude & project.include 过滤条件也在 watch 时能正常工作 - 固定 fis-command-install 的版本号 +- 支持 img `srcset` + ## 1.9.24 / Tue May 26 2015 diff --git a/package.json b/package.json index ceb3ae3..a7ea828 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "fis-command-release": "0.12.0", "fis-command-server": "0.7.5", "fis-deploy-default": "0.0.6", - "fis-kernel": "2.0.15", + "fis-kernel": "2.0.16", "fis-preprocessor-components": "1.0.19", "fis-optimizer-clean-css": "0.0.9", "fis-optimizer-png-compressor": "0.1.0", From f697c87f33ec7279db2f161fa0b04c9ab5899cb2 Mon Sep 17 00:00:00 2001 From: xiangshouding Date: Mon, 8 Jun 2015 17:28:43 +0800 Subject: [PATCH 16/51] add \n --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 29b17e1..5f74f31 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ ## 1.9.26 / Mon Jun 08 2015 -> 升级 fis-command-release 至 v0.12.0 +> 升级 fis-command-release 至 v0.12.0
> 升级 fis-kernel 至 v2.0.16 - 修复 Bug #455 From 1d9183c59afed520bfc5b2e8526500092d7029d1 Mon Sep 17 00:00:00 2001 From: xiangshouding Date: Thu, 11 Jun 2015 08:00:34 +0800 Subject: [PATCH 17/51] 1.9.27 --- CHANGELOG.md | 8 ++++++++ node_modules/fis-command-release | 2 +- node_modules/fis-kernel | 2 +- package.json | 6 +++--- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f74f31..ebafef0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## 1.9.27 / Thu Jun 11 2015 + +> 升级 fis-kernel 至 v2.0.17
+> 升级 fis-commond-release 至 v0.12.1 + +- 修复 Bug [#530](https://github.com/fex-team/fis/issues/530) + - 缓存 File 对象导致的 watch 两次相互影响的问题 + ## 1.9.26 / Mon Jun 08 2015 > 升级 fis-command-release 至 v0.12.0
diff --git a/node_modules/fis-command-release b/node_modules/fis-command-release index 65bef50..9f39f22 160000 --- a/node_modules/fis-command-release +++ b/node_modules/fis-command-release @@ -1 +1 @@ -Subproject commit 65bef50000c3af8d849be37736d856a4ee1cb4c4 +Subproject commit 9f39f22c76f470f94be843a177c5f6481da26f9f diff --git a/node_modules/fis-kernel b/node_modules/fis-kernel index 2532c9d..23a63e0 160000 --- a/node_modules/fis-kernel +++ b/node_modules/fis-kernel @@ -1 +1 @@ -Subproject commit 2532c9d7627beb9ee6e9656535080ae98658c6db +Subproject commit 23a63e007794aaac20637f4e169ef902e64bcaf2 diff --git a/package.json b/package.json index a7ea828..c46dcc3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.9.26", + "version": "1.9.27", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ @@ -28,10 +28,10 @@ "colors": "0.6.2", "commander": "1.3.2", "fis-command-install": "0.1.28", - "fis-command-release": "0.12.0", + "fis-command-release": "0.12.1", "fis-command-server": "0.7.5", "fis-deploy-default": "0.0.6", - "fis-kernel": "2.0.16", + "fis-kernel": "2.0.17", "fis-preprocessor-components": "1.0.19", "fis-optimizer-clean-css": "0.0.9", "fis-optimizer-png-compressor": "0.1.0", From 3ab99586a09114df96f2be684c4ae589d0b8909c Mon Sep 17 00:00:00 2001 From: 2betop Date: Mon, 15 Jun 2015 18:05:59 +0800 Subject: [PATCH 18/51] update --- CHANGELOG.md | 4 ++++ package.json | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ebafef0..37ec62e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.9.28 / Mon Jun 15 2015 + +> 升级 fis-command-release 解决 watch 时文件夹被删的 bug. + ## 1.9.27 / Thu Jun 11 2015 > 升级 fis-kernel 至 v2.0.17
diff --git a/package.json b/package.json index c46dcc3..1b4c4f6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.9.27", + "version": "1.9.28", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ @@ -28,7 +28,7 @@ "colors": "0.6.2", "commander": "1.3.2", "fis-command-install": "0.1.28", - "fis-command-release": "0.12.1", + "fis-command-release": "0.12.2", "fis-command-server": "0.7.5", "fis-deploy-default": "0.0.6", "fis-kernel": "2.0.17", From a4fa1af319e00187fc30de3a2cca25c24f46ec67 Mon Sep 17 00:00:00 2001 From: 2betop Date: Wed, 8 Jul 2015 12:37:25 +0800 Subject: [PATCH 19/51] upgrade fis-command-install --- CHANGELOG.md | 4 ++++ package.json | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 37ec62e..9f84d0e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.9.29 / Wed Jul 08 2015 + +> 升级 fis-command-install,解决 component.json 可能被替换成 0 的问题。 + ## 1.9.28 / Mon Jun 15 2015 > 升级 fis-command-release 解决 watch 时文件夹被删的 bug. diff --git a/package.json b/package.json index 1b4c4f6..0a3bceb 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.9.28", + "version": "1.9.29", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ @@ -27,7 +27,7 @@ "dependencies": { "colors": "0.6.2", "commander": "1.3.2", - "fis-command-install": "0.1.28", + "fis-command-install": "0.1.29", "fis-command-release": "0.12.2", "fis-command-server": "0.7.5", "fis-deploy-default": "0.0.6", From 1e57d57090d08f0c2f7e04e2eb73bd46e98b68d6 Mon Sep 17 00:00:00 2001 From: 2betop Date: Wed, 22 Jul 2015 14:57:55 +0800 Subject: [PATCH 20/51] update --- CHANGELOG.md | 4 ++++ package.json | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f84d0e..82cfd3f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.9.30 / Wed Jul 22 2015 + +- 升级 fis-command-install 通过镜像下载 fis-components。 + ## 1.9.29 / Wed Jul 08 2015 > 升级 fis-command-install,解决 component.json 可能被替换成 0 的问题。 diff --git a/package.json b/package.json index 0a3bceb..ab4ae7e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.9.29", + "version": "1.9.30", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ @@ -27,7 +27,7 @@ "dependencies": { "colors": "0.6.2", "commander": "1.3.2", - "fis-command-install": "0.1.29", + "fis-command-install": "0.2.1", "fis-command-release": "0.12.2", "fis-command-server": "0.7.5", "fis-deploy-default": "0.0.6", From e6ccb88f114a129bccbae9d9175fe82aa9b97cbc Mon Sep 17 00:00:00 2001 From: 2betop Date: Wed, 29 Jul 2015 22:29:49 +0800 Subject: [PATCH 21/51] update fis-optimizer-uglify-js --- CHANGELOG.md | 4 ++++ package.json | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 82cfd3f..9199a98 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.9.31 / Wed Jul 29 2015 + +- 升级 fis-optimizer-uglify-js, 优化 sourcemap + ## 1.9.30 / Wed Jul 22 2015 - 升级 fis-command-install 通过镜像下载 fis-components。 diff --git a/package.json b/package.json index ab4ae7e..098cab7 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.9.30", + "version": "1.9.31", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ @@ -35,7 +35,7 @@ "fis-preprocessor-components": "1.0.19", "fis-optimizer-clean-css": "0.0.9", "fis-optimizer-png-compressor": "0.1.0", - "fis-optimizer-uglify-js": "0.1.7", + "fis-optimizer-uglify-js": "0.1.11", "fis-packager-map": "0.0.9", "fis-postprocessor-jswrapper": "0.0.12", "fis-spriter-csssprites": "0.3.0", From 69a16d0fefabb70190f98888abb84bb6bdecb63c Mon Sep 17 00:00:00 2001 From: 2betop Date: Tue, 18 Aug 2015 18:06:16 +0800 Subject: [PATCH 22/51] upgrade fis-optimizer-uglify-js --- CHANGELOG.md | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9199a98..5b19723 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.9.32 / Tue Aug 18 2015 + +- 升级 fis-optimizer-uglify-js, 修复 uglify 报错时的提示错误。 + ## 1.9.31 / Wed Jul 29 2015 - 升级 fis-optimizer-uglify-js, 优化 sourcemap diff --git a/package.json b/package.json index 098cab7..b951425 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "fis-preprocessor-components": "1.0.19", "fis-optimizer-clean-css": "0.0.9", "fis-optimizer-png-compressor": "0.1.0", - "fis-optimizer-uglify-js": "0.1.11", + "fis-optimizer-uglify-js": "0.1.12", "fis-packager-map": "0.0.9", "fis-postprocessor-jswrapper": "0.0.12", "fis-spriter-csssprites": "0.3.0", From 203efc488c3d3ae551acbd301a8ebee5e3a71f93 Mon Sep 17 00:00:00 2001 From: 2betop Date: Tue, 18 Aug 2015 18:06:54 +0800 Subject: [PATCH 23/51] upgrade fis-optimizer-uglify-js --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b951425..949692e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.9.31", + "version": "1.9.32", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ From af132bc0204aa99f34340f299141fbe1b0fa319e Mon Sep 17 00:00:00 2001 From: xiangshouding Date: Fri, 21 Aug 2015 16:03:38 +0800 Subject: [PATCH 24/51] 1.9.33 --- CHANGELOG.md | 4 ++++ node_modules/fis-command-install | 2 +- node_modules/fis-command-release | 2 +- node_modules/fis-command-server | 2 +- node_modules/fis-kernel | 2 +- node_modules/fis-optimizer-clean-css | 2 +- node_modules/fis-optimizer-uglify-js | 2 +- package.json | 4 ++-- 8 files changed, 12 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b19723..eb62eb8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.9.33 / Tue Aug 21 2015 + +- hotfix [fex-team/fis#646](https://github.com/fex-team/fis/issues/646) + ## 1.9.32 / Tue Aug 18 2015 - 升级 fis-optimizer-uglify-js, 修复 uglify 报错时的提示错误。 diff --git a/node_modules/fis-command-install b/node_modules/fis-command-install index a74e098..52e6211 160000 --- a/node_modules/fis-command-install +++ b/node_modules/fis-command-install @@ -1 +1 @@ -Subproject commit a74e098672ff3bbc64f401c32e33a1939f0e6688 +Subproject commit 52e62118a0b572787a5e5995da7cb79be4871ade diff --git a/node_modules/fis-command-release b/node_modules/fis-command-release index 9f39f22..fe66677 160000 --- a/node_modules/fis-command-release +++ b/node_modules/fis-command-release @@ -1 +1 @@ -Subproject commit 9f39f22c76f470f94be843a177c5f6481da26f9f +Subproject commit fe66677c417fc03a5a3be0beace355d67d558596 diff --git a/node_modules/fis-command-server b/node_modules/fis-command-server index 11744a9..d6443d1 160000 --- a/node_modules/fis-command-server +++ b/node_modules/fis-command-server @@ -1 +1 @@ -Subproject commit 11744a9244ed9399127248e48e2fc724dc621469 +Subproject commit d6443d1cedda1d34579838ac435dba056c54c68e diff --git a/node_modules/fis-kernel b/node_modules/fis-kernel index 23a63e0..49db1c9 160000 --- a/node_modules/fis-kernel +++ b/node_modules/fis-kernel @@ -1 +1 @@ -Subproject commit 23a63e007794aaac20637f4e169ef902e64bcaf2 +Subproject commit 49db1c91564f90ea77aefb9feb2b6c5c755df2cd diff --git a/node_modules/fis-optimizer-clean-css b/node_modules/fis-optimizer-clean-css index 85db8d2..54bbf23 160000 --- a/node_modules/fis-optimizer-clean-css +++ b/node_modules/fis-optimizer-clean-css @@ -1 +1 @@ -Subproject commit 85db8d2de618b8f75a7c62ed9bf24093b7974d58 +Subproject commit 54bbf2300e6fab785ef20ec16d4ba5263b704d27 diff --git a/node_modules/fis-optimizer-uglify-js b/node_modules/fis-optimizer-uglify-js index 1e04d37..d9d6cc0 160000 --- a/node_modules/fis-optimizer-uglify-js +++ b/node_modules/fis-optimizer-uglify-js @@ -1 +1 @@ -Subproject commit 1e04d3757bd854310dbbce266696941537bd5184 +Subproject commit d9d6cc09528e417e8ed141b591b6e2baca20dc68 diff --git a/package.json b/package.json index 949692e..78c192d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.9.32", + "version": "1.9.33", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ @@ -35,7 +35,7 @@ "fis-preprocessor-components": "1.0.19", "fis-optimizer-clean-css": "0.0.9", "fis-optimizer-png-compressor": "0.1.0", - "fis-optimizer-uglify-js": "0.1.12", + "fis-optimizer-uglify-js": "0.1.13", "fis-packager-map": "0.0.9", "fis-postprocessor-jswrapper": "0.0.12", "fis-spriter-csssprites": "0.3.0", From 41d25d0a8e12d171542aa152d554a40a6ddd9df6 Mon Sep 17 00:00:00 2001 From: 2betop Date: Sat, 10 Oct 2015 13:44:55 +0800 Subject: [PATCH 25/51] update fis-optimizer-uglify-js --- CHANGELOG.md | 4 ++++ package.json | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eb62eb8..9124fff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.9.34 / Sat Oct 10 2015 + +- 更新 fis-optimizer-uglify-js,支持sourcemap 文件 domain 设置。 + ## 1.9.33 / Tue Aug 21 2015 - hotfix [fex-team/fis#646](https://github.com/fex-team/fis/issues/646) diff --git a/package.json b/package.json index 78c192d..45bc533 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.9.33", + "version": "1.9.34", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ @@ -35,7 +35,7 @@ "fis-preprocessor-components": "1.0.19", "fis-optimizer-clean-css": "0.0.9", "fis-optimizer-png-compressor": "0.1.0", - "fis-optimizer-uglify-js": "0.1.13", + "fis-optimizer-uglify-js": "0.1.14", "fis-packager-map": "0.0.9", "fis-postprocessor-jswrapper": "0.0.12", "fis-spriter-csssprites": "0.3.0", From f581f35a9c3309e572dfd5175a5e33c650d1fda1 Mon Sep 17 00:00:00 2001 From: 2betop Date: Thu, 29 Oct 2015 18:16:17 +0800 Subject: [PATCH 26/51] node 4.x support --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 45bc533..912ae27 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.9.34", + "version": "1.9.35", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ @@ -34,11 +34,11 @@ "fis-kernel": "2.0.17", "fis-preprocessor-components": "1.0.19", "fis-optimizer-clean-css": "0.0.9", - "fis-optimizer-png-compressor": "0.1.0", + "fis-optimizer-png-compressor": "0.1.2", "fis-optimizer-uglify-js": "0.1.14", "fis-packager-map": "0.0.9", "fis-postprocessor-jswrapper": "0.0.12", - "fis-spriter-csssprites": "0.3.0", + "fis-spriter-csssprites": "0.3.3", "fis-prepackager-derived": "0.0.3" } } From 8de211ce3a24afa7525a6ef9ac8df04004141f5a Mon Sep 17 00:00:00 2001 From: 2betop Date: Thu, 29 Oct 2015 20:41:25 +0800 Subject: [PATCH 27/51] =?UTF-8?q?=E8=A7=A3=E5=86=B3=20windows=20=E4=B8=8B?= =?UTF-8?q?=20node=204=20=E4=B8=8D=E6=94=AF=E6=8C=81=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 912ae27..d01a1bd 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.9.35", + "version": "1.9.36", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ @@ -38,7 +38,7 @@ "fis-optimizer-uglify-js": "0.1.14", "fis-packager-map": "0.0.9", "fis-postprocessor-jswrapper": "0.0.12", - "fis-spriter-csssprites": "0.3.3", + "fis-spriter-csssprites": "0.3.4", "fis-prepackager-derived": "0.0.3" } } From 74dd724401b7b9086679a0f9b2a47c5e9b9bed3e Mon Sep 17 00:00:00 2001 From: 2betop Date: Fri, 30 Oct 2015 16:27:41 +0800 Subject: [PATCH 28/51] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20csssprite=20?= =?UTF-8?q?=EF=BC=8C=E8=A7=A3=E5=86=B3=20css=20sprite=20=E5=A4=B1=E6=95=88?= =?UTF-8?q?=E7=9A=84=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d01a1bd..d7c19a1 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.9.36", + "version": "1.9.37", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ @@ -38,7 +38,7 @@ "fis-optimizer-uglify-js": "0.1.14", "fis-packager-map": "0.0.9", "fis-postprocessor-jswrapper": "0.0.12", - "fis-spriter-csssprites": "0.3.4", + "fis-spriter-csssprites": "0.3.5", "fis-prepackager-derived": "0.0.3" } } From a92144e31f5e3d31d3de8f745ae2d683001382ce Mon Sep 17 00:00:00 2001 From: 2betop Date: Mon, 16 Nov 2015 16:27:55 +0800 Subject: [PATCH 29/51] 1.9.38 --- CHANGELOG.md | 4 ++++ package.json | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9124fff..4df1cd9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.9.38 / Mon Nov 16 2015 +- 更新 node 4.x 支持 +- 更新 fis-kernel 解决编译机并发编译问题。 + ## 1.9.34 / Sat Oct 10 2015 - 更新 fis-optimizer-uglify-js,支持sourcemap 文件 domain 设置。 diff --git a/package.json b/package.json index d7c19a1..2208243 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.9.37", + "version": "1.9.38", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ @@ -31,7 +31,7 @@ "fis-command-release": "0.12.2", "fis-command-server": "0.7.5", "fis-deploy-default": "0.0.6", - "fis-kernel": "2.0.17", + "fis-kernel": "2.0.18", "fis-preprocessor-components": "1.0.19", "fis-optimizer-clean-css": "0.0.9", "fis-optimizer-png-compressor": "0.1.2", From 451616a33b5b56d078d33a17f15aaeb27c3ddca0 Mon Sep 17 00:00:00 2001 From: 2betop Date: Fri, 20 Nov 2015 11:19:27 +0800 Subject: [PATCH 30/51] 1.9.39 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2208243..2bd7af7 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.9.38", + "version": "1.9.39", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ @@ -27,7 +27,7 @@ "dependencies": { "colors": "0.6.2", "commander": "1.3.2", - "fis-command-install": "0.2.1", + "fis-command-install": "0.2.4", "fis-command-release": "0.12.2", "fis-command-server": "0.7.5", "fis-deploy-default": "0.0.6", From 045f20398b7292a1adc756e56fb61f9c0aee4cec Mon Sep 17 00:00:00 2001 From: 2betop Date: Fri, 15 Jan 2016 01:40:18 +0800 Subject: [PATCH 31/51] upgrad fis-command-install --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2bd7af7..af33091 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.9.39", + "version": "1.9.40", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ @@ -27,7 +27,7 @@ "dependencies": { "colors": "0.6.2", "commander": "1.3.2", - "fis-command-install": "0.2.4", + "fis-command-install": "0.2.12", "fis-command-release": "0.12.2", "fis-command-server": "0.7.5", "fis-deploy-default": "0.0.6", From e4426788114327bad174e9edb0219acf4323d184 Mon Sep 17 00:00:00 2001 From: 2betop Date: Fri, 15 Jan 2016 17:17:42 +0800 Subject: [PATCH 32/51] =?UTF-8?q?=E5=8D=87=E7=BA=A7=20fis-command-install?= =?UTF-8?q?=20=E4=BC=98=E5=8C=96=20install=20=E7=9A=84=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index af33091..228ce71 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.9.40", + "version": "1.9.41", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ @@ -27,7 +27,7 @@ "dependencies": { "colors": "0.6.2", "commander": "1.3.2", - "fis-command-install": "0.2.12", + "fis-command-install": "0.2.13", "fis-command-release": "0.12.2", "fis-command-server": "0.7.5", "fis-deploy-default": "0.0.6", From 1408b82f762b0ca0313af2b25b135006d84fd693 Mon Sep 17 00:00:00 2001 From: 2betop Date: Tue, 19 Jan 2016 15:37:58 +0800 Subject: [PATCH 33/51] =?UTF-8?q?=E5=8D=87=E7=BA=A7=20pngcrush=20=E5=88=B0?= =?UTF-8?q?=E6=9C=80=E6=96=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 228ce71..fd61a84 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.9.41", + "version": "1.9.42", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ @@ -34,7 +34,7 @@ "fis-kernel": "2.0.18", "fis-preprocessor-components": "1.0.19", "fis-optimizer-clean-css": "0.0.9", - "fis-optimizer-png-compressor": "0.1.2", + "fis-optimizer-png-compressor": "0.1.3", "fis-optimizer-uglify-js": "0.1.14", "fis-packager-map": "0.0.9", "fis-postprocessor-jswrapper": "0.0.12", From 7e008a75ee80c2d873d59225c9572c5aa6f20577 Mon Sep 17 00:00:00 2001 From: 2betop Date: Mon, 15 Feb 2016 11:45:02 +0800 Subject: [PATCH 34/51] =?UTF-8?q?=E5=8D=87=E7=BA=A7=20install=E6=8F=92?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index fd61a84..7d0e233 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.9.42", + "version": "1.9.43", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ @@ -27,7 +27,7 @@ "dependencies": { "colors": "0.6.2", "commander": "1.3.2", - "fis-command-install": "0.2.13", + "fis-command-install": "0.2.15", "fis-command-release": "0.12.2", "fis-command-server": "0.7.5", "fis-deploy-default": "0.0.6", From 80f6cec17ab493c475c253845d877d073755647f Mon Sep 17 00:00:00 2001 From: 2betop Date: Thu, 25 Feb 2016 11:05:08 +0800 Subject: [PATCH 35/51] upgrade dependencies --- CHANGELOG.md | 8 ++++++-- package.json | 6 +++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4df1cd9..8ab9265 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.9.44 / Thu Feb 25 2016 + +- 升级依赖中多个二进制插件版本选择错误的版本修复。 + ## 1.9.38 / Mon Nov 16 2015 - 更新 node 4.x 支持 - 更新 fis-kernel 解决编译机并发编译问题。 @@ -26,11 +30,11 @@ > 升级 fis-command-install,解决 component.json 可能被替换成 0 的问题。 -## 1.9.28 / Mon Jun 15 2015 +## 1.9.28 / Mon Jun 15 2015 > 升级 fis-command-release 解决 watch 时文件夹被删的 bug. -## 1.9.27 / Thu Jun 11 2015 +## 1.9.27 / Thu Jun 11 2015 > 升级 fis-kernel 至 v2.0.17
> 升级 fis-commond-release 至 v0.12.1 diff --git a/package.json b/package.json index 7d0e233..a5724d4 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.9.43", + "version": "1.9.44", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ @@ -34,11 +34,11 @@ "fis-kernel": "2.0.18", "fis-preprocessor-components": "1.0.19", "fis-optimizer-clean-css": "0.0.9", - "fis-optimizer-png-compressor": "0.1.3", + "fis-optimizer-png-compressor": "0.1.4", "fis-optimizer-uglify-js": "0.1.14", "fis-packager-map": "0.0.9", "fis-postprocessor-jswrapper": "0.0.12", - "fis-spriter-csssprites": "0.3.5", + "fis-spriter-csssprites": "0.3.7", "fis-prepackager-derived": "0.0.3" } } From df89795de7633e48d3f1d36275281b2268699e9f Mon Sep 17 00:00:00 2001 From: 2betop Date: Wed, 16 Mar 2016 17:26:37 +0800 Subject: [PATCH 36/51] =?UTF-8?q?=E5=8D=87=E7=BA=A7=20pngcrush?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a5724d4..9ad3c7b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.9.44", + "version": "1.9.45", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ @@ -34,7 +34,7 @@ "fis-kernel": "2.0.18", "fis-preprocessor-components": "1.0.19", "fis-optimizer-clean-css": "0.0.9", - "fis-optimizer-png-compressor": "0.1.4", + "fis-optimizer-png-compressor": "0.1.5", "fis-optimizer-uglify-js": "0.1.14", "fis-packager-map": "0.0.9", "fis-postprocessor-jswrapper": "0.0.12", From 006d021bd72994c4d7d85ccdbd52c4cac1137c09 Mon Sep 17 00:00:00 2001 From: 2betop Date: Mon, 28 Mar 2016 16:14:26 +0800 Subject: [PATCH 37/51] upgrade node-images --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9ad3c7b..ff54cd6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.9.45", + "version": "1.9.46", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ @@ -38,7 +38,7 @@ "fis-optimizer-uglify-js": "0.1.14", "fis-packager-map": "0.0.9", "fis-postprocessor-jswrapper": "0.0.12", - "fis-spriter-csssprites": "0.3.7", + "fis-spriter-csssprites": "0.3.10", "fis-prepackager-derived": "0.0.3" } } From 814b00737cacca620f9f6eb2a9b8e631e56e3f93 Mon Sep 17 00:00:00 2001 From: hefangshi Date: Wed, 11 May 2016 14:48:26 +0800 Subject: [PATCH 38/51] update deps for Node.js 6.x --- CHANGELOG.md | 10 ++++++++++ package.json | 8 ++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ab9265..aeebeae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +## 1.10.0 / Wed May 11 2016 + +提供 Node.js 6.x 支持 + +- 升级 fis-command-release 依赖支持 Node.js 6.x +- 升级 fis-command-server 依赖支持 Node.js 6.x +- 升级 fis-optimizer-png-compressor 依赖支持 Node.js 6.x +- 升级 fis-spriter-csssprites 依赖支持 Node.js 6.x + + ## 1.9.44 / Thu Feb 25 2016 - 升级依赖中多个二进制插件版本选择错误的版本修复。 diff --git a/package.json b/package.json index ff54cd6..0941389 100644 --- a/package.json +++ b/package.json @@ -28,17 +28,17 @@ "colors": "0.6.2", "commander": "1.3.2", "fis-command-install": "0.2.15", - "fis-command-release": "0.12.2", - "fis-command-server": "0.7.5", + "fis-command-release": "0.13.0", + "fis-command-server": "0.7.8", "fis-deploy-default": "0.0.6", "fis-kernel": "2.0.18", "fis-preprocessor-components": "1.0.19", "fis-optimizer-clean-css": "0.0.9", - "fis-optimizer-png-compressor": "0.1.5", + "fis-optimizer-png-compressor": "0.1.6", "fis-optimizer-uglify-js": "0.1.14", "fis-packager-map": "0.0.9", "fis-postprocessor-jswrapper": "0.0.12", - "fis-spriter-csssprites": "0.3.10", + "fis-spriter-csssprites": "0.3.11", "fis-prepackager-derived": "0.0.3" } } From ff23a24935a1b863fdc16d859976bfa3ae94c7ff Mon Sep 17 00:00:00 2001 From: Sighless Date: Wed, 11 May 2016 15:42:47 +0800 Subject: [PATCH 39/51] use local svn auth cache --- test/util/diff/product_code.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/util/diff/product_code.sh b/test/util/diff/product_code.sh index 4c7e57d..ee2a167 100644 --- a/test/util/diff/product_code.sh +++ b/test/util/diff/product_code.sh @@ -21,11 +21,11 @@ HAO123_DIR=./product_code/hao123 SUPERMAN_SVN=https://svn.baidu.com/app/search/lbs-webapp/trunk/mmap/superman SUPERMAN_DIR=./product_code/superman -svn co --username=$1 --password=$2 --no-auth-cache ${PLACE_SVN} ${PLACE_DIR} -svn co --username=$1 --password=$2 --no-auth-cache ${BATMAN_SVN} ${BATMAN_DIR} -svn co --username=$1 --password=$2 --no-auth-cache ${WENKU_SVN} ${WENKU_DIR} -svn co --username=$1 --password=$2 --no-auth-cache ${TIEBA_SVN} ${TIEBA_DIR} -svn co --username=$1 --password=$2 --no-auth-cache ${HAO123_SVN}/common ${HAO123_DIR}/common -svn co --username=$1 --password=$2 --no-auth-cache ${HAO123_SVN}/home ${HAO123_DIR}/home -svn co --username=$1 --password=$2 --no-auth-cache ${HAO123_SVN}/lv2 ${HAO123_DIR}/lv2 -svn co --username=$1 --password=$2 --no-auth-cache ${SUPERMAN_SVN} ${SUPERMAN_DIR} +svn co ${PLACE_SVN} ${PLACE_DIR} +svn co ${BATMAN_SVN} ${BATMAN_DIR} +svn co ${WENKU_SVN} ${WENKU_DIR} +svn co ${TIEBA_SVN} ${TIEBA_DIR} +svn co ${HAO123_SVN}/common ${HAO123_DIR}/common +svn co ${HAO123_SVN}/home ${HAO123_DIR}/home +svn co ${HAO123_SVN}/lv2 ${HAO123_DIR}/lv2 +svn co ${SUPERMAN_SVN} ${SUPERMAN_DIR} From 2d1aa8781608ade73fdc33dbcd91857713c00e7e Mon Sep 17 00:00:00 2001 From: Sighless Date: Wed, 11 May 2016 16:28:27 +0800 Subject: [PATCH 40/51] fix testcases --- test/util/diff/new_fis_ready.sh | 10 +++++----- test/util/diff/release.sh | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/test/util/diff/new_fis_ready.sh b/test/util/diff/new_fis_ready.sh index e22f20b..bda3c37 100644 --- a/test/util/diff/new_fis_ready.sh +++ b/test/util/diff/new_fis_ready.sh @@ -7,13 +7,13 @@ FISP_FIS_PATH=${FISP_PATH}/node_modules/fis cd ${FIS_PATH} rm -rf node_modules -npm install -npm install fis-preprocessor-image-set -npm install fis-postpackager-ext-map -npm install fis-packager-autopack +npm install --registry=https://registry.npm.taobao.org +npm install fis-preprocessor-image-set --registry=https://registry.npm.taobao.org +npm install fis-postpackager-ext-map --registry=https://registry.npm.taobao.org +npm install fis-packager-autopack --registry=https://registry.npm.taobao.org npm cache clean -npm update -g fis-plus +npm update -g fis-plus --registry=https://registry.npm.taobao.org --prefix=/home/work/ rm -rf ${FISP_PATH}/node_modules/fis cp -r ${FIS_PATH} ${FISP_FIS_PATH} diff --git a/test/util/diff/release.sh b/test/util/diff/release.sh index 4a4b38d..8540887 100644 --- a/test/util/diff/release.sh +++ b/test/util/diff/release.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bash +export PATH=/home/work/bin:$PATH TEST_PATH=/home/work/repos/fis/test/util/diff FIS_PATH=/home/work/repos/fis/ NEW_FISP_FIS_PATH=/home/work/lib/node_modules/fis-plus/node_modules/fis From 905fedb251d58f8e517b755cc8bf72efd2f983c5 Mon Sep 17 00:00:00 2001 From: hefangshi Date: Wed, 11 May 2016 17:49:29 +0800 Subject: [PATCH 41/51] update fis-kernel deps --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0941389..3aa7c90 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "fis-command-release": "0.13.0", "fis-command-server": "0.7.8", "fis-deploy-default": "0.0.6", - "fis-kernel": "2.0.18", + "fis-kernel": "2.0.19", "fis-preprocessor-components": "1.0.19", "fis-optimizer-clean-css": "0.0.9", "fis-optimizer-png-compressor": "0.1.6", From 94ff4915488ab0749c056cb185b281e251ed870f Mon Sep 17 00:00:00 2001 From: hefangshi Date: Wed, 11 May 2016 18:25:15 +0800 Subject: [PATCH 42/51] release 1.10.0 support Node.js 6.x --- CHANGELOG.md | 5 +++-- package.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aeebeae..22e37a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,10 +3,11 @@ 提供 Node.js 6.x 支持 - 升级 fis-command-release 依赖支持 Node.js 6.x -- 升级 fis-command-server 依赖支持 Node.js 6.x - 升级 fis-optimizer-png-compressor 依赖支持 Node.js 6.x - 升级 fis-spriter-csssprites 依赖支持 Node.js 6.x - +- 升级 fis-spriter-csssprites 依赖 +- 升级 fis-command-server 依赖 +- 升级 fis-kernel 依赖 ## 1.9.44 / Thu Feb 25 2016 diff --git a/package.json b/package.json index 3aa7c90..9e4585e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.9.46", + "version": "1.10.0", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ From ef72dabfaff53d01561c3ed457c08e444a8a4cf3 Mon Sep 17 00:00:00 2001 From: 2betop Date: Fri, 13 May 2016 15:27:15 +0800 Subject: [PATCH 43/51] add qrcode --- CHANGELOG.md | 4 ++++ package.json | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 22e37a2..b402b8f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.10.1 / Wed May 13 2016 + +- 升级 fis-command-server 支持 qrcode。 + ## 1.10.0 / Wed May 11 2016 提供 Node.js 6.x 支持 diff --git a/package.json b/package.json index 9e4585e..9158ee8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.10.0", + "version": "1.10.1", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ @@ -29,7 +29,7 @@ "commander": "1.3.2", "fis-command-install": "0.2.15", "fis-command-release": "0.13.0", - "fis-command-server": "0.7.8", + "fis-command-server": "0.7.9", "fis-deploy-default": "0.0.6", "fis-kernel": "2.0.19", "fis-preprocessor-components": "1.0.19", From d92e5a4383a2eea31205abfbe1a6907895a40123 Mon Sep 17 00:00:00 2001 From: 2betop <2betop.cn@gmail.com> Date: Thu, 15 Dec 2016 16:57:08 +0800 Subject: [PATCH 44/51] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=20deploy=20?= =?UTF-8?q?=E9=82=AE=E7=AE=B1=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9158ee8..eab0431 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.10.1", + "version": "1.10.2", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ @@ -30,7 +30,7 @@ "fis-command-install": "0.2.15", "fis-command-release": "0.13.0", "fis-command-server": "0.7.9", - "fis-deploy-default": "0.0.6", + "fis-deploy-default": "0.1.0", "fis-kernel": "2.0.19", "fis-preprocessor-components": "1.0.19", "fis-optimizer-clean-css": "0.0.9", From c4a4edd18fc3cde9b82b81d6e5e64fa955ce30c2 Mon Sep 17 00:00:00 2001 From: 2betop <2betop.cn@gmail.com> Date: Thu, 15 Dec 2016 17:35:01 +0800 Subject: [PATCH 45/51] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=20host=20=E7=9C=81=E6=8E=89=E5=BE=88=E5=A4=9A=20api?= =?UTF-8?q?=20=E7=9A=84=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index eab0431..34973f2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.10.2", + "version": "1.10.3", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ @@ -30,7 +30,7 @@ "fis-command-install": "0.2.15", "fis-command-release": "0.13.0", "fis-command-server": "0.7.9", - "fis-deploy-default": "0.1.0", + "fis-deploy-default": "0.1.1", "fis-kernel": "2.0.19", "fis-preprocessor-components": "1.0.19", "fis-optimizer-clean-css": "0.0.9", From 04d9d3cf80230ee38fafc0366273005f0771bbb1 Mon Sep 17 00:00:00 2001 From: liaoxuezhi Date: Sat, 17 Dec 2016 18:45:44 +0800 Subject: [PATCH 46/51] =?UTF-8?q?fix:=20=E5=85=BC=E5=AE=B9=E4=BD=8E?= =?UTF-8?q?=E7=89=88=E6=9C=AC=20node?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 34973f2..7ba55c9 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.10.3", + "version": "1.10.4", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ @@ -30,7 +30,7 @@ "fis-command-install": "0.2.15", "fis-command-release": "0.13.0", "fis-command-server": "0.7.9", - "fis-deploy-default": "0.1.1", + "fis-deploy-default": "0.1.2", "fis-kernel": "2.0.19", "fis-preprocessor-components": "1.0.19", "fis-optimizer-clean-css": "0.0.9", From 19b38bc7be1d9198e421422e9e0b87bbc482c134 Mon Sep 17 00:00:00 2001 From: liaoxuezhi Date: Mon, 19 Dec 2016 11:11:13 +0800 Subject: [PATCH 47/51] =?UTF-8?q?fix:=20json=20=E6=B2=A1=E8=A2=AB=E5=AE=9A?= =?UTF-8?q?=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7ba55c9..6da0f9f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.10.4", + "version": "1.10.5", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ @@ -30,7 +30,7 @@ "fis-command-install": "0.2.15", "fis-command-release": "0.13.0", "fis-command-server": "0.7.9", - "fis-deploy-default": "0.1.2", + "fis-deploy-default": "0.1.3", "fis-kernel": "2.0.19", "fis-preprocessor-components": "1.0.19", "fis-optimizer-clean-css": "0.0.9", From dc6c1f6d44669a1d4e247fcb695dc144ac5de1e0 Mon Sep 17 00:00:00 2001 From: liaoxuezhi Date: Wed, 8 Mar 2017 17:35:13 +0800 Subject: [PATCH 48/51] refact: rm sensitive codes --- test/util/auto-plugin/TestAutoPlugin.php | 104 --- test/util/auto-plugin/TestReport.class.php | 69 -- test/util/auto-plugin/start.sh | 25 - test/util/autopack/TestReport.class.php | 111 --- test/util/autopack/TestStaticPack.php | 90 --- test/util/autopack/start.sh | 21 - test/util/diff/File.class.php | 757 ------------------ test/util/diff/config.php | 56 -- test/util/diff/config_o.php | 60 -- test/util/diff/diff.class.php | 550 ------------- test/util/diff/diffall.class.php | 22 - .../util/diff/inline_diff/inline_function.php | 63 -- .../util/diff/inline_diff/inline_renderer.php | 72 -- test/util/diff/new_fis_ready.sh | 22 - test/util/diff/old_fis_ready.sh | 11 - test/util/diff/old_fis_scp.sh | 11 - test/util/diff/product_code.sh | 31 - test/util/diff/release.sh | 157 ---- test/util/diff/release_o.sh | 156 ---- test/util/diff/result/diffdetails.tpl | 44 - test/util/diff/result/difflist.tpl | 51 -- test/util/diff/result/productsdiff.tpl | 40 - test/util/diff/result_o/diffdetails.tpl | 44 - test/util/diff/result_o/difflist.tpl | 51 -- test/util/diff/result_o/productsdiff.tpl | 40 - test/util/diff/start.sh | 17 - test/util/md5/test.sh | 30 - test/util/md5/tstRight.php | 78 -- 28 files changed, 2783 deletions(-) delete mode 100644 test/util/auto-plugin/TestAutoPlugin.php delete mode 100644 test/util/auto-plugin/TestReport.class.php delete mode 100644 test/util/auto-plugin/start.sh delete mode 100644 test/util/autopack/TestReport.class.php delete mode 100644 test/util/autopack/TestStaticPack.php delete mode 100644 test/util/autopack/start.sh delete mode 100644 test/util/diff/File.class.php delete mode 100644 test/util/diff/config.php delete mode 100644 test/util/diff/config_o.php delete mode 100644 test/util/diff/diff.class.php delete mode 100644 test/util/diff/diffall.class.php delete mode 100644 test/util/diff/inline_diff/inline_function.php delete mode 100644 test/util/diff/inline_diff/inline_renderer.php delete mode 100644 test/util/diff/new_fis_ready.sh delete mode 100644 test/util/diff/old_fis_ready.sh delete mode 100644 test/util/diff/old_fis_scp.sh delete mode 100644 test/util/diff/product_code.sh delete mode 100644 test/util/diff/release.sh delete mode 100644 test/util/diff/release_o.sh delete mode 100644 test/util/diff/result/diffdetails.tpl delete mode 100644 test/util/diff/result/difflist.tpl delete mode 100644 test/util/diff/result/productsdiff.tpl delete mode 100644 test/util/diff/result_o/diffdetails.tpl delete mode 100644 test/util/diff/result_o/difflist.tpl delete mode 100644 test/util/diff/result_o/productsdiff.tpl delete mode 100644 test/util/diff/start.sh delete mode 100644 test/util/md5/test.sh delete mode 100644 test/util/md5/tstRight.php diff --git a/test/util/auto-plugin/TestAutoPlugin.php b/test/util/auto-plugin/TestAutoPlugin.php deleted file mode 100644 index 69ab3c4..0000000 --- a/test/util/auto-plugin/TestAutoPlugin.php +++ /dev/null @@ -1,104 +0,0 @@ -multiPackPath=dirname(__FILE__)."/svntest/hao123/output/config"; - $this->onePackPath=dirname(__FILE__)."/svntest/tuangou"; - $this->indexjsPath="/home/work/lib/node_modules/fis-packager-autopack/index.js"; - $this->libPath="/home/work/lib/node_modules/fis-packager-autopack/lib/temp"; - $this->versionPath="/home/work/lib/node_modules/fis-postpackager-ext-map/package.json"; - $this->data=array(); - } - private function verificationApiUrl(){ - $string=file_get_contents($this->indexjsPath); - $this->realUrl=$string; - if(strstr($string,"fedev.baidu.com:8889")||strstr($string,"solar.baidu.com")) - return true; - else - return false; - } - private function checkWritabel(){ - if(is_writable($this->libPath)) - return true; - else - return false; - } - private function checkVersion(){ - $data=json_decode(file_get_contents($this->versionPath),true); - $data=$data["version"]; - $this->realVersion=$data; - if($data=="0.0.1"||$data=="0.0.0") - return false; - else - return true; - } - private function checkFileMulti(){ - $handle=opendir($this->multiPackPath); - $mapFile=0; - while(($filename=readdir($handle))!==false){ - if(strstr($filename,"flat-home-map")){ - $mapFile++; - } - } - if($mapFile>1) - return true; - else - return false; - } - private function checkFileOne(){ - $pathA=$this->onePackPath."/fis-pack.json"; - $pathB=$this->onePackPath."/output/config/common-map.json"; - if(file_exists($pathA)&&file_exists($pathB)) - return true; - else - return false; - } - public function startTest(){ - $data=array(); - $arrPosSu=0; - $arrPosFa=0; - if($this->verificationApiUrl()) - $data['success'][$arrPosSu++]=array("Api Url"=>$this->realUrl); - else - $data['fail'][$arrPosFa++]=array("Api Url"=>$this->realUrl); - if($this->checkWritabel()) - $data['success'][$arrPosSu++]=array("file Writabel"=>"Writabel"); - else - $data['fail'][$arrPosFa++]=array("file Writabel"=>"No Writabel"); - if($this->checkVersion()) - $data['success'][$arrPosSu++]=array("ext-map verison"=>"0.0.1"); - else - $data['fail'][$arrPosFa++]=array("ext-map verison"=>$this->realVersion); - if($this->checkFileMulti()) - $data['success'][$arrPosSu++]=array("multi map"=>"success"); - else - $data['fail'][$arrPosFa++]=array("multi map"=>"fail"); - if($this->checkFileOne()) - $data['success'][$arrPosSu++]=array("one map"=>"success"); - else - $data['fail'][$arrPosFa++]=array("one map"=>"fail"); - $data['name']="auto-plugin"; - $this->data=$data; - } - public function getData(){ - return $this->data; - } -} -$myTest=new TestAutoPlugin(); -$myTest->startTest(); -$myReport=new TestReport(); -$myReport->setData($myTest->getData()); -$myReport->createTestReport(); diff --git a/test/util/auto-plugin/TestReport.class.php b/test/util/auto-plugin/TestReport.class.php deleted file mode 100644 index 0e750bf..0000000 --- a/test/util/auto-plugin/TestReport.class.php +++ /dev/null @@ -1,69 +0,0 @@ -data=array(); - } - public function setData($data){ - $this->data=$data; - } - public function createTestReport(){ - $dom = new DOMDocument("1.0","utf-8"); - $xmlFile = dirname(__FILE__)."/result/report.xml"; - $data=$this->data; - $totalCount=0; - $totalFailure=0; - if(count($data)==0){ - echo "no array data!"; - exit; - } - $name=$data['name']; - if(array_key_exists("success",$data)) - $totalCount = count($data['success']); - if(array_key_exists("fail",$data)){ - $totalFailure = count($data['fail']); - $totalCount+=count($data['fail']); - } - $testsuites = $dom->createElement("testsuites"); - $dom->appendChild($testsuites); - $testsuite = $dom->createElement("testsuite"); - $testsuites->appendChild($testsuite); - $testsuite->setAttribute("name","$name* "); - $testsuite->setAttribute("tests",$totalCount); - $testsuite->setAttribute("time",$totalCount); - $testsuite->setAttribute("failures",$totalFailure); - $testsuite->setAttribute("total",$totalCount); - for($i=$totalFailure;$i<$totalCount;$i++){ - $testcase=$dom->createElement("testcase"); - $testsuite->appendChild($testcase); - $testcase->setAttribute("name",key($data["success"][$i-$totalFailure])); - $testcase->setAttribute("time","1"); - $testcase->setAttribute("failures","0"); - $testcase->setAttribute("total","1"); - $testcase->setAttribute("type","OK"); - $msgText = $dom->createTextNode(current($data["success"][$i-$totalFailure])); - $testcase->appendChild($msgText); - } - for($i=0;$i<$totalFailure;$i++){ - $testcase=$dom->createElement("testcase"); - $testsuite->appendChild($testcase); - $testcase->setAttribute("name",key($data["fail"][$i])); - $testcase->setAttribute("time","1"); - $testcase->setAttribute("failures","1"); - $testcase->setAttribute("total","1"); - - $failure = $dom->createElement("failure"); - $testcase->appendChild($failure); - $failure->setAttribute("type","junit.framework.AssertionFailedError"); - $msgText = $dom->createTextNode(current($data["fail"][$i])); - $failure->appendChild($msgText); - } - $dom->save($xmlFile); - } -} \ No newline at end of file diff --git a/test/util/auto-plugin/start.sh b/test/util/auto-plugin/start.sh deleted file mode 100644 index 2ebbade..0000000 --- a/test/util/auto-plugin/start.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh -npm install -g fis-postpackager-ext-map -npm install -g fis-packager-autopack -npm isntall -g fis-parser-bainuo-less -if [ -d "./svntest" ]; then -rm -r svntest -fi -mkdir svntest -cd ./svntest -svn co --username $1 --password $2 https://svn.baidu.com/app/global/hao123/branches/fe/flat-home/hao123_1-0-988_BRANCH ./hao123 -svn co --username $1 --password $2 https://svn.baidu.com/app/search/tuangou/branches/mobile-bainuo/common/tuangou_4-3-102_BRANCH ./tuangou -cd ./hao123 -fisp release -p -d ./output -cd .. -cd ./tuangou -fisp release -p -d ./output -cd ../.. -if [ ! -d "./result" ]; then -mkdir result -fi -php TestAutoPlugin.php -npm uninstall -g fis-postpackager-ext-map -npm uninstall -g fis-packager-autopack -npm uninstall -g fis-parser-bainuo-less -rm -r svntest \ No newline at end of file diff --git a/test/util/autopack/TestReport.class.php b/test/util/autopack/TestReport.class.php deleted file mode 100644 index 4b3977e..0000000 --- a/test/util/autopack/TestReport.class.php +++ /dev/null @@ -1,111 +0,0 @@ - Array - ( - [0] => Array - ( - [/widget/hot-site/hot-site-async.js] => diff - ) - - [1] => Array - ( - [/widget/sidetoolbar/sidetoolbar-async.js] => diff - ) - - [2] => Array - ( - [/widget/sort-area/shop/shop-async.js] => diff - ) - - ) - - [success] => Array - ( - [0] => Array - ( - [diff autopack] => success - ) - ) - - [name] => autopack -) -*/ -class TestReport { - private $data; - public function __construct(){ - $this->data=array(); - } - public function setData($data){ - $this->data=$data; - print_r($data); - } - public function createTestReport(){ - $dom = new DOMDocument("1.0","utf-8"); - $xmlFile = dirname(__FILE__)."/result/report.xml"; - $data=$this->data; - $totalCount=0; - $totalFailure=0; - $Count = 0; - $Failure = 0; - if(file_exists($xmlFile)){ - $dom->load($xmlFile); - $testsuite = $dom->getElementsByTagName("testsuite")->item(0); - $totalCount = $testsuite->getAttribute("tests"); - $totalFailure = $testsuite->getAttribute("failures"); - }else{ - $testsuite = $dom->createElement("testsuite"); - $dom->appendChild($testsuite); - } - $name=$data['name']; - if(array_key_exists("success",$data)){ - $Count = count($data['success']); - $totalCount += $Count; - } - if(array_key_exists("fail",$data)){ - $Failure = count($data['fail']); - $Count += count($data['fail']); - $totalFailure += $Failure; - $totalCount += $Count; - } - $testsuite->setAttribute("name","$name* "); - $testsuite->setAttribute("tests",$totalCount); - $testsuite->setAttribute("time",$totalCount); - $testsuite->setAttribute("failures",$totalFailure); - $testsuite->setAttribute("total",$totalCount); - for($i=$Failure;$i<$Count;$i++){ - $testcase=$dom->createElement("testcase"); - $testsuite->appendChild($testcase); - $testcase->setAttribute("name",key($data["success"][$i-$Failure])); - $testcase->setAttribute("time","1"); - $testcase->setAttribute("failures","0"); - $testcase->setAttribute("total","1"); - $testcase->setAttribute("type","OK"); - $msgText = $dom->createTextNode(current($data["success"][$i-$Failure])); - $testcase->appendChild($msgText); - } - for($i=0;$i<$Failure;$i++){ - $testcase=$dom->createElement("testcase"); - $testsuite->appendChild($testcase); - $testcase->setAttribute("name",key($data["fail"][$i])); - $testcase->setAttribute("time","1"); - $testcase->setAttribute("failures","1"); - $testcase->setAttribute("total","1"); - - $failure = $dom->createElement("failure"); - $testcase->appendChild($failure); - $failure->setAttribute("type","junit.framework.AssertionFailedError"); - $msgText = $dom->createTextNode(current($data["fail"][$i])); - $failure->appendChild($msgText); - } - $dom->save($xmlFile); - } -} \ No newline at end of file diff --git a/test/util/autopack/TestStaticPack.php b/test/util/autopack/TestStaticPack.php deleted file mode 100644 index f2d73ee..0000000 --- a/test/util/autopack/TestStaticPack.php +++ /dev/null @@ -1,90 +0,0 @@ -data['fail'] = array(); - } - public function setFile($file1,$file2){ - $this->fileData1=$file1; - $this->fileData2=$file2; - } - private function getJsonData($filePath){ - $fileData=file_get_contents($filePath); - $fileData=json_decode($fileData,true); - $arr = array(); - foreach($fileData['data'] as $pack){ - foreach($pack as $key=>$value){ - $arr[$key]=$value; - } - } - return $arr; - } - private function calculate($data1,$data2){ - $data1=$this->getJsonData($data1); - $data2=$this->getJsonData($data2); - $hash=array(); - foreach($data1 as $key1=>$arrValue1){ - $max=0; - $tmp=""; - $outdata=array(); - foreach($data2 as $key2=>$arrValue2){ - if(array_key_exists($key2,$hash)) continue; - $num=0; - $data=array(); - foreach($arrValue1 as $value1){ - if(in_array($value1,$arrValue2)) - $num++; - else - array_push($data,array($value1=>"diff")); - } - if($num>=(count($arrValue2)+1)/2){ - foreach($data as $v){ - array_push($this->data["fail"],$v); - } - $tmp = $key2; - $hash[$key2]=1; - break; - } - if($num>$max||$max == 0){ - $max=$num; - $outdata=$data; - $tmp=$key2; - } - unset($data); - } - if(!array_key_exists($tmp,$hash)){ - foreach($outdata as $v){ - array_push($this->data["fail"],$v); - } - $hash[$tmp]=1; - } - unset($outdata); - } - } - - public function getResult(){ - $this->calculate($this->fileData1,$this->fileData2); - $this->data["name"]="autopack"; - $this->data['success'][0]=array("diff autopack"=>"success"); - } - public function getData(){ - return $this->data; - } -}; - -$case=new TestStaticPack(); -$case->setFile("a.txt","b.txt"); -$case->getResult(); -$report=new TestReport(); -$report->setData($case->getData()); -$report->createTestReport(); -?> \ No newline at end of file diff --git a/test/util/autopack/start.sh b/test/util/autopack/start.sh deleted file mode 100644 index 83a2608..0000000 --- a/test/util/autopack/start.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -npm install -g fis-postpackager-ext-map -npm install -g fis-packager-autopack -npm isntall -g fis-parser-bainuo-less -if [ -d "./result" ]; then -rm -r result -fi -wget -O a.txt "http://fedev.baidu.com:8803/autopack?return=json&fid=baidunuomi&svn=https://svn.baidu.com/app/search/tuangou/branches/mobile-bainuo/common/tuangou_4-3-102_BRANCH" -wget -O b.txt "http://solar.baidu.com/autopack?return=json&fid=baidunuomi&svn=https://svn.baidu.com/app/search/tuangou/branches/mobile-bainuo/common/tuangou_4-3-102_BRANCH" -if [ ! -d "./result" ]; then - mkdir result -fi -php TestStaticPack.php -rm a.txt b.txt -wget -O a.txt "http://fedev.baidu.com:8803/autopack?return=json&fid=globalhao123&svn=https://svn.baidu.com/app/global/hao123/branches/fe/flat-home/hao123_1-0-988_BRANCH" -wget -O b.txt "http://solar.baidu.com/autopack?return=json&fid=globalhao123&svn=https://svn.baidu.com/app/global/hao123/branches/fe/flat-home/hao123_1-0-988_BRANCH" -php TestStaticPack.php -rm a.txt b.txt -npm uninstall -g fis-postpackager-ext-map -npm uninstall -g fis-packager-autopack -npm uninstall -g fis-parser-bainuo-less \ No newline at end of file diff --git a/test/util/diff/File.class.php b/test/util/diff/File.class.php deleted file mode 100644 index c15bbc1..0000000 --- a/test/util/diff/File.class.php +++ /dev/null @@ -1,757 +0,0 @@ -query = substr($path, $pos + 1); - $path = substr($path, 0, $pos); - } - if (is_file($path)) { - $path = self::realpath($path); - } else if (is_dir($path)) { - FISLog::error("File类不能处理目录[{$path}]."); - } else { - $path = self::normalize($path); - } - $this->filepath = $path; - $split = self::getPathSplit($path, $prefix); - $this->basename = $basename = array_pop($split); - $this->dirname = $prefix . implode('/', $split); - if (($pos = strrpos($basename, '.')) === false) { - $this->filename = $basename; - } else { - $this->filename = substr($basename, 0, $pos); - $this->ext = $ext = substr($basename, $pos + 1); - $this->_isText = self::isTextFile('.' . $ext); - } - /* - if($root){ - $this->release = $this->subpath = str_replace($root, '', $this->filepath); - $this->split = self::getPathSplit($this->subpath); - } else { - */ - $this->split = $split; - //} - } - - /** - * 返回格式化的文件绝对路径 - * @return string - */ - public function __toString(){ - return $this->filepath; - } - - /** - * 返回文件或者目录是否存在 - * @return bool - */ - public function exists(){ - return file_exists($this->filepath); - } - - /** - * 从缓存文件中恢复文件数据,包括info、content - * @param FISCache $cache 缓存对象 - * @return bool 如果缓存存在,则返回true,否则返回false - */ - public function revertCache(FISCache $cache){ - if($cache->exists()){ - $this->_content = $cache->get(); - $properties = $cache->getCachedFileProperties(); - foreach($properties as $key => $value){ - $this->setInfo($key, $value); - } - return true; - } - return false; - } - - /** - * 将文件数据存储为缓存 - * @param FISCache $cache 缓存对象 - * @param bool $replacePHPTag 是否替换php标签 - */ - public function saveCache(FISCache $cache, $replacePHPTag = true){ - $cache->setData($this->getContent(), $replacePHPTag); - $cache->setProperties($this->getInfo()); - $cache->save(); - } - - /** - * 当前文件是否为文本文件 - * @return bool - */ - public function isText(){ - return $this->_isText; - } - - /** - * 获取文件内容,第一次会从源文件中读取,后面会暂存在对象中,供语法工具处理 - * @return mixed - */ - public function getContent(){ - if($this->_content === null){ - $this->_content = self::read($this->filepath); - } - return $this->_content; - } - - /** - * 设置文件内容 - * @param string $content - */ - public function setContent($content){ - $this->_content = $content; - } - - /** - * 设置文件附属信息 - * @param string|array $key - * @param mixed $value - */ - public function setInfo($key, $value = null){ - $this->_info[$key] = $value; - } - - /** - * 批量设置文件附属信息 - * @param array $value - */ - public function setInfos(Array $value){ - foreach($value as $key => $val){ - $this->_info[$key] = $val; - } - } - - /** - * 获取文件附属信息 - * @param null|string $key 如果为null,则返回所有附属信息 - * @return mixed - */ - public function getInfo($key = null){ - if($key == null){ - return $this->_info; - } else { - return $this->_info[$key]; - } - } - - /** - * 获取文件的hash值,默认返回前8位,可以通过project的md5_length属性来修改 - * @return string - */ - public function getHash(){ - if(!$this->_hash){ - if(!$this->parsed){ - FIS::parse($this); - } - $this->_hash = self::getContentHash($this->getContent()); - } - return $this->_hash; - } - - //---------------------------------------------- 静态方法 ----------------------------------------------// - - /** - * 获取文件后缀,可以排除“?”查询字符串 - * @static - * @param string $path - * @return string - */ - public static function getExt($path){ - if (($pos = strpos($path, '?')) !== false) { - $path = substr($path, 0, $pos); - } - if (($pos = strrpos($path, '.')) !== false) { - $ext = substr($path, $pos + 1); - } else { - $ext = ''; - } - return $ext; - } - - /** - * 根据文件内容获取hash值 - * @static - * @param $content - * @return string - */ - public static function getContentHash($content){ - return substr( - hash('md4', $content), - 0, - FIS::get('project', 'md5_length', 8) - ); - } - - /** - * 格式化路径字符串 - * - * * replace "\" to "/" - * * replace contiguous "/" to one "/" - * * replace "a/b/../c" to "a/c" - * * remove "/./" - * * remove "/" at the end. - * - * @static - * @param string $path 路径字符串(路径存在与否) - * @return string - */ - public static function normalize($path) { - $normal_path = preg_replace( - array('/[\/\\\\]+/', '/\/\.\//', '/^\.\/|\/\.$/', '/\/$/'), - array('/', '/', '', ''), - $path - ); - $path = $normal_path; - do { - $normal_path = $path; - $path = preg_replace('/[^\\/\\.]+\\/\\.\\.(?:\\/|$)/', '', $normal_path); - } while ($path != $normal_path); - $path = preg_replace('/\/$/', '', $path); - return $path; - } - - /** - * 判断当前系统是否为windows - * @static - * @return bool - */ - public static function isWin() { - return FIS_IS_WIN; - } - - /** - * 判断路径字符串是否是绝对路径 - * @static - * @param string $path - * @return bool - */ - public static function isAbsolute($path) { - if (self::isWin()) { - return 0 != preg_match("/^[a-z]\\:/i", $path); - } else { - if ($path == '/') { - return false; - } - $split = explode('/', $path); - return (($split[0] == '' && $split[1] && is_dir('/' . $split[1])) || $split[0] == '~'); - } - } - - /** - * @static 编译后查看css中引用的文件是否是相对路径,"./" - * @param $path - * @return bool - */ - public static function isRelative($path) { - return 0 != preg_match('/^[^\/]/i', $path); - } - - /** - * @static 编译后查看Smarty中引用的文件是否是相对路径,"./" - * @param $path - * @return bool - */ - public static function isTplRelative($path) { - return 0 != preg_match('/^\./i', $path); - } - - /** - * 判断文件路径字符串是否为文本文件,文本文件由后缀决定,包括(css、tpl、js、php、txt、json、xml、htm、text、xhtml、html、conf、json、po、config) - * @static - * @param string $path - * @return bool - */ - public static function isTextFile($path){ - return preg_match('/\.(?:css|tpl|js|php|txt|json|xml|htm|text|xhtml|html|conf|json|po|config)$/i', $path) != false; - } - - /** - * 将路径或url切分为数组 - * @static - * @param $url 路径或url - * @param null $prefix 通过该值可以获取到要处理的路径第一位字符,该值是“/”或空字符串 - * @return array - */ - public static function getPathSplit($url, &$prefix = null) { - $prefix = $url{0} == '/' ? '/' : ''; - $url = preg_replace(array('/^\//', '/\/$/'), '', $url); - return explode('/', $url); - } - - /** - * 判断给定文件路径是否符合include和exclude规则 - * @static - * @param string $file 路径字符串 - * @param null $include 包含文件的正则 - * @param null $exclude 排除文件的正则 - * @param null $m 从这个值可以获取包含正则的匹配分组 - * @return bool - */ - public static function filter($file, $include = null, $exclude = null, &$m = null) { - return !(($include && preg_match($include, $file, $m) == 0) || ($exclude && preg_match($exclude, $file) != 0)); - } - - /** - * 将通配符字符串翻译为正则表达式 - * @static - * @param string $pattern - * @return string - */ - public static function getPathExpReg($pattern) { - $rePattern = preg_quote(str_replace('\\', '/', $pattern), '/'); - $dirSep = preg_quote('\\', '/'); - $patternReplacements = array( - $dirSep . '\*\*' . $dirSep => $dirSep . '.*(?:' . $dirSep . ')?', - $dirSep . '\*\*' => $dirSep . '.*', - '\*\*' . $dirSep => '.*', - '\*\*' => '.*', - '\*' => '[^' . $dirSep . ']*', - '\?' => '[^' . $dirSep . ']' - ); - return str_replace( - array_keys($patternReplacements), - array_values($patternReplacements), - $rePattern - ) . '$'; - } - - /** - * 返回统一'/'分隔符的realpath结果 - * @static - * @param string $path - * @return string|bool - */ - public static function realpath($path){ - //第一次字符从替换,是防止linux下对\识别错误 - $path = realpath(str_replace('\\', '/', $path)); - if($path && self::isWin()){ - //第二次替换,是将win下的反斜杠替换回来 - $path = str_replace('\\', '/', $path); - } - return $path; - } - - /** - * 查找指定目录下的文件或目录 - * @static - * @param string $path 目录路径 - * @param null $include 要包含的文件正则,如果设置了,则只有符合这个正则的文件才能被请求到 - * @param null $exclude 要排除的文件正则,如果设置了,即使是包含的文件,也会被排除 - * @param bool $recursion 是否递归查找,默认是true - * @param bool $include_dir 找到的结果是否包含目录,默认为false,不包含 - * @param array $files 递归用的存储容器,不应该被用到 - * @return array 数组 - */ - public static function find($path, $include = null, $exclude = null, $recursion = true, $include_dir = false, &$files = array()) { - $path = self::realpath($path); - if (is_dir($path)) { - $path .= '/'; - $dir = dir($path); - while (false !== ($entry = $dir->read())) { - if ($entry == '.' || $entry == '..' || ($entry{0} == '.' && is_dir($entry))) { - continue; - } - $entry = $path . $entry; - if (is_dir($entry)) { - if ($include_dir && self::filter($entry, $include, $exclude)) { - $files[] = $entry; - } - if ($recursion) { - self::find($entry, $include, $exclude, true, $include_dir, $files); - } - } else { - if (!self::filter($entry, $include, $exclude)) { - continue; - } - $files[] = $entry; - } - } - $dir->close(); - return $files; - } else if (is_file($path) && self::filter($path, $include, $exclude)) { - $files[] = $path; - } - return $files; - } - - /** - * 将文件或目录复制到到指定位置,支持从文件复制到文件、从目录复制到目录、从文件复制到目录 - * @static - * @param string $source 要复制的文件或目录路径 - * @param string $target 目标路径 - * @param null $include 包含文件正则 - * @param null $exclude 排除文件正则 - * @param bool $cover 是否覆盖已存在的目标文件,默认是TRUE,覆盖 - * @param bool $recursion 是否递归复制操作,默认是TRUE,递归 - * @param bool $move 是否为移动操作 默认False - */ - public static function copy($source, $target, $include = null, $exclude = null, $cover = true, $recursion = true, $move = false) { - $source = self::realpath($source); - if (is_dir($source)) { - $source = $source . '/'; - if (is_file(self::realpath($target))) { - FISLog::error("There is a file named {$target} can't copy to."); - } else { - self::mkdir($target, 0777); - $target = self::realpath($target) . '/'; - $dir = dir($source); - while (($file = $dir->read()) !== false) { - if ($file == '.' || $file == '..' || ($file{0} == '.' && is_dir($file))) { - continue; - } - if (!self::filter(str_replace('\\', '/', $source) . $file, $include, $exclude)) { - continue; - } - $s = $source . $file; - $t = $target . $file; - if (is_dir($s)) { - if ($recursion && stripos(self::realpath($target), self::realpath($file)) === false) { - self::copy($s, $t, $include, $exclude, $cover, true, $move); - } - continue; - } else if (file_exists($t) && $cover == false) { - continue; - } else { - if (file_exists($t)) { - self::delete($t); - } - if($move) - rename($s, $t); - else - copy($s, $t); - } - } - $dir->close(); - } - } elseif (is_file($source)) { - if (is_file($target) && !$cover) { - return; - } - $targetName = null; - $info = pathinfo($target); - if (!file_exists($target)) { - if (array_key_exists('extension', $info)) { - $target = $info['dirname']; - $targetName = $info['basename']; - } - self::mkdir($target); - } elseif (is_file($target)) { - self::delete($target); - $target = dirname($target); - $targetName = $info['basename']; - } - $info = pathinfo($source); - $name = isset($targetName) ? $targetName : $info['basename']; - if($move) - rename($source, self::realpath($target) . '/' . $name); - else - copy($source, self::realpath($target) . '/' . $name); - } else { - FISLog::error("The {$source} is not a file or directory!"); - } - } - - /** - * 删除文件或目录 - * @static - * @param string $path 要删除的文件或目录 - * @param null $include 要删除的文件正则 - * @param null $exclude 不删除的文件正则 - * @return bool 删除成功返回true,否则返回false - */ - public static function delete($path, $include = null, $exclude = null) { - $result = true; - $path = self::realpath($path); - //防止错误删除根目录 - if ($path == false || $path == self::realpath('/')) { - return $result; - } - if (is_dir($path)) { - $path = $path . DIRECTORY_SEPARATOR; - $dir = dir($path); - while (($file = $dir->read()) !== false) { - if ($file == '.' || $file == '..') { - continue; - } - $file = $path . $file; - if (!self::filter(str_replace('\\', '/', $file), $include, $exclude)) { - continue; - } - if (is_dir($file)) { - $result = $result && self::delete($file, $include, $exclude); - } else { - $result = $result && @unlink($file); - } - } - $dir->close(); - $result = $result && @rmdir($path); - return $result; - } else { - return @unlink($path); - } - } - - /** - * 修改文件或目录权限 - * @static - * @param string $path 文件或目录 - * @param int $mod 权限,默认是0777 - * @return bool 设置成功返回true,否则返回false - */ - public static function chmod($path, $mod = 0777){ - if(file_exists($path)){ - if(@chmod($path, $mod)){ - return true; - } else { - FISLog::error("Chmod path[{$path}] mod[{$mod}] faild."); - } - } else { - FISLog::error("Path[{$path}] is not a dir, can't chmod."); - } - return false; - } - - /** - * 写内容进文件,如果文件不存在,则创建 - * @static - * @param string $path 目标路径 - * @param string $contents 文件内容 - * @param string $charset 写入的文件编码 - * @param int $dir_perms 设置权限,默认是0777 - * @return bool 写入成功则返回true,否则返回false - */ - public static function write($path, $contents, $charset = null, $dir_perms = 0777) { - if ($charset != null) { - $contents = iconv('UTF-8', $charset, $contents); - } - $file = new self($path); - if ($file->dirname !== '.' && !file_exists($file->dirname)) { - if(self::mkdir($file->dirname, $dir_perms) == false){ - return false; - } - } - return @file_put_contents($path, $contents) !== false; - } - - /** - * 从文件中读取内容,如果是文本文件,则以utf-8编码读入内存中 - * @static - * @param string $file 文件路径 - * @param null|string $charset 此参数可以读取文件编码 - * @return string 返回文件内容 - */ - public static function read($file, &$charset = null) { - if (is_file($file)) { - $content = file_get_contents($file); - if(self::isTextFile($file)){ - $charset = $charset == null ? self::getCharset($content) : self::normalizeCharset($charset); - $content = iconv($charset, FIS_DEFAULT_CHARSET, $content); - } - return $content; - } else { - FISLog::error("Unable to get file contents {$file}"); - return ''; - } - } - - /** - * 判断文本内容的编码 - * @static - * @param string $content 文本内容 - * @return string 编码值,UTF-8、GB2312或GBK - */ - public static function getCharset($content) { - $charset = $defaultCharset = "UTF-8"; - if (function_exists('mb_detect_encoding')) { - $charset = mb_detect_encoding( - $content, - array_unique( - array( - $defaultCharset, - 'UTF-8', - 'GB2312', - 'GBK' - ) - ) - ); - if ($charset === false) { - $charset = $defaultCharset; - } - } else { - if(utf8_encode(utf8_decode($content)) == $content){ - $charset = 'UTF-8'; - } - } - $charset = self::normalizeCharset($charset); - return $charset; - } - - /** - * 格式化字符编码 - * - * * UTF-8 or UTF8 => UTF-8 - * * GBK or CP936 => GBK - * * GB2312 or EUC-CN => GB2312 - * * other => report a warning - * - * @static - * @param $charset 字符编码名称 - * @return string 格式化后的字符编码名称 - */ - public static function normalizeCharset($charset) { - $charset = strtoupper($charset); - switch ($charset) { - case "UTF-8": - case "UTF8": - return "UTF-8"; - case "GBK": - case "CP936": - return "GBK"; - case "GB2312": - case "EUC-CN": - return "GB2312"; - default : - FISLog::warning("Unknown charset[{$charset}]."); - } - return $charset; - } - - /** - * 创建目录,并设置权限,默认是0777 - * @static - * @param string $path 目录路径 - * @param int $mode 权限,默认是0777 - * @return bool 设置成功返回true,否则为false - */ - public static function mkdir($path, $mode = 0777) { - if (is_dir($path)) { - return self::chmod($path, $mode); - } else { - if(@mkdir($path, $mode, true)){ - return true; - } - } - return false; - } - - public static function getSubpath($rootPath,$filePath){ - $rootPath = File::normalize($rootPath); - $filePath = File::normalize($filePath); - return str_replace($rootPath,"",$filePath); - } -} diff --git a/test/util/diff/config.php b/test/util/diff/config.php deleted file mode 100644 index 2dbc36a..0000000 --- a/test/util/diff/config.php +++ /dev/null @@ -1,56 +0,0 @@ -array( //产品线目录 - 'wenku'=>array( - 'name'=>'wenku', - 'newoutputdir' => WENKU_PATH.'output_new', //使用新版本编译后的产出 - 'oldoutputdir' => WENKU_PATH.'output_old', //使用旧版本编译后的产出 - "modules" =>"bookeditor" //待编译的模块 - ), - 'batman'=>array( - 'name'=>'batman', - 'newoutputdir' => BATMAN_PATH.'output_new', //使用新版本编译后的产出 - 'oldoutputdir' => BATMAN_PATH.'output_old', //使用旧版本编译后的产出 - "modules" =>"transit,place,common,index,addr,feedback,drive,walk" //待编译的模块 - ), - 'tieba'=>array( - 'name'=>'tieba', - 'newoutputdir' => TIEBA_PATH.'output_new', //使用新版本编译后的产出 - 'oldoutputdir' => TIEBA_PATH.'output_old', //使用旧版本编译后的产出 - "modules" =>"xpb" //待编译的模块 - ), - 'place'=>array( - 'name'=>'place', - 'newoutputdir' => PLACE_PATH.'output_new', //使用新版本编译后的产出 - 'oldoutputdir' => PLACE_PATH.'output_old', //使用旧版本编译后的产出 - "modules" =>"admin,beauty,cater,common,detail,hotel,movie,scope" //待编译的模块 - ), - 'hao123'=>array( - 'name'=>'hao123', - 'newoutputdir' => HAO123_PATH.'output_new', //使用新版本编译后的产出 - 'oldoutputdir' => HAO123_PATH.'output_old', //使用旧版本编译后的产出 - "modules" =>"common,home,lv2" //待编译的模块 - ), - 'superman'=>array( - 'name'=>'superman', - 'newoutputdir' => SUPERMAN_PATH.'output_new', //使用新版本编译后的产出 - 'oldoutputdir' => SUPERMAN_PATH.'output_old', //使用旧版本编译后的产出 - "modules" =>"transit,place,common,index,addr,feedback,drive,walk,third,taxi,user" //待编译的模块 - ) - ), - 'smarty' => array( - 'dir' => DIFF_ROOT_PATH.'../../libs/smarty-3.1.5', - 'templatedir' =>DIFF_ROOT_PATH. 'result/' - ), - 'url' =>"http://10.48.30.87:8088/" -); \ No newline at end of file diff --git a/test/util/diff/config_o.php b/test/util/diff/config_o.php deleted file mode 100644 index 259df3a..0000000 --- a/test/util/diff/config_o.php +++ /dev/null @@ -1,60 +0,0 @@ -array( //产品线目录 - 'wenku'=>array( - 'name'=>'wenku', - 'newoutputdir' => WENKU_PATH.'output_o_new', //使用新版本编译后的产出 - 'oldoutputdir' => WENKU_PATH.'output_o_old', //使用旧版本编译后的产出 - "modules" =>"bookeditor" //待编译的模块 - ), - 'batman'=>array( - 'name'=>'batman', - 'newoutputdir' => BATMAN_PATH.'output_o_new', //使用新版本编译后的产出 - 'oldoutputdir' => BATMAN_PATH.'output_o_old', //使用旧版本编译后的产出 - "modules" =>"transit,place,common,index,addr,feedback,drive,walk" //待编译的模块 - ), - 'tieba'=>array( - 'name'=>'tieba', - 'newoutputdir' => TIEBA_PATH.'output_o_new', //使用新版本编译后的产出 - 'oldoutputdir' => TIEBA_PATH.'output_o_old', //使用旧版本编译后的产出 - "modules" =>"xpb" //待编译的模块 - ), - 'place'=>array( - 'name'=>'place', - 'newoutputdir' => PLACE_PATH.'output_o_new', //使用新版本编译后的产出 - 'oldoutputdir' => PLACE_PATH.'output_o_old', //使用旧版本编译后的产出 - "modules" =>"admin,beauty,cater,common,detail,hotel,movie,scope" //待编译的模块 - ), - 'hao123'=>array( - 'name'=>'hao123', - 'newoutputdir' => HAO123_PATH.'output_o_new', //使用新版本编译后的产出 - 'oldoutputdir' => HAO123_PATH.'output_o_old', //使用旧版本编译后的产出 - "modules" =>"common,home,lv2" //待编译的模块 - ), - 'superman'=>array( - 'name'=>'superman', - 'newoutputdir' => SUPERMAN_PATH.'output_o_new', //使用新版本编译后的产出 - 'oldoutputdir' => SUPERMAN_PATH.'output_o_old', //使用旧版本编译后的产出 - "modules" =>"transit,place,common,index,addr,feedback,drive,walk,third,taxi,user" //待编译的模块 - ) - ), - 'smarty' => array( - 'dir' => DIFF_ROOT_PATH.'../../libs/smarty-3.1.5', - 'templatedir' =>DIFF_ROOT_PATH. 'result_o/' - ), - 'output' => array( - 'newoutputdir' => 'output_o_new', //使用新版本编译后的产出 - 'oldoutputdir' => 'output_o_old', //使用旧版本编译后的产出 - ), - 'url' =>"http://10.48.30.87:8088/" -); diff --git a/test/util/diff/diff.class.php b/test/util/diff/diff.class.php deleted file mode 100644 index 3943f2e..0000000 --- a/test/util/diff/diff.class.php +++ /dev/null @@ -1,550 +0,0 @@ -proInfo = $product[$productName]; -// $this->analyze = new Analyze(); - } - -// protected function getProduct(){ -// $productsvn = $this->proInfo['svn']; -// $svncmd = "svn co --username=mawenlin --password= --no-auth-cache $productsvn ".$this->proInfo['dir']." 2>&1"; -// exec($svncmd,$info,$ret); -// if($ret != 0){ -// echo "svn get code error! exist!"."\n"; -// var_dump($info); -// exit; -// } -// } - - /** - * 用新老版本的FIS对产品线的代码进行编译。 - */ -// public function build(){ -// $new = self::getConfig('new'); -// $old = self::getConfig('old'); -// $productmodules = $this->proInfo['modules']; -// -//// $this->getProduct(); -// //使用新版本的fis进行编译 -// $cmd_buildnew="php -f build.class.php ".$new['dir']." ". -// $this->proInfo['newoutputdir']." ". -// $this->proInfo['dir']." ". -// $productmodules." ". -// $this->proInfo['result']." ". -// $new['fisname']." 2>&1"; -// -// -// //使用老版本的fis进行编译 -// $cmd_buildold="php -f build.class.php ".$old['dir']." ". -// $this->proInfo['oldoutputdir']." ". -// $this->proInfo['dir']." ". -// $productmodules." ". -// $this->proInfo['result']." ". -// $old['fisname']." 2>&1"; -// -// var_dump($cmd_buildnew); -// var_dump($cmd_buildold); -// exec($cmd_buildnew,$outputnew,$retnew); -// if($retnew){ -// var_dump($outputnew); -// exit; -// } -// exec($cmd_buildold,$outputold,$retold); -// if($retold){ -// var_dump($outputold); -// exit; -// } -// reset_product_svn($this->proInfo['dir']); -// } - /** - * 调用文件依赖分析工具,获取分析结果。 - */ -// protected function analyzeEach($fisname,$outputDir,$resultDir){ -// $this->analyze->init($outputDir,ANALYZE_ROOT_PATH); -// -// $this->analyze->analyzeFile(); -// //检查文件依赖关系是否正确 -// $this->analyze->lookForDefine(); -// -// $defines = "analyzeEach($new['fisname'],$this->proInfo['newoutputdir'],$this->proInfo['result']); -// $this->analyzeEach($old['fisname'],$this->proInfo['oldoutputdir'],$this->proInfo['result']); -// } - - /** - * 获取define数据不同的地方 - */ -// public function getDefineDiff(){ -// $fisname_new = self::getConfig('new','fisname'); -// $fisname_old = self::getConfig('old','fisname'); -// $resultDir = $this->proInfo['result']; -// require_once $resultDir."/".$fisname_new."_define.php"; -// require_once $resultDir."/".$fisname_old."_define.php"; -// -// /** 先比较两个define中文件tpl文件不同的地方 */ -// foreach(${$fisname_new."_define"}['tpl'] as $key1 => $value1){ -// foreach(${$fisname_old."_define"}['tpl'] as $key2 => $value2){ -// if($key1 == $key2 && $value1 == $value2){ -// unset(${$fisname_old."_define"}['tpl'][$key2]); -// unset(${$fisname_new."_define"}['tpl'][$key1]); -// }else if($key1 != $key2 && $value1 == $value2){ -// $diff_data = array( -// 'name' => str_replace("/","_",$value1), -// 'new' => $value1, -// 'old' => $value1, -// 'ext' => 'tpl', -// ); -// array_push($this->Diff,$diff_data); -// unset(${$fisname_old."_define"}['tpl'][$key2]); -// unset(${$fisname_new."_define"}['tpl'][$key1]); -// } -// } -// } -// if(!empty(${$fisname_new."_define"}['tpl'])){ -// foreach(${$fisname_new."_define"}['tpl'] as $value){ -// $diff_data = array( -// 'name' => str_replace("/","_",$value), -// 'new' => $value, -// 'old' => $value, -// 'ext' => 'tpl' -// ); -// array_push($this->Diff,$diff_data); -// } -// } -// if(!empty(${$fisname_old."_define"}['tpl'])){ -// foreach(${$fisname_old."_define"}['tpl'] as $value){ -// $diff_data = array( -// 'name' => str_replace("/","_",$value), -// 'new' => $value, -// 'old' => $value, -// 'ext' => 'tpl', -// ); -// array_push($this->Diff,$diff_data); -// } -// } -// } - - /** - * 根据define diff的结果获取,对应文件在新老版本下require的不同值。 - */ -// protected function getRequireDiffFromDifine(){ -// $fisname_new = self::getConfig('new','fisname'); -// $fisname_old = self::getConfig('old','fisname'); -// $resultDir = $this->proInfo['result']; -// require_once $resultDir."/"."$fisname_new"."_require.php"; -// require_once $resultDir."/"."$fisname_old"."_require.php"; -// $requireDiff=array(); -// foreach($this->Diff as $diff){ -// $diffs = array(); -// foreach(${$fisname_new."_require"} as $class_values){ -// $diffnew = File::normalize($this->proInfo['newoutputdir'] .$diff['new']); -// //先获取md5值不一样的文件名,然后根据这个文件名去require的数组中获取对应的key值。 -// $keys = array_keys($class_values, $diffnew); -// if(!empty($keys)){ -// $diffs['new']=$keys; -// } -// } -// //再从老版本里面拿require的信息 -// foreach(${$fisname_old."_require"} as $class_values){ -// $diffold = File::normalize($this->proInfo['oldoutputdir'] .$diff['old']); -// //先获取md5值不一样的文件名,然后根据这个文件名去require的数组中获取对应的key值。 -// $keys=array_keys($class_values, $diffold); -// if(!empty($keys)){ -// $diffs['old']=$keys; -// } -// } -// while(!empty($diffs['new'])){ -// $diff=array(); -// $new = array_pop($diffs['new']); -// $old = array_pop($diffs['old']); -// $diff['name'] = str_replace("/","_",$new); -// $diff['new'] = $new; -// $diff['old'] = $old; -// -// $newfile = new FILE($this->proInfo['newoutputdir'].$new); -// $diff['ext'] = $newfile->ext; -// $cmd = "diff ".$this->proInfo['newoutputdir'].$new." ".$this->proInfo['oldoutputdir'].$old." 2>&1"; -// exec($cmd,$output,$retdiff); -// if($retdiff && $diff['ext']!='tpl' && $diff['ext']!="html"){ -// array_push($requireDiff,$diff); -// } -// } -// } -// foreach($requireDiff as $value){ -// if(!in_array($this->Diff,$value)){ -// array_push($this->Diff,$value); -// } -// } -// return $requireDiff; -// } - - /** - * 获取文件依赖分析结果 - */ -// public function getLog(){ -// $fisname_new = self::getConfig('new','fisname'); -// $fisname_old = self::getConfig('old','fisname'); -// $resultDir = $this->proInfo['result']; -// include $resultDir."/"."$fisname_new"."_log.php"; -// include $resultDir."/"."$fisname_old"."_log.php"; -// -// $this->loginfo['new'] = ${$fisname_new."_log"}; -// $this->loginfo['old'] = ${$fisname_old."_log"}; -// } - - /** - * 获取前后编译时间不同 - */ -// public function getBuildTime(){ -// $fisname_new = self::getConfig('new','fisname'); -// $fisname_old = self::getConfig('old','fisname'); -// $resultDir = $this->proInfo['result']; -// include $resultDir."/"."$fisname_new"."_buildtime.php"; -// include $resultDir."/"."$fisname_old"."_buildtime.php"; -// -// $buildtimes['new']=${$fisname_new."_buildtime"}; -// $buildtimes['old']=${$fisname_old."_buildtime"}; -// -// foreach($buildtimes['new'] as $key => $value){ -// $buildtime = array(); -// $buildtime['module'] = $key; -// $buildtime['new'] = $value; -// $buildtime['old'] = $buildtimes['old'][$key]; -// $buildtime['change']=round(($buildtime['new'] - $buildtime['old'])/$buildtime['old'],4)*100; -// var_dump($buildtime['change']); -// array_push($this->buildtimeinfo,$buildtime); -// } -// } - - /** - * 获取文件夹下文件路径 - */ - protected function getFiles($path){ - if(is_dir($path)){ - $dp=dir($path); - while($file=$dp->read()) - if($file!='.'&&$file!='..') - $this->getFiles($path.'/'.$file); - $dp->close(); - } - else { - array_push($this->proInfo['files'],$path); - } - } - - protected function isImg($file_name,$pass_type=array('jpg','jpeg','gif','bmp','png')){ - $yx_file = $pass_type; - $kzm = substr(strrchr($file_name,"."),1); - $is_img = in_array(strtolower($kzm),$yx_file); - if($is_img){ - return true; - }else{ - return false; - } - } - /** - * 展示文件内容不同 - */ - public function DisplayDetails(){ - $smartyConfig = self::getConfig('smarty'); - $outputConfig = self::getConfig('output'); - $diffdatas = array(); - $this->proInfo['files'] = array(); - - $this->getFiles($this->proInfo['oldoutputdir']); - - foreach($this->proInfo['files'] as $path){ - $old = $path; - $new = str_replace($outputConfig['oldoutputdir'],$outputConfig['newoutputdir'],$old); - if(filesize($old) != filesize($new) && !preg_match("/fis_version.txt$/", $old)){ - $this->smarty->assign('new',$new); - $this->smarty->assign('old',$old); - $newtext = file_get_contents($new); - $oldtext = file_get_contents($old); - $nl = '#**!)@#'; - $diffdata = inline_diff($oldtext, $newtext, $nl); - array_push($diffdatas,$diffdata); - //文件内容diff的结果展示 - $this->smarty->assign('diffdata',mb_convert_encoding($diffdata,'utf-8', 'gbk')); - $html = $this->smarty->fetch($smartyConfig['templatedir']."diffdetails.tpl"); - $htmlpath = $smartyConfig['templatedir'].$this->proInfo['name']."_".str_replace("/", "_",substr($old,strrpos($old,$outputConfig['oldoutputdir']) + 13)).".html"; - $fileurl = self::getConfig('url').str_replace("/home/work/repos/","",$htmlpath); - $diff = array( - 'url' => $fileurl, - 'name' => str_replace("/", "_",substr($old,strrpos($old,$outputConfig['oldoutputdir']) + 13)), - 'old' => substr($old,strrpos($old,$outputConfig['oldoutputdir']) + 13), - 'new' => substr($old,strrpos($new,$outputConfig['newoutputdir']) + 13) - ); - array_push($this->Diff, $diff); - File::write($htmlpath,$html); - } - } -// $this->generateReport($diffdatas); - } - /** - * 分别展示不同的地方 - */ - public function Display(){ -// $this->getDefineDiff(); //tpl文件不同的地方 -// $this->getRequireDiffFromDifine(); //静态资源不同的地方 -// $this->getLog(); //获取文件依赖关系分析信息 -// $this->getBuildTime();//获取编译时间的diff - $smartyConfig = self::getConfig('smarty'); - require_once $smartyConfig['dir'].'/Smarty.class.php'; - $this->smarty = new Smarty(); - $this->smarty->setTemplateDir($smartyConfig['templatedir']); - - //展示文件内容的不同 - $this->DisplayDetails(); - -// //文件依赖关系分析内容 -// //老的 -// $this->smarty->assign('difflog',$this->loginfo['old']); -// $html = $this->smarty->fetch($smartyConfig['templatedir']."/analyzeinfo.tpl"); -// File::write($smartyConfig['templatedir'].$this->proInfo['name']."_old_log.html",$html); -// $oldlogurl = self::getConfig('url').str_replace("/home/work/repos/","", -// $smartyConfig['templatedir'].$this->proInfo['name']."_old_log.html"); -// -// //新的 -// $this->smarty->assign('difflog',$this->loginfo['new']); -// $html = $this->smarty->fetch($smartyConfig['templatedir']."/analyzeinfo.tpl"); -// File::write($smartyConfig['templatedir'].$this->proInfo['name']."_new_log.html",$html); -// $newlogurl = self::getConfig('url').str_replace("/home/work/repos/","", -// $smartyConfig['templatedir'].$this->proInfo['name']."_new_log.html"); - - //不同文件的list展示 - $this->smarty->assign('newversion',file_get_contents($this->proInfo['newoutputdir']."/fis_version.txt")); - $this->smarty->assign('oldversion',file_get_contents($this->proInfo['oldoutputdir']."/fis_version.txt")); - $this->smarty->assign('productname',$this->proInfo['name']); - $this->smarty->assign('difflist',$this->Diff); - $html = $this->smarty->fetch($smartyConfig['templatedir']."/difflist.tpl"); - File::write($smartyConfig['templatedir'].$this->proInfo['name']."_difflist.html",$html); -// $diffData = array( -// $this->proInfo['name'] =>$this->buildtimeinfo -// ); -// $this->createDiffDate($diffData); - $this->generateReport($this->Diff); - } - - /** - * 从php文件加载config,并合并到当前的配置数据中,加载成功则返回true,否则为false - * @static - * @param string $path php配置文件的路径,该文件内部代码为,配置数据必须是名为$config的变量 - * @return bool - */ - public static function loadConfig($path) { - if(is_file($path)){ - $config = array(); - try { - include $path; - } catch (Exception $e) { - Log::error("配置文件[{$path}]解析失败:" . $e->getMessage()); - } - self::merge($config); - return self::$config; - } else { - Log::warning("配置文件[{$path}]不存在."); - } - return false; - } - - /** - * 将数据递归合并到当前配置数据上 - * @static - * @param mixed $data 要合并的关联数组数据 - */ - public static function merge($data){ - self::_merge(self::$config, $data); - } - /** - * 递归合并数据函数 - * @static - * @param array $source - * @param mixed $data - */ - private static function _merge(&$source, $data){ - if(is_array($data)){ - foreach($data as $key => $value){ - if(array_key_exists($key, $source)){ - self::_merge($source[$key], $value); - } else { - $source[$key] = $value; - } - } - } else { - $source = $data; - } - } - - /** - * @static - * @param $key - * @param $key1 - * @return null 返回配置信息 - */ - public static function getConfig($key,$key1=null){ - if(!$key){ - return null; - }else if($key1){ - return self::$config[$key][$key1]; - }else{ - return self::$config[$key]; - } - } - - - - /* - *生成测试报告 - * - */ - private function generateReport($diffdatas){ - $smartyConfig = self::getConfig('smarty'); - $dom = new DOMDocument("1.0","utf-8"); - $xmlFile = $smartyConfig['templatedir']."report.xml"; - $tatalCount = 0; - $tatalFailure = 0; - - if(file_exists($xmlFile)){ - $dom->load($xmlFile); - $testsuite = $dom->getElementsByTagName("testsuite")->item(0); - $tatalCount = $testsuite->getAttribute("tests"); - $tatalFailure = $testsuite->getAttribute("failures"); - }else{ - $testsuites = $dom->createElement("testsuites"); - $dom->appendChild($testsuites); - $testsuite = $dom->createElement("testsuite"); - $testsuites->appendChild($testsuite); - } - - if(is_array($diffdatas) && count($diffdatas)>0){ - $count = count($diffdatas); - $tatalCount += $count; - $tatalFailure += $count; - $testsuite->setAttribute("name","diff* "); - $testsuite->setAttribute("tests",$tatalCount); - $testsuite->setAttribute("time",$tatalCount); - $testsuite->setAttribute("failures",$tatalFailure); - $testsuite->setAttribute("total",$tatalCount); - - foreach($diffdatas as $diffdata){ - $testcase=$dom->createElement("testcase"); - $testsuite->appendChild($testcase); - $testcase->setAttribute("name",$diffdata["name"]); - $testcase->setAttribute("time","1"); - $testcase->setAttribute("failures","1"); - $testcase->setAttribute("total","1"); - - $failure = $dom->createElement("failure"); - $testcase->appendChild($failure); - $failure->setAttribute("type","junit.framework.AssertionFailedError"); - $msgText = $dom->createTextNode("diff"); - $failure->appendChild($msgText); - - } - - }else if(!file_exists($xmlFile)){ - - $testsuite->setAttribute("name","diff* "); - $testsuite->setAttribute("tests",1); - $testsuite->setAttribute("time",1); - $testsuite->setAttribute("failures",0); - $testsuite->setAttribute("total",1); - - $testcase=$dom->createElement("testcase"); - $testsuite->appendChild($testcase); - $testcase->setAttribute("name","testcase0"); - $testcase->setAttribute("time","1"); - $testcase->setAttribute("failures","0"); - $testcase->setAttribute("total","1"); - } - $dom->save($xmlFile); - } - - - - /* - * 生成diff文件,提供给report工具使用 - * */ - private function createDiffDate($diffdatas){ - $smartyConfig = self::getConfig('smarty'); - $saveFile = $smartyConfig['templatedir']."diffDate.php"; - $fileData = array(); - if(file_exists($saveFile)){ - $fileData = include $saveFile; - } - //$res = array_diff($fileData,$diffdatas); - //$fileData = $res; - $fileData = array_merge($fileData,$diffdatas); - $str_content = "build(); -//$diff->analyze(); -//$diff->Display(); -//$diff->Display("require"); - - - diff --git a/test/util/diff/diffall.class.php b/test/util/diff/diffall.class.php deleted file mode 100644 index 263c75a..0000000 --- a/test/util/diff/diffall.class.php +++ /dev/null @@ -1,22 +0,0 @@ - $value){ - $diff = new Diff($pro); -// $diff->build(); -// $diff->analyze(); - $diff->Display(); - $productlist[$pro]['url'] = diff::getConfig('url').str_replace("/home/work/repos/","", - $smartyConfig['templatedir'].$pro."_difflist.html"); -} -$smarty = new Smarty(); -$smarty->assign('productsdiff',$productlist); -$html = $smarty->fetch($smartyConfig['templatedir']."/productsdiff.tpl"); -File::write($smartyConfig['templatedir']."productsdiff.html",$html); \ No newline at end of file diff --git a/test/util/diff/inline_diff/inline_function.php b/test/util/diff/inline_diff/inline_function.php deleted file mode 100644 index c4a3f3e..0000000 --- a/test/util/diff/inline_diff/inline_function.php +++ /dev/null @@ -1,63 +0,0 @@ -render($diff); -} \ No newline at end of file diff --git a/test/util/diff/inline_diff/inline_renderer.php b/test/util/diff/inline_diff/inline_renderer.php deleted file mode 100644 index fe432a8..0000000 --- a/test/util/diff/inline_diff/inline_renderer.php +++ /dev/null @@ -1,72 +0,0 @@ -'; - var $ins_suffix = ''; - var $del_prefix = '
'; - var $del_suffix = '
'; - - function Text_Diff_Renderer_inline($context_lines = 10000, $ins_prefix = '
', $ins_suffix = '
', $del_prefix = '
', $del_suffix = '
') - { - $this->$ins_prefix = $ins_prefix; - $this->$ins_suffix = $ins_suffix; - $this->$del_prefix = $del_prefix; - $this->$del_suffix = $del_suffix; - - $this->_leading_context_lines = $context_lines; - $this->_trailing_context_lines = $context_lines; - } - - function _lines($lines) - { - $value=""; - foreach ($lines as $line) { - $value.="$line "; - // FIXME: don't output space if it's the last line. - } - return "".$value.""; - } - - function _blockHeader($xbeg, $xlen, $ybeg, $ylen) - { - return ''; - } - - function _startBlock($header) - { - return $header; - } - - function _context($lines) - { - return $this->_lines($lines, ' '); - } - function _added($lines) - { - return $this->ins_prefix.$this->_lines($lines).$this->ins_suffix; - } - - function _deleted($lines) - { - return $this->del_prefix.$this->_lines($lines).$this->del_suffix; - } - - function _changed($orig, $final) - { - return "

".$this->_deleted($orig) ."

". $this->_added($final)."

"; - } - -} diff --git a/test/util/diff/new_fis_ready.sh b/test/util/diff/new_fis_ready.sh deleted file mode 100644 index bda3c37..0000000 --- a/test/util/diff/new_fis_ready.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env bash - -TEST_PATH=/home/work/repos/fis/test/util/diff -FIS_PATH=/home/work/repos/fis/ -FISP_PATH=/home/work/lib/node_modules/fis-plus -FISP_FIS_PATH=${FISP_PATH}/node_modules/fis - -cd ${FIS_PATH} -rm -rf node_modules -npm install --registry=https://registry.npm.taobao.org -npm install fis-preprocessor-image-set --registry=https://registry.npm.taobao.org -npm install fis-postpackager-ext-map --registry=https://registry.npm.taobao.org -npm install fis-packager-autopack --registry=https://registry.npm.taobao.org - -npm cache clean -npm update -g fis-plus --registry=https://registry.npm.taobao.org --prefix=/home/work/ - -rm -rf ${FISP_PATH}/node_modules/fis -cp -r ${FIS_PATH} ${FISP_FIS_PATH} -rm -rf ${FISP_FIS_PATH}/test - -sh ${TEST_PATH}/release$1.sh new diff --git a/test/util/diff/old_fis_ready.sh b/test/util/diff/old_fis_ready.sh deleted file mode 100644 index 9ca343b..0000000 --- a/test/util/diff/old_fis_ready.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/home/work/.jumbo/bin/expect - -set timeout 480 -set p [lindex $argv 0] -set o [lindex $argv 1] -#send_user $s -spawn su - fis -c "sh /home/work/repos/fis/test/util/diff/release$o.sh old" -expect "Password:" -send $p\r -expect eof -exit diff --git a/test/util/diff/old_fis_scp.sh b/test/util/diff/old_fis_scp.sh deleted file mode 100644 index 876d5da..0000000 --- a/test/util/diff/old_fis_scp.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/home/work/.jumbo/bin/expect - -set timeout 60 -set p [lindex $argv 0] -spawn su - fis -c "sh /home/fis/npm/lib/upload.sh" -expect "Password:" -send $p\r -expect "fis@fe's password:" -send $p\r -expect eof -exit diff --git a/test/util/diff/product_code.sh b/test/util/diff/product_code.sh deleted file mode 100644 index ee2a167..0000000 --- a/test/util/diff/product_code.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env bash - -TEST_PATH=/home/work/repos/fis/test/util/diff -cd ${TEST_PATH} - -PLACE_SVN=https://svn.baidu.com/app/search/lbs-webapp/trunk/pcmap/place -PLACE_DIR=./product_code/place - -BATMAN_SVN=https://svn.baidu.com/app/search/lbs-webapp/trunk/mmap/batman -BATMAN_DIR=./product_code/batman - -WENKU_SVN=https://svn.baidu.com/app/search/wenku/branches/fe/bookeditor/wenku_1001-0-253_BRANCH -WENKU_DIR=./product_code/wenku - -TIEBA_SVN=https://svn.baidu.com/app/search/forum/branches/fe/pad/xpad/pb/xpadpb_1-0-0_BRANCH -TIEBA_DIR=./product_code/tieba - -HAO123_SVN=https://svn.baidu.com/app/global/hao123/trunk/fe -HAO123_DIR=./product_code/hao123 - -SUPERMAN_SVN=https://svn.baidu.com/app/search/lbs-webapp/trunk/mmap/superman -SUPERMAN_DIR=./product_code/superman - -svn co ${PLACE_SVN} ${PLACE_DIR} -svn co ${BATMAN_SVN} ${BATMAN_DIR} -svn co ${WENKU_SVN} ${WENKU_DIR} -svn co ${TIEBA_SVN} ${TIEBA_DIR} -svn co ${HAO123_SVN}/common ${HAO123_DIR}/common -svn co ${HAO123_SVN}/home ${HAO123_DIR}/home -svn co ${HAO123_SVN}/lv2 ${HAO123_DIR}/lv2 -svn co ${SUPERMAN_SVN} ${SUPERMAN_DIR} diff --git a/test/util/diff/release.sh b/test/util/diff/release.sh deleted file mode 100644 index 8540887..0000000 --- a/test/util/diff/release.sh +++ /dev/null @@ -1,157 +0,0 @@ -#!/usr/bin/env bash - -export PATH=/home/work/bin:$PATH -TEST_PATH=/home/work/repos/fis/test/util/diff -FIS_PATH=/home/work/repos/fis/ -NEW_FISP_FIS_PATH=/home/work/lib/node_modules/fis-plus/node_modules/fis -OLD_FISP_FIS_PATH=/home/fis/npm/lib/node_modules/fis-plus/node_modules/fis/ -cd ${TEST_PATH} -WENKU_CODE_PATH=${TEST_PATH}/product_code/wenku -WENKU_OUTPUT_PATH=${TEST_PATH}/product_output/wenku - -TIEBA_CODE_PATH=${TEST_PATH}/product_code/tieba -TIEBA_OUTPUT_PATH=${TEST_PATH}/product_output/tieba - -BATMAN_CODE_PATH=${TEST_PATH}/product_code/batman -BATMAN_OUTPUT_PATH=${TEST_PATH}/product_output/batman -BATMAN_MODULES=(transit place common index addr feedback drive walk) - -PLACE_CODE_PATH=${TEST_PATH}/product_code/place -PLACE_OUTPUT_PATH=${TEST_PATH}/product_output/place -PLACE_MODULES=(admin beauty cater common detail hotel movie scope) - -HAO123_CODE_PATH=${TEST_PATH}/product_code/hao123 -HAO123_OUTPUT_PATH=${TEST_PATH}/product_output/hao123 -HAO123_MODULES=(common home lv2) - -SUPERMAN_CODE_PATH=${TEST_PATH}/product_code/superman -SUPERMAN_OUTPUT_PATH=${TEST_PATH}/product_output/superman -SUPERMAN_MODULES=(transit place common index addr feedback drive walk third taxi user) - -#获取fis version -if [ $1 = 'new' ] -then - version=$(node ${NEW_FISP_FIS_PATH}/bin/fis -v --no-color) -else - version=$(node ${OLD_FISP_FIS_PATH}/bin/fis -v --no-color) -fi - -OLD_IFS="$IFS" -IFS=" " -arr=($version) -IFS="$OLD_IFS" -v=${arr[1]} - -# 执行release -if [ $1 = 'new' ] -then - #wenku - rm -rf ${WENKU_OUTPUT_PATH}/output_new - cd ${WENKU_CODE_PATH} - ${NEW_FISP_FIS_PATH}/bin/fis release -cd ${WENKU_OUTPUT_PATH}/output_new --no-color - echo $v > ${WENKU_OUTPUT_PATH}/output_new/fis_version.txt - chmod 777 ${WENKU_OUTPUT_PATH} - - #tieba - rm -rf ${TIEBA_OUTPUT_PATH}/output_new - cd ${TIEBA_CODE_PATH} - ${NEW_FISP_FIS_PATH}/bin/fis release -cpd ${TIEBA_OUTPUT_PATH}/output_new --no-color - echo $v > ${TIEBA_OUTPUT_PATH}/output_new/fis_version.txt - chmod 777 ${TIEBA_OUTPUT_PATH} - - #batman - rm -rf ${BATMAN_OUTPUT_PATH}/output_new - for module in ${BATMAN_MODULES[@]} - do - cd ${BATMAN_CODE_PATH}/$module - fisp release -cpd ${BATMAN_OUTPUT_PATH}/output_new --no-color - done - echo $v > ${BATMAN_OUTPUT_PATH}/output_new/fis_version.txt - chmod 777 ${BATMAN_OUTPUT_PATH} - - #place - rm -rf ${PLACE_OUTPUT_PATH}/output_new - for module in ${PLACE_MODULES[@]} - do - cd ${PLACE_CODE_PATH}/$module - fisp release -cpd ${PLACE_OUTPUT_PATH}/output_new --no-color - done - echo $v > ${PLACE_OUTPUT_PATH}/output_new/fis_version.txt - chmod 777 ${PLACE_OUTPUT_PATH} - - #hao123 - rm -rf ${HAO123_OUTPUT_PATH}/output_new - for module in ${HAO123_MODULES[@]} - do - cd ${HAO123_CODE_PATH}/$module - fisp release -cpd ${HAO123_OUTPUT_PATH}/output_new --no-color - done - echo $v > ${HAO123_OUTPUT_PATH}/output_new/fis_version.txt - chmod 777 ${HAO123_OUTPUT_PATH} - - #superman - rm -rf ${SUPERMAN_OUTPUT_PATH}/output_new - for module in ${SUPERMAN_MODULES[@]} - do - cd ${SUPERMAN_CODE_PATH}/$module - fisp release -cpd ${SUPERMAN_OUTPUT_PATH}/output_new --no-color - done - echo $v > ${SUPERMAN_OUTPUT_PATH}/output_new/fis_version.txt - chmod 777 ${SUPERMAN_OUTPUT_PATH} - -else - #wenku - rm -rf ${WENKU_OUTPUT_PATH}/output_old - cd ${WENKU_CODE_PATH} - ${OLD_FISP_FIS_PATH}/bin/fis release -cd ${WENKU_OUTPUT_PATH}/output_old --no-color - echo $v > ${WENKU_OUTPUT_PATH}/output_old/fis_version.txt - chmod 777 -R ${WENKU_OUTPUT_PATH}/output_old - - #tieba - rm -rf ${TIEBA_OUTPUT_PATH}/output_old - cd ${TIEBA_CODE_PATH} - ${OLD_FISP_FIS_PATH}/bin/fis release -cpd ${TIEBA_OUTPUT_PATH}/output_old --no-color - echo $v > ${TIEBA_OUTPUT_PATH}/output_old/fis_version.txt - chmod 777 -R ${TIEBA_OUTPUT_PATH}/output_old - - #batman - rm -rf ${BATMAN_OUTPUT_PATH}/output_old - for module in ${BATMAN_MODULES[@]} - do - cd ${BATMAN_CODE_PATH}/$module - fisp release -cpd ${BATMAN_OUTPUT_PATH}/output_old --no-color - done - echo $v > ${BATMAN_OUTPUT_PATH}/output_old/fis_version.txt - chmod 777 -R ${BATMAN_OUTPUT_PATH}/output_old - - #place - rm -rf ${PLACE_OUTPUT_PATH}/output_old - for module in ${PLACE_MODULES[@]} - do - cd ${PLACE_CODE_PATH}/$module - fisp release -cpd ${PLACE_OUTPUT_PATH}/output_old --no-color - done - echo $v > ${PLACE_OUTPUT_PATH}/output_old/fis_version.txt - chmod 777 -R ${PLACE_OUTPUT_PATH}/output_old - - #hao123 - rm -rf ${HAO123_OUTPUT_PATH}/output_old - for module in ${HAO123_MODULES[@]} - do - cd ${HAO123_CODE_PATH}/$module - fisp release -cpd ${HAO123_OUTPUT_PATH}/output_old --no-color - done - echo $v > ${HAO123_OUTPUT_PATH}/output_old/fis_version.txt - chmod 777 -R ${HAO123_OUTPUT_PATH}/output_old - - #superman - rm -rf ${SUPERMAN_OUTPUT_PATH}/output_old - for module in ${SUPERMAN_MODULES[@]} - do - cd ${SUPERMAN_CODE_PATH}/$module - fisp release -cpd ${SUPERMAN_OUTPUT_PATH}/output_old --no-color - done - echo $v > ${SUPERMAN_OUTPUT_PATH}/output_old/fis_version.txt - chmod 777 -R ${SUPERMAN_OUTPUT_PATH}/output_old - -fi diff --git a/test/util/diff/release_o.sh b/test/util/diff/release_o.sh deleted file mode 100644 index 7f7d214..0000000 --- a/test/util/diff/release_o.sh +++ /dev/null @@ -1,156 +0,0 @@ -#!/usr/bin/env bash - -TEST_PATH=/home/work/repos/fis/test/util/diff -FIS_PATH=/home/work/repos/fis/ -NEW_FISP_FIS_PATH=/home/work/lib/node_modules/fis-plus/node_modules/fis -OLD_FISP_FIS_PATH=/home/fis/npm/lib/node_modules/fis-plus/node_modules/fis/ -cd ${TEST_PATH} -WENKU_CODE_PATH=${TEST_PATH}/product_code/wenku -WENKU_OUTPUT_PATH=${TEST_PATH}/product_output/wenku - -TIEBA_CODE_PATH=${TEST_PATH}/product_code/tieba -TIEBA_OUTPUT_PATH=${TEST_PATH}/product_output/tieba - -BATMAN_CODE_PATH=${TEST_PATH}/product_code/batman -BATMAN_OUTPUT_PATH=${TEST_PATH}/product_output/batman -BATMAN_MODULES=(transit place common index addr feedback drive walk) - -PLACE_CODE_PATH=${TEST_PATH}/product_code/place -PLACE_OUTPUT_PATH=${TEST_PATH}/product_output/place -PLACE_MODULES=(admin beauty cater common detail hotel movie scope) - -HAO123_CODE_PATH=${TEST_PATH}/product_code/hao123 -HAO123_OUTPUT_PATH=${TEST_PATH}/product_output/hao123 -HAO123_MODULES=(common home lv2) - -SUPERMAN_CODE_PATH=${TEST_PATH}/product_code/superman -SUPERMAN_OUTPUT_PATH=${TEST_PATH}/product_output/superman -SUPERMAN_MODULES=(transit place common index addr feedback drive walk third taxi user) - -#获取fis version -if [ $1 = 'new' ] -then - version=$(node ${NEW_FISP_FIS_PATH}/bin/fis -v --no-color) -else - version=$(node ${OLD_FISP_FIS_PATH}/bin/fis -v --no-color) -fi - -OLD_IFS="$IFS" -IFS=" " -arr=($version) -IFS="$OLD_IFS" -v=${arr[1]} - -# 执行release -if [ $1 = 'new' ] -then - #wenku - rm -rf ${WENKU_OUTPUT_PATH}/output_o_new - cd ${WENKU_CODE_PATH} - ${NEW_FISP_FIS_PATH}/bin/fis release -cd ${WENKU_OUTPUT_PATH}/output_o_new --no-color - echo $v > ${WENKU_OUTPUT_PATH}/output_o_new/fis_version.txt - chmod 777 ${WENKU_OUTPUT_PATH} - - #tieba - rm -rf ${TIEBA_OUTPUT_PATH}/output_o_new - cd ${TIEBA_CODE_PATH} - ${NEW_FISP_FIS_PATH}/bin/fis release -copd ${TIEBA_OUTPUT_PATH}/output_o_new --no-color - echo $v > ${TIEBA_OUTPUT_PATH}/output_o_new/fis_version.txt - chmod 777 ${TIEBA_OUTPUT_PATH} - - #batman - rm -rf ${BATMAN_OUTPUT_PATH}/output_o_new - for module in ${BATMAN_MODULES[@]} - do - cd ${BATMAN_CODE_PATH}/$module - fisp release -copd ${BATMAN_OUTPUT_PATH}/output_o_new --no-color - done - echo $v > ${BATMAN_OUTPUT_PATH}/output_o_new/fis_version.txt - chmod 777 ${BATMAN_OUTPUT_PATH} - - #place - rm -rf ${PLACE_OUTPUT_PATH}/output_o_new - for module in ${PLACE_MODULES[@]} - do - cd ${PLACE_CODE_PATH}/$module - fisp release -copd ${PLACE_OUTPUT_PATH}/output_o_new --no-color - done - echo $v > ${PLACE_OUTPUT_PATH}/output_o_new/fis_version.txt - chmod 777 ${PLACE_OUTPUT_PATH} - - #hao123 - rm -rf ${HAO123_OUTPUT_PATH}/output_o_new - for module in ${HAO123_MODULES[@]} - do - cd ${HAO123_CODE_PATH}/$module - fisp release -copd ${HAO123_OUTPUT_PATH}/output_o_new --no-color - done - echo $v > ${HAO123_OUTPUT_PATH}/output_o_new/fis_version.txt - chmod 777 ${HAO123_OUTPUT_PATH} - - #superman - rm -rf ${SUPERMAN_OUTPUT_PATH}/output_o_new - for module in ${SUPERMAN_MODULES[@]} - do - cd ${SUPERMAN_CODE_PATH}/$module - fisp release -copd ${SUPERMAN_OUTPUT_PATH}/output_o_new --no-color - done - echo $v > ${SUPERMAN_OUTPUT_PATH}/output_o_new/fis_version.txt - chmod 777 ${SUPERMAN_OUTPUT_PATH} - -else - #wenku - rm -rf ${WENKU_OUTPUT_PATH}/output_o_old - cd ${WENKU_CODE_PATH} - ${OLD_FISP_FIS_PATH}/bin/fis release -cd ${WENKU_OUTPUT_PATH}/output_o_old --no-color - echo $v > ${WENKU_OUTPUT_PATH}/output_o_old/fis_version.txt - chmod 777 -R ${WENKU_OUTPUT_PATH}/output_o_old - - #tieba - rm -rf ${TIEBA_OUTPUT_PATH}/output_o_old - cd ${TIEBA_CODE_PATH} - ${OLD_FISP_FIS_PATH}/bin/fis release -copd ${TIEBA_OUTPUT_PATH}/output_o_old --no-color - echo $v > ${TIEBA_OUTPUT_PATH}/output_o_old/fis_version.txt - chmod 777 -R ${TIEBA_OUTPUT_PATH}/output_o_old - - #batman - rm -rf ${BATMAN_OUTPUT_PATH}/output_o_old - for module in ${BATMAN_MODULES[@]} - do - cd ${BATMAN_CODE_PATH}/$module - fisp release -copd ${BATMAN_OUTPUT_PATH}/output_o_old --no-color - done - echo $v > ${BATMAN_OUTPUT_PATH}/output_o_old/fis_version.txt - chmod 777 -R ${BATMAN_OUTPUT_PATH}/output_o_old - - #place - rm -rf ${PLACE_OUTPUT_PATH}/output_o_old - for module in ${PLACE_MODULES[@]} - do - cd ${PLACE_CODE_PATH}/$module - fisp release -copd ${PLACE_OUTPUT_PATH}/output_o_old --no-color - done - echo $v > ${PLACE_OUTPUT_PATH}/output_o_old/fis_version.txt - chmod 777 -R ${PLACE_OUTPUT_PATH}/output_o_old - - #hao123 - rm -rf ${HAO123_OUTPUT_PATH}/output_o_old - for module in ${HAO123_MODULES[@]} - do - cd ${HAO123_CODE_PATH}/$module - fisp release -copd ${HAO123_OUTPUT_PATH}/output_o_old --no-color - done - echo $v > ${HAO123_OUTPUT_PATH}/output_o_old/fis_version.txt - chmod 777 -R ${HAO123_OUTPUT_PATH}/output_o_old - - #superman - rm -rf ${SUPERMAN_OUTPUT_PATH}/output_o_old - for module in ${SUPERMAN_MODULES[@]} - do - cd ${SUPERMAN_CODE_PATH}/$module - fisp release -copd ${SUPERMAN_OUTPUT_PATH}/output_o_old --no-color - done - echo $v > ${SUPERMAN_OUTPUT_PATH}/output_o_old/fis_version.txt - chmod 777 -R ${SUPERMAN_OUTPUT_PATH}/output_o_old - -fi diff --git a/test/util/diff/result/diffdetails.tpl b/test/util/diff/result/diffdetails.tpl deleted file mode 100644 index 34a872b..0000000 --- a/test/util/diff/result/diffdetails.tpl +++ /dev/null @@ -1,44 +0,0 @@ - - - - -diff details - - - - -

 

- - - - - - - - - - - - - -
红色代表老版本编译后的结果{$old}
绿色代表新版本编译后的结果{$new}
diff details
-

- {$diffdata} -

-
- - - diff --git a/test/util/diff/result/difflist.tpl b/test/util/diff/result/difflist.tpl deleted file mode 100644 index b2ba0f0..0000000 --- a/test/util/diff/result/difflist.tpl +++ /dev/null @@ -1,51 +0,0 @@ - - - - - diff file list - - - - - - - - - - - -
{$productname} diff info:
- - - - - - - {foreach $difflist as $value} - - - - - - {/foreach} -
file name new({$newversion}) old({$oldversion})
{$value.name}{$value.new}{$value.old}
-
- - diff --git a/test/util/diff/result/productsdiff.tpl b/test/util/diff/result/productsdiff.tpl deleted file mode 100644 index 48cf845..0000000 --- a/test/util/diff/result/productsdiff.tpl +++ /dev/null @@ -1,40 +0,0 @@ - - - - - diff file list - - - - -

product difflist info:

- - - - - -{foreach $productsdiff as $value} - - - - - -{/foreach} -
product namediff result
{$value.name}click here >>
-

 

-

 

-

 

- - diff --git a/test/util/diff/result_o/diffdetails.tpl b/test/util/diff/result_o/diffdetails.tpl deleted file mode 100644 index 34a872b..0000000 --- a/test/util/diff/result_o/diffdetails.tpl +++ /dev/null @@ -1,44 +0,0 @@ - - - - -diff details - - - - -

 

- - - - - - - - - - - - - -
红色代表老版本编译后的结果{$old}
绿色代表新版本编译后的结果{$new}
diff details
-

- {$diffdata} -

-
- - - diff --git a/test/util/diff/result_o/difflist.tpl b/test/util/diff/result_o/difflist.tpl deleted file mode 100644 index b2ba0f0..0000000 --- a/test/util/diff/result_o/difflist.tpl +++ /dev/null @@ -1,51 +0,0 @@ - - - - - diff file list - - - - - - - - - - - -
{$productname} diff info:
- - - - - - - {foreach $difflist as $value} - - - - - - {/foreach} -
file name new({$newversion}) old({$oldversion})
{$value.name}{$value.new}{$value.old}
-
- - diff --git a/test/util/diff/result_o/productsdiff.tpl b/test/util/diff/result_o/productsdiff.tpl deleted file mode 100644 index 48cf845..0000000 --- a/test/util/diff/result_o/productsdiff.tpl +++ /dev/null @@ -1,40 +0,0 @@ - - - - - diff file list - - - - -

product difflist info:

- - - - - -{foreach $productsdiff as $value} - - - - - -{/foreach} -
product namediff result
{$value.name}click here >>
-

 

-

 

-

 

- - diff --git a/test/util/diff/start.sh b/test/util/diff/start.sh deleted file mode 100644 index f4dae18..0000000 --- a/test/util/diff/start.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash - -TEST_PATH=/home/work/repos/fis/test/util/diff -cd ${TEST_PATH} -if [ -f "result"$4"/report.xml" ] -then - rm "result"$4"/report.xml" -fi -sh product_code.sh $1 $2 -sh new_fis_ready.sh $4 -chmod +x old_fis_scp.sh -./old_fis_scp.sh $3 -chmod +x old_fis_ready.sh -./old_fis_ready.sh $3 $4 -rm -rf result$4/*.html -sleep 2s -php -f diffall.class.php $4 diff --git a/test/util/md5/test.sh b/test/util/md5/test.sh deleted file mode 100644 index 66b2f67..0000000 --- a/test/util/md5/test.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh -npm install -g lights -lights install pc-demo -cd ./pc-demo -cd ./home -fis release -m -cd ../common -fis release -m -cd ../.. -root="/home/work/.fis-tmp/www" -if [ -z "$root" ]; then { - echo "can't find project!" - npm uninstall lights - rm -r pc-demo - exit; -} -fi -touch exchange.txt -echo "$root">exchange.txt -if [ ! -d "./result" ]; then -mkdir result -fi -php tstRight.php -rm exchange.txt -if [ -f "${root}/exchange.txt" ]; then { - rm ${root}/exchange.txt -} -fi -npm uninstall -g lights -rm -r pc-demo \ No newline at end of file diff --git a/test/util/md5/tstRight.php b/test/util/md5/tstRight.php deleted file mode 100644 index b80b367..0000000 --- a/test/util/md5/tstRight.php +++ /dev/null @@ -1,78 +0,0 @@ -load($xmlFile); - $testsuite = $dom->getElementsByTagName("testsuite")->item(0); - $totalCount = $testsuite->getAttribute("tests"); - $totalFailure = $testsuite->getAttribute("failures"); -}else{ - $testsuites = $dom->createElement("testsuites"); - $dom->appendChild($testsuites); - $testsuite = $dom->createElement("testsuite"); - $testsuites->appendChild($testsuite); -} -if($flag){ - $totalCount+=1; - $totalFailure+=1; - $testsuite->setAttribute("name","md5* "); - $testsuite->setAttribute("tests",$totalCount); - $testsuite->setAttribute("time",$totalCount); - $testsuite->setAttribute("failures",$totalFailure); - $testsuite->setAttribute("total",$totalCount); - - $testcase=$dom->createElement("testcase"); - $testsuite->appendChild($testcase); - $testcase->setAttribute("name","testcase0"); - $testcase->setAttribute("time","1"); - $testcase->setAttribute("failures","1"); - $testcase->setAttribute("total","1"); -}else{ - $totalCount++; - $testsuite->setAttribute("name","md5* "); - $testsuite->setAttribute("tests",$totalCount); - $testsuite->setAttribute("time",$totalCount); - $testsuite->setAttribute("failures",$totalFailure); - $testsuite->setAttribute("total",$totalCount); - - $testcase=$dom->createElement("testcase"); - $testsuite->appendChild($testcase); - $testcase->setAttribute("name","testcase0"); - $testcase->setAttribute("time","1"); - $testcase->setAttribute("failures",0); - $testcase->setAttribute("total",1); -} -$dom->save($xmlFile); -?> From 1b0d2232008ec96e957462a780eabcce95e19c7a Mon Sep 17 00:00:00 2001 From: xiangshouding Date: Fri, 11 Jan 2019 18:44:31 +0800 Subject: [PATCH 49/51] [UPDATE] update images process version --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 6da0f9f..cd1ae52 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.10.5", + "version": "1.10.6", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ @@ -35,10 +35,10 @@ "fis-preprocessor-components": "1.0.19", "fis-optimizer-clean-css": "0.0.9", "fis-optimizer-png-compressor": "0.1.6", - "fis-optimizer-uglify-js": "0.1.14", + "fis-optimizer-uglify-js": "0.2.1", "fis-packager-map": "0.0.9", "fis-postprocessor-jswrapper": "0.0.12", - "fis-spriter-csssprites": "0.3.11", + "fis-spriter-csssprites": "0.4.1", "fis-prepackager-derived": "0.0.3" } } From 1174e0a7d55e8360c3e263002f09c7b54c2ecf7d Mon Sep 17 00:00:00 2001 From: xiangshouding Date: Fri, 11 Jan 2019 19:08:25 +0800 Subject: [PATCH 50/51] [UPDATE] update fis-optimizer uglifyjs & png-compressor --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index cd1ae52..6031153 100644 --- a/package.json +++ b/package.json @@ -34,8 +34,8 @@ "fis-kernel": "2.0.19", "fis-preprocessor-components": "1.0.19", "fis-optimizer-clean-css": "0.0.9", - "fis-optimizer-png-compressor": "0.1.6", - "fis-optimizer-uglify-js": "0.2.1", + "fis-optimizer-png-compressor": "0.2.2", + "fis-optimizer-uglify-js": "0.2.2", "fis-packager-map": "0.0.9", "fis-postprocessor-jswrapper": "0.0.12", "fis-spriter-csssprites": "0.4.1", From df24309102602bf32485e8e32f6bb20a9333a999 Mon Sep 17 00:00:00 2001 From: 2betop <2betop.cn@gmail.com> Date: Mon, 10 Jan 2022 15:53:34 +0800 Subject: [PATCH 51/51] =?UTF-8?q?=E5=8D=87=E7=BA=A7=20fis-deploy-default?= =?UTF-8?q?=20=E5=9B=BA=E5=AE=9A=20colors=20=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6031153..3b41f00 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fis", "description": "front-end integrated solution.", - "version": "1.10.6", + "version": "1.10.7", "author": "FIS Team ", "homepage": "http://fis.baidu.com/", "keywords": [ @@ -30,7 +30,7 @@ "fis-command-install": "0.2.15", "fis-command-release": "0.13.0", "fis-command-server": "0.7.9", - "fis-deploy-default": "0.1.3", + "fis-deploy-default": "0.1.4", "fis-kernel": "2.0.19", "fis-preprocessor-components": "1.0.19", "fis-optimizer-clean-css": "0.0.9",