crabatool 1.0.516 → 1.0.518

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.516",
3
+ "version": "1.0.518",
4
4
  "description": "crabatool",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -11,6 +11,7 @@
11
11
  "shell-doc": "node ./test/test.js -convertJavadoc -targetPath F:/docs/shell -outPath F:/docs/shell.json",
12
12
  "jxc-doc": "node ./test/test.js -convertJavadoc -targetPath F:/docs/jxc -outPath F:/docs/jxc.json",
13
13
  "sale-doc": "node ./test/test.js -convertJavadoc -targetPath F:/docs/sale -outPath F:/docs/sale.json",
14
+ "ngp-parent-doc": "node ./test/test.js -convertJavadoc -targetPath F:/docs/ngp-parent -outPath F:/docs/ngp-parent.json -modName ngp-parent",
14
15
  "start": "node run.js",
15
16
  "test": "node ./test/test.js",
16
17
  "run": "node ./test/test.js -run -webPath F:/basicweb/www -refresh true",
@@ -16,7 +16,7 @@ module.exports.run = function() {
16
16
  if (replaceStr == 'version') {
17
17
  content = content.replace(/(version\s*:\s*['"])[\d.]+(['"]\s*\}\);)/, `$1${newVersion}$2`);
18
18
  } else if (replaceStr == 'staticVersion') {
19
- content = content.replace(/(var\s+staticVersion\s*=\s*['"])([\d.]+)(['"]\s*;)/, `$1${newVersion}$3`);
19
+ content = content.replace(/(staticVersion\s*=\s*['"])([\d.]+)(['"]\s*;)/, `$1${newVersion}$3`);
20
20
  } else {
21
21
  content = content.replace(replaceStr, newVersion);
22
22
  }
@@ -285,6 +285,7 @@ function cleanHtmlTags(html) {
285
285
  }
286
286
 
287
287
  function getModName(key) {
288
+ if (config.modName) return config.modName;
288
289
  var modName = '未知';
289
290
  if (key.startsWith('com.wsgjp.ct')) {
290
291
  var arr = key.split('.');