@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.
Files changed (3) hide show
  1. package/LICENSE +21 -0
  2. package/dist/index.js +2 -5
  3. 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/lib.ts'),
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/bundle.esm.js'),
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
- "name": "@cocojs/cli",
3
- "description": "命令行工具,支持开发和构建功能",
4
- "version": "0.0.1-alpha202511172047",
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
- "scripts": {},
17
- "keywords": [
18
- "cocojs"
19
- ],
20
- "author": "",
21
- "license": "MIT",
22
- "dependencies": {
23
- "@babel/core": "^7.26.7",
24
- "@babel/generator": "^7.26.5",
25
- "@babel/parser": "^7.26.7",
26
- "@babel/plugin-proposal-decorators": "^7.25.9",
27
- "@babel/plugin-transform-react-jsx": "^7.25.9",
28
- "@babel/preset-typescript": "^7.26.0",
29
- "@babel/traverse": "^7.26.7",
30
- "@babel/types": "^7.26.7",
31
- "@cocojs/type-extractor": "workspace:*",
32
- "@rollup/plugin-babel": "^6.0.4",
33
- "@rollup/plugin-typescript": "^12.1.2",
34
- "babel-loader": "^10.0.0",
35
- "chokidar": "^4.0.3",
36
- "fs-extra": "^11.2.0",
37
- "glob": "9.3.5",
38
- "html-webpack-plugin": "^5.6.3",
39
- "rollup": "^4.36.0",
40
- "terser-webpack-plugin": "^5.3.14",
41
- "ts-loader": "^9.5.2",
42
- "webpack": "^5.98.0",
43
- "webpack-cli": "^6.0.1",
44
- "webpack-dev-server": "^5.2.0",
45
- "webpack-merge": "^6.0.1"
46
- },
47
- "devDependencies": {
48
- "@types/node": "^22.15.18"
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
+ }