@cocojs/cli 0.0.1-alpha202511172047 → 0.0.1-alpha202511202111
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 +21 -0
- package/dist/index.js +2 -5
- package/package.json +49 -49
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) jiangchenguang.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.js
CHANGED
|
@@ -390,7 +390,7 @@ var build = function build() {
|
|
|
390
390
|
case 0:
|
|
391
391
|
_context.n = 1;
|
|
392
392
|
return rollup.rollup({
|
|
393
|
-
input: path$1.join(process$1.cwd(), './src/
|
|
393
|
+
input: path$1.join(process$1.cwd(), './src/index.ts'),
|
|
394
394
|
plugins: [typescript({
|
|
395
395
|
compilerOptions: {
|
|
396
396
|
target: 'ESNext',
|
|
@@ -420,7 +420,7 @@ var build = function build() {
|
|
|
420
420
|
result = _context.v;
|
|
421
421
|
_context.n = 2;
|
|
422
422
|
return result.write({
|
|
423
|
-
file: path$1.join(process$1.cwd(), './dist/
|
|
423
|
+
file: path$1.join(process$1.cwd(), './dist/index.esm.js'),
|
|
424
424
|
format: 'es'
|
|
425
425
|
});
|
|
426
426
|
case 2:
|
|
@@ -432,10 +432,8 @@ var build = function build() {
|
|
|
432
432
|
|
|
433
433
|
var _test_helper;
|
|
434
434
|
|
|
435
|
-
// TODO: 添加测试用例验证模版的基本功能都是正确的?
|
|
436
435
|
/**
|
|
437
436
|
* 应用项目命令
|
|
438
|
-
* coco app create 搭建框架
|
|
439
437
|
* coco app build 构建
|
|
440
438
|
* coco app dev 开发
|
|
441
439
|
*/
|
|
@@ -460,7 +458,6 @@ function execAppCmd(action) {
|
|
|
460
458
|
}
|
|
461
459
|
/**
|
|
462
460
|
* 组件库项目命令
|
|
463
|
-
* coco lib create 搭建框架
|
|
464
461
|
* coco lib build 构建
|
|
465
462
|
*/
|
|
466
463
|
function execLibCmd(action) {
|
package/package.json
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
2
|
+
"name": "@cocojs/cli",
|
|
3
|
+
"description": "命令行工具,支持开发和构建功能",
|
|
4
|
+
"version": "0.0.1-alpha202511202111",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"bin": {
|
|
8
|
+
"coco": "bin/coco.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"bin",
|
|
12
|
+
"runtime-config",
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"homepage": "https://github.com/cocojs-org/coconut-framework",
|
|
16
|
+
"keywords": [
|
|
17
|
+
"cocojs"
|
|
18
|
+
],
|
|
19
|
+
"author": "",
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@babel/core": "^7.26.7",
|
|
23
|
+
"@babel/generator": "^7.26.5",
|
|
24
|
+
"@babel/parser": "^7.26.7",
|
|
25
|
+
"@babel/plugin-proposal-decorators": "^7.25.9",
|
|
26
|
+
"@babel/plugin-transform-react-jsx": "^7.25.9",
|
|
27
|
+
"@babel/preset-typescript": "^7.26.0",
|
|
28
|
+
"@babel/traverse": "^7.26.7",
|
|
29
|
+
"@babel/types": "^7.26.7",
|
|
30
|
+
"@rollup/plugin-babel": "^6.0.4",
|
|
31
|
+
"@rollup/plugin-typescript": "^12.1.2",
|
|
32
|
+
"babel-loader": "^10.0.0",
|
|
33
|
+
"chokidar": "^4.0.3",
|
|
34
|
+
"fs-extra": "^11.2.0",
|
|
35
|
+
"glob": "9.3.5",
|
|
36
|
+
"html-webpack-plugin": "^5.6.3",
|
|
37
|
+
"rollup": "^4.36.0",
|
|
38
|
+
"terser-webpack-plugin": "^5.3.14",
|
|
39
|
+
"ts-loader": "^9.5.2",
|
|
40
|
+
"webpack": "^5.98.0",
|
|
41
|
+
"webpack-cli": "^6.0.1",
|
|
42
|
+
"webpack-dev-server": "^5.2.0",
|
|
43
|
+
"webpack-merge": "^6.0.1",
|
|
44
|
+
"@cocojs/type-extractor": "0.0.16"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@types/node": "^22.15.18"
|
|
48
|
+
},
|
|
49
|
+
"scripts": {}
|
|
50
|
+
}
|