crabatool 1.0.146 → 1.0.147

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.146",
3
+ "version": "1.0.147",
4
4
  "description": "crabatool",
5
5
  "main": "index.js",
6
6
  "bin": {
package/readme.md CHANGED
@@ -1,15 +1,16 @@
1
1
  # 使用方法
2
+ 1. 打开命令行终端,安装crabatool 输入:npm install crabatool -g 或从本地仓库安装(更快) npm install crabatool -g --registry http://172.17.0.236:4873/
2
3
 
3
- 1. 命令行定位到当前目录.
4
- 2. 执行命令:npm install crabatool 或 npm update crabatool
5
- 3. 打开 node_modules/ngp/config.js,按需修改配置
6
- 4. 执行命令:node node_modules/ngp/server.js
7
- [详细使用文档](http://crabadoc.ca.com/index.html?#~/Pages/Guide.gspx?id=1655080677276)
4
+ 2. 快捷使用crabatool进行代码检测 比如,检查某个路径下面的所有js,可直接在命令行终端输入命令:crabatool -checkjs -webPath F:\Beefun\srcs\Beefun -modName Beefun
8
5
 
9
- # 举例
6
+ 3. 快捷使用crabatool启动nodejs服务 crabatool -run -webPath F:\shell_master\web\src\main\resources\static\shell
7
+
8
+ 4. 快捷使用crabatool更新指定项目的平台 crabatool -update -webPath F:\shell_master\web\src\main\resources\static\shell
9
+
10
+ -checkjs表示使用代码检查功能; -webPath表示要检查哪个站点的路径; -modName表示项目名称
11
+
12
+ [详细使用文档](http://crabadoc.ca.com/#~/Pages/Guide.gspx?id=1655080677276)
10
13
 
11
- 1. 如果本地有个项目 A,拷贝 node_modules/ngp 目录到其他地方改为 productA,按第 3 步:修改 config.js,然后执行第 4 步
12
- 2. 如果本地有个项目 B,拷贝 node_modules/ngp 目录到其他地方改为 productB,按第 3 步:修改 config.js,然后执行第 4 步
13
14
 
14
15
  # 功能介绍
15
16
 
package/tool/checkjs.js CHANGED
@@ -36,7 +36,7 @@ var warnTagsInfo = {
36
36
  'iframe': '建议使用IFrame'
37
37
  }
38
38
 
39
- var jsonPath = path.join(__dirname, '../.eslintrc.json');
39
+ //var jsonPath = path.join(__dirname, '../.eslintrc.json');
40
40
 
41
41
  module.exports.start = async function() {
42
42
  //utils.copyFile(jsonPath, path.join(process.cwd(), '.eslintrc.json'));