crabatool 1.0.140 → 1.0.144

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,8 +1,11 @@
1
1
  {
2
2
  "name": "crabatool",
3
- "version": "1.0.140",
3
+ "version": "1.0.144",
4
4
  "description": "crabatool",
5
5
  "main": "index.js",
6
+ "bin": {
7
+ "crabatool": "./run.js"
8
+ },
6
9
  "scripts": {
7
10
  "start": "node index.js",
8
11
  "test": "node ./test/test.js",
package/run.js ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ var crabaTool = require('./index.js'); // 引入craba脚手架工具包
3
+ crabaTool.run();
package/tool/checkjs.js CHANGED
@@ -38,7 +38,7 @@ var warnTagsInfo = {
38
38
 
39
39
 
40
40
  module.exports.start = async function() {
41
- utils.copyFile(path.join(__dirname, '../.eslintrc.json'), path.join(process.cwd(), '.eslintrc.json'));
41
+ utils.copyFile(path.join(__dirname, '../eslintrc.json'), path.join(cwd, '.eslintrc.json'));
42
42
  var jsFiles = utils.getFiles({ source: config.webPath, exts: '.js', ignores: config.ignoreCheck });
43
43
 
44
44
  var errDatas = {};
@@ -1,17 +0,0 @@
1
- {
2
- // 使用 IntelliSense 了解相关属性。
3
- // 悬停以查看现有属性的描述。
4
- // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
5
- "version": "0.2.0",
6
- "configurations": [
7
- {
8
- "type": "pwa-node",
9
- "request": "launch",
10
- "name": "Launch Program",
11
- "skipFiles": [
12
- "<node_internals>/**"
13
- ],
14
- "program": "${workspaceFolder}\\test\\beefun.js"
15
- }
16
- ]
17
- }
@@ -1,3 +0,0 @@
1
- {
2
- "eslint.enable": false
3
- }