@imooc-cli-dev-com/com 1.0.0

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/LICENSE.md ADDED
File without changes
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ TODO: description
2
+
3
+
@@ -0,0 +1,11 @@
1
+ # `core`
2
+
3
+ > TODO: description
4
+
5
+ ## Usage
6
+
7
+ ```
8
+ const core = require('core');
9
+
10
+ // TODO: DEMONSTRATE API
11
+ ```
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ const core = require('..');
4
+
5
+ describe('core', () => {
6
+ it('needs tests');
7
+ });
@@ -0,0 +1,9 @@
1
+ #! /usr/bin/env node
2
+
3
+ const importLocal = require('import-local')
4
+
5
+ if (importLocal(__filename)) {
6
+ require('npmlog').info('cli:正在使用import 本地版本')
7
+ } else {
8
+ require('../lib/index.js')(process.argv.slice(2))
9
+ }
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ module.exports = core;
4
+
5
+ function core() {
6
+ console.log('exec core')
7
+ }
8
+
9
+
@@ -0,0 +1,271 @@
1
+ {
2
+ "name": "@imooc-cli-dev/core",
3
+ "version": "1.0.37",
4
+ "lockfileVersion": 2,
5
+ "requires": true,
6
+ "packages": {
7
+ "": {
8
+ "name": "@imooc-cli-dev/core",
9
+ "version": "1.0.37",
10
+ "license": "ISC",
11
+ "dependencies": {
12
+ "@imooc-cli-dev/utils": "file:../../utils/utils",
13
+ "npmlog": "^7.0.1"
14
+ },
15
+ "bin": {
16
+ "core": "bin/index.js"
17
+ }
18
+ },
19
+ "../../utils/utils": {
20
+ "name": "@imooc-cli-dev/utils",
21
+ "version": "1.0.37",
22
+ "license": "ISC"
23
+ },
24
+ "node_modules/@imooc-cli-dev/utils": {
25
+ "resolved": "../../utils/utils",
26
+ "link": true
27
+ },
28
+ "node_modules/ansi-regex": {
29
+ "version": "5.0.1",
30
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
31
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
32
+ "engines": {
33
+ "node": ">=8"
34
+ }
35
+ },
36
+ "node_modules/aproba": {
37
+ "version": "2.1.0",
38
+ "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.1.0.tgz",
39
+ "integrity": "sha512-tLIEcj5GuR2RSTnxNKdkK0dJ/GrC7P38sUkiDmDuHfsHmbagTFAxDVIBltoklXEVIQ/f14IL8IMJ5pn9Hez1Ew=="
40
+ },
41
+ "node_modules/are-we-there-yet": {
42
+ "version": "4.0.2",
43
+ "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-4.0.2.tgz",
44
+ "integrity": "sha512-ncSWAawFhKMJDTdoAeOV+jyW1VCMj5QIAwULIBV0SSR7B/RLPPEQiknKcg/RIIZlUQrxELpsxMiTUoAQ4sIUyg==",
45
+ "deprecated": "This package is no longer supported.",
46
+ "engines": {
47
+ "node": "^14.17.0 || ^16.13.0 || >=18.0.0"
48
+ }
49
+ },
50
+ "node_modules/color-support": {
51
+ "version": "1.1.3",
52
+ "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz",
53
+ "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==",
54
+ "bin": {
55
+ "color-support": "bin.js"
56
+ }
57
+ },
58
+ "node_modules/console-control-strings": {
59
+ "version": "1.1.0",
60
+ "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
61
+ "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ=="
62
+ },
63
+ "node_modules/emoji-regex": {
64
+ "version": "8.0.0",
65
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
66
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="
67
+ },
68
+ "node_modules/gauge": {
69
+ "version": "5.0.2",
70
+ "resolved": "https://registry.npmjs.org/gauge/-/gauge-5.0.2.tgz",
71
+ "integrity": "sha512-pMaFftXPtiGIHCJHdcUUx9Rby/rFT/Kkt3fIIGCs+9PMDIljSyRiqraTlxNtBReJRDfUefpa263RQ3vnp5G/LQ==",
72
+ "deprecated": "This package is no longer supported.",
73
+ "dependencies": {
74
+ "aproba": "^1.0.3 || ^2.0.0",
75
+ "color-support": "^1.1.3",
76
+ "console-control-strings": "^1.1.0",
77
+ "has-unicode": "^2.0.1",
78
+ "signal-exit": "^4.0.1",
79
+ "string-width": "^4.2.3",
80
+ "strip-ansi": "^6.0.1",
81
+ "wide-align": "^1.1.5"
82
+ },
83
+ "engines": {
84
+ "node": "^14.17.0 || ^16.13.0 || >=18.0.0"
85
+ }
86
+ },
87
+ "node_modules/has-unicode": {
88
+ "version": "2.0.1",
89
+ "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",
90
+ "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ=="
91
+ },
92
+ "node_modules/is-fullwidth-code-point": {
93
+ "version": "3.0.0",
94
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
95
+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
96
+ "engines": {
97
+ "node": ">=8"
98
+ }
99
+ },
100
+ "node_modules/npmlog": {
101
+ "version": "7.0.1",
102
+ "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-7.0.1.tgz",
103
+ "integrity": "sha512-uJ0YFk/mCQpLBt+bxN88AKd+gyqZvZDbtiNxk6Waqcj2aPRyfVx8ITawkyQynxUagInjdYT1+qj4NfA5KJJUxg==",
104
+ "deprecated": "This package is no longer supported.",
105
+ "dependencies": {
106
+ "are-we-there-yet": "^4.0.0",
107
+ "console-control-strings": "^1.1.0",
108
+ "gauge": "^5.0.0",
109
+ "set-blocking": "^2.0.0"
110
+ },
111
+ "engines": {
112
+ "node": "^14.17.0 || ^16.13.0 || >=18.0.0"
113
+ }
114
+ },
115
+ "node_modules/set-blocking": {
116
+ "version": "2.0.0",
117
+ "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
118
+ "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw=="
119
+ },
120
+ "node_modules/signal-exit": {
121
+ "version": "4.1.0",
122
+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",
123
+ "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",
124
+ "engines": {
125
+ "node": ">=14"
126
+ },
127
+ "funding": {
128
+ "url": "https://github.com/sponsors/isaacs"
129
+ }
130
+ },
131
+ "node_modules/string-width": {
132
+ "version": "4.2.3",
133
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
134
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
135
+ "dependencies": {
136
+ "emoji-regex": "^8.0.0",
137
+ "is-fullwidth-code-point": "^3.0.0",
138
+ "strip-ansi": "^6.0.1"
139
+ },
140
+ "engines": {
141
+ "node": ">=8"
142
+ }
143
+ },
144
+ "node_modules/strip-ansi": {
145
+ "version": "6.0.1",
146
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
147
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
148
+ "dependencies": {
149
+ "ansi-regex": "^5.0.1"
150
+ },
151
+ "engines": {
152
+ "node": ">=8"
153
+ }
154
+ },
155
+ "node_modules/wide-align": {
156
+ "version": "1.1.5",
157
+ "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz",
158
+ "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==",
159
+ "dependencies": {
160
+ "string-width": "^1.0.2 || 2 || 3 || 4"
161
+ }
162
+ }
163
+ },
164
+ "dependencies": {
165
+ "@imooc-cli-dev/utils": {
166
+ "version": "file:../../utils/utils"
167
+ },
168
+ "ansi-regex": {
169
+ "version": "5.0.1",
170
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
171
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="
172
+ },
173
+ "aproba": {
174
+ "version": "2.1.0",
175
+ "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.1.0.tgz",
176
+ "integrity": "sha512-tLIEcj5GuR2RSTnxNKdkK0dJ/GrC7P38sUkiDmDuHfsHmbagTFAxDVIBltoklXEVIQ/f14IL8IMJ5pn9Hez1Ew=="
177
+ },
178
+ "are-we-there-yet": {
179
+ "version": "4.0.2",
180
+ "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-4.0.2.tgz",
181
+ "integrity": "sha512-ncSWAawFhKMJDTdoAeOV+jyW1VCMj5QIAwULIBV0SSR7B/RLPPEQiknKcg/RIIZlUQrxELpsxMiTUoAQ4sIUyg=="
182
+ },
183
+ "color-support": {
184
+ "version": "1.1.3",
185
+ "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz",
186
+ "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg=="
187
+ },
188
+ "console-control-strings": {
189
+ "version": "1.1.0",
190
+ "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
191
+ "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ=="
192
+ },
193
+ "emoji-regex": {
194
+ "version": "8.0.0",
195
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
196
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="
197
+ },
198
+ "gauge": {
199
+ "version": "5.0.2",
200
+ "resolved": "https://registry.npmjs.org/gauge/-/gauge-5.0.2.tgz",
201
+ "integrity": "sha512-pMaFftXPtiGIHCJHdcUUx9Rby/rFT/Kkt3fIIGCs+9PMDIljSyRiqraTlxNtBReJRDfUefpa263RQ3vnp5G/LQ==",
202
+ "requires": {
203
+ "aproba": "^1.0.3 || ^2.0.0",
204
+ "color-support": "^1.1.3",
205
+ "console-control-strings": "^1.1.0",
206
+ "has-unicode": "^2.0.1",
207
+ "signal-exit": "^4.0.1",
208
+ "string-width": "^4.2.3",
209
+ "strip-ansi": "^6.0.1",
210
+ "wide-align": "^1.1.5"
211
+ }
212
+ },
213
+ "has-unicode": {
214
+ "version": "2.0.1",
215
+ "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",
216
+ "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ=="
217
+ },
218
+ "is-fullwidth-code-point": {
219
+ "version": "3.0.0",
220
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
221
+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg=="
222
+ },
223
+ "npmlog": {
224
+ "version": "7.0.1",
225
+ "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-7.0.1.tgz",
226
+ "integrity": "sha512-uJ0YFk/mCQpLBt+bxN88AKd+gyqZvZDbtiNxk6Waqcj2aPRyfVx8ITawkyQynxUagInjdYT1+qj4NfA5KJJUxg==",
227
+ "requires": {
228
+ "are-we-there-yet": "^4.0.0",
229
+ "console-control-strings": "^1.1.0",
230
+ "gauge": "^5.0.0",
231
+ "set-blocking": "^2.0.0"
232
+ }
233
+ },
234
+ "set-blocking": {
235
+ "version": "2.0.0",
236
+ "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
237
+ "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw=="
238
+ },
239
+ "signal-exit": {
240
+ "version": "4.1.0",
241
+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",
242
+ "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw=="
243
+ },
244
+ "string-width": {
245
+ "version": "4.2.3",
246
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
247
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
248
+ "requires": {
249
+ "emoji-regex": "^8.0.0",
250
+ "is-fullwidth-code-point": "^3.0.0",
251
+ "strip-ansi": "^6.0.1"
252
+ }
253
+ },
254
+ "strip-ansi": {
255
+ "version": "6.0.1",
256
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
257
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
258
+ "requires": {
259
+ "ansi-regex": "^5.0.1"
260
+ }
261
+ },
262
+ "wide-align": {
263
+ "version": "1.1.5",
264
+ "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz",
265
+ "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==",
266
+ "requires": {
267
+ "string-width": "^1.0.2 || 2 || 3 || 4"
268
+ }
269
+ }
270
+ }
271
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "@imooc-cli-dev/core",
3
+ "version": "1.0.37",
4
+ "description": "imooc-cli-dev",
5
+ "author": "Your Name <your.email@example.com>",
6
+ "homepage": "",
7
+ "license": "ISC",
8
+ "main": "lib/index.js",
9
+ "bin": "bin/index.js",
10
+ "directories": {
11
+ "lib": "lib",
12
+ "test": "__tests__"
13
+ },
14
+ "files": [
15
+ "lib"
16
+ ],
17
+ "scripts": {
18
+ "test": "echo \"Error: run tests from root\" && exit 1"
19
+ },
20
+ "dependencies": {
21
+ "@imooc-cli-dev/utils": "file:../../utils/utils",
22
+ "npmlog": "^7.0.1"
23
+ },
24
+ "gitHead": "f4a9104132f2fa3f27d7479bc5916f61b400e0b3",
25
+ "publishConfig": {
26
+ "access": "public"
27
+ }
28
+ }
package/git.md ADDED
@@ -0,0 +1,11 @@
1
+ - 大厂分支开发流程
2
+ - master dev release
3
+
4
+ - dev_0.0.1 release_0.0.1 上线时把 dev_0.0.1 push master 打一个tag 记录下来 然后删掉dev_0.0.1
5
+
6
+ - dev_0.0.2 下次迭代用dev_0.0.2
7
+
8
+ - git 仓库 前端开发时把仓库fork 到 本地 own git repo clone到本地,checkout出一个新的开发分支 本地开发完成后 吧代码push到自己的仓库 然后发起一个pr push 然后前端code review 通过后会点击合并按钮,合并到仓库里 当整个项目发布以后 然后把tag推到仓库里 把远程开发分支删掉
9
+
10
+
11
+
package/lerna.json ADDED
@@ -0,0 +1,9 @@
1
+ {
2
+ "packages": [
3
+ "core/*",
4
+ "utils/*",
5
+ "command/*",
6
+ "model/*"
7
+ ],
8
+ "version": "1.0.37"
9
+ }
package/lerna.md ADDED
@@ -0,0 +1,17 @@
1
+ - 常用指令
2
+
3
+ - lerna create 包名 会在packages下面创建package
4
+ - lerna add 包名 路径
5
+
6
+ - lerna add 包名 给所有的package安装依赖
7
+
8
+ - lerna exec -- sheel脚本
9
+ - lerna run test script 脚本
10
+ - lerna run build
11
+ - lerna publish
12
+ - lerna bootstrap 重装依赖
13
+
14
+ - lerna clean 删除依赖
15
+
16
+
17
+
package/package.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "@imooc-cli-dev-com/com",
3
+ "version": "1.0.0",
4
+ "main": "index.js",
5
+ "scripts": {
6
+ "test": "echo \"Error: no test specified\" && exit 1"
7
+ },
8
+ "keywords": [],
9
+ "author": "",
10
+ "license": "ISC",
11
+ "description": "imooc-cli",
12
+ "dependencies": {
13
+ "imooc-cli-dev-com": "^1.0.0",
14
+ "lerna": "^3.22.1"
15
+ },
16
+ "publishConfig": {
17
+ "access": "public"
18
+ },
19
+ "devDependencies": {},
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "https://gitee.com/wj_git_wx/wj-cli.git"
23
+ },
24
+ "private": false
25
+ }
package/pic.md ADDED
File without changes
@@ -0,0 +1,11 @@
1
+ # `utils`
2
+
3
+ > TODO: description
4
+
5
+ ## Usage
6
+
7
+ ```
8
+ const utils = require('utils');
9
+
10
+ // TODO: DEMONSTRATE API
11
+ ```
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ const utils = require('..');
4
+
5
+ describe('utils', () => {
6
+ it('needs tests');
7
+ });
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ module.exports = utils;
4
+
5
+ function utils() {
6
+ // TODO
7
+ ///
8
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "@imooc-cli-dev/utils",
3
+ "version": "1.0.37",
4
+ "lockfileVersion": 2,
5
+ "requires": true,
6
+ "packages": {
7
+ "": {
8
+ "name": "@imooc-cli-dev/utils",
9
+ "version": "1.0.37",
10
+ "license": "ISC"
11
+ }
12
+ }
13
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "@imooc-cli-dev/utils",
3
+ "version": "1.0.37",
4
+ "description": "imooc-cli-dev",
5
+ "author": "Your Name <your.email@example.com>",
6
+ "homepage": "",
7
+ "license": "ISC",
8
+ "main": "lib/index.js",
9
+ "directories": {
10
+ "lib": "lib",
11
+ "test": "__tests__"
12
+ },
13
+ "files": [
14
+ "lib"
15
+ ],
16
+ "scripts": {
17
+ "test": "echo \"Error: run tests from root\" && exit 1"
18
+ },
19
+ "gitHead": "f4a9104132f2fa3f27d7479bc5916f61b400e0b3",
20
+ "publishConfig": {
21
+ "access": "public"
22
+ }
23
+ }