easy-soft-develop 1.0.1 → 1.0.2

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.
Files changed (2) hide show
  1. package/bin/cli.js +19 -0
  2. package/package.json +16 -2
package/bin/cli.js ADDED
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { Command } = require('commander');
4
+ const { createCleanScriptFile } = require('../src');
5
+
6
+ const program = new Command();
7
+
8
+ process.title = 'easy-soft-develop';
9
+
10
+ program.version(require('../package').version).usage('<command> [options]');
11
+
12
+ program
13
+ .command('create-assist-scripts')
14
+ .description('create assist script files for your project')
15
+ .action(() => {
16
+ createCleanScriptFile();
17
+ });
18
+
19
+ program.parse(process.argv);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy-soft-develop",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/kityandhero/easy-soft-develop#readme",
6
6
  "bugs": {
@@ -13,6 +13,9 @@
13
13
  "license": "ISC",
14
14
  "author": "",
15
15
  "main": "src/index.js",
16
+ "bin": {
17
+ "taro-fast-cli": "./bin/cli.js"
18
+ },
16
19
  "directories": {
17
20
  "src": "src"
18
21
  },
@@ -20,10 +23,15 @@
20
23
  "src/"
21
24
  ],
22
25
  "scripts": {
26
+ "change-nrm-local": "nrm use local",
27
+ "change-nrm-npm": "nrm use npm",
23
28
  "commitlint": "npx commitlint --edit",
24
29
  "precz": "git stage -A",
25
30
  "cz": "cz",
26
31
  "postcz": "git push",
32
+ "prepublish:npm": "npm run change-nrm-npm",
33
+ "publish:npm": "npm publish",
34
+ "postpublish:npm": "npm run change-nrm-local",
27
35
  "test:commitRefresh": "node ./test/commitRefresh.test.js",
28
36
  "test:createCleanScriptFile": "node ./test/createCleanScriptFile.test.js",
29
37
  "test:createCommitRefreshScriptFile": "node ./test/createCommitRefreshScriptFile.test.js",
@@ -37,8 +45,11 @@
37
45
  "@commitlint/config-conventional": "^17.4.2",
38
46
  "@commitlint/config-lerna-scopes": "^17.4.2",
39
47
  "@commitlint/cz-commitlint": "^17.4.2",
48
+ "commander": "^9.0.0",
40
49
  "commitizen": "^4.3.0",
41
50
  "conventional-changelog-conventionalcommits": "^5.0.0",
51
+ "download": "^8.0.0",
52
+ "download-git-repo": "^3.0.2",
42
53
  "eslint": "^8.33.0",
43
54
  "eslint-config-prettier": "^8.6.0",
44
55
  "eslint-formatter-pretty": "^4.1.0",
@@ -48,11 +59,14 @@
48
59
  "eslint-plugin-prettier": "^4.2.1",
49
60
  "eslint-plugin-promise": "^6.1.1",
50
61
  "fs-extra": "^11.1.0",
62
+ "hpagent": "^1.0.0",
51
63
  "husky": "^8.0.3",
52
64
  "lint-staged": "^13.1.0",
65
+ "ping": "^0.4.2",
53
66
  "prettier": "^2.8.3",
54
67
  "prettier-plugin-packagejson": "^2",
55
68
  "rimraf": "^4.1.2",
56
- "shelljs": "^0.8.5"
69
+ "shelljs": "^0.8.5",
70
+ "terminal-kit": "^2.4.0"
57
71
  }
58
72
  }