crabatool 1.0.814 → 1.0.815

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crabatool",
3
- "version": "1.0.814",
3
+ "version": "1.0.815",
4
4
  "description": "crabatool",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -95,8 +95,14 @@ function buildFolder(options) {
95
95
  list.forEach(function(item) {
96
96
  var arr = item.split('=');
97
97
  var key = arr[0].trim();
98
- var value = arr[1].trim();
98
+ var value;
99
+ if (key == '$versionDate$') {
100
+ value = new Date().toString('yyyyMMddhh');
101
+ } else {
102
+ value = arr[1].trim();
103
+ }
99
104
  content = content.replaceAll(key, value);
105
+
100
106
  });
101
107
  }
102
108
  // 没有输出文件,直接返回压缩后的文件