@celljs/cli 4.0.0 → 4.1.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/README.md +2 -1
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -307,7 +307,7 @@ export default defineConfig({
|
|
|
307
307
|
| 字段 | 说明 |
|
|
308
308
|
| --- | --- |
|
|
309
309
|
| `preset` | 产物形态。优先级:`--preset` → 本字段 → `CELL_PRESET` → CI 环境识别 → `node` |
|
|
310
|
-
| `targets` | 构建目标。默认 `backend` 加上组件声明的目标(装了 `@celljs/react`
|
|
310
|
+
| `targets` | 构建目标。默认 `backend` 加上组件声明的目标(装了 `@celljs/react` 会经 `@celljs/widget` 加上 `frontend`);写了就完全以它为准 |
|
|
311
311
|
| `modules` | `'!包名'` 去掉一个组件(连同只经由它引入的依赖);`{ source, runtime: false }` 去掉它的 DI 模块、保留配置;`{ source, toolchain: false }` 去掉它的 toolchain 模块;本地路径或包名表示额外加载的 toolchain 模块(见下文) |
|
|
312
312
|
| `build.format` | `esm` 或 `cjs` |
|
|
313
313
|
| `build.external` | 不内联的包,按依赖关系拷到 `server/node_modules` |
|
|
@@ -394,6 +394,7 @@ export default function (cell: CellAPI) {
|
|
|
394
394
|
| `CELL_CONFIG_PARSE`、`CELL_CONFIG_NOT_OBJECT`、`CELL_CONFIG_EXPRESSION` | `cell.yml` 不是合法 YAML、顶层不是映射、`${...}` 表达式错误 |
|
|
395
395
|
| `CELL_COMPONENT_NOT_FOUND`、`CELL_LOCAL_MODULE_NOT_FOUND` | `modules` 里写的组件或本地模块不存在 |
|
|
396
396
|
| `CELL_MODULE_NOT_FOUND`、`CELL_CORE_NOT_FOUND` | 组件声明的 DI 模块无法解析、项目没有依赖 `@celljs/core` |
|
|
397
|
+
| `CELL_CORE_EL_MISSING` | 项目的 `@celljs/core` 早于 4.1.0,没有构建期求值配置所需的 `@celljs/core/el` 入口 |
|
|
397
398
|
| `CELL_PRESET_NOT_FOUND`、`CELL_PRESET_DUPLICATE`、`CELL_PRESET_CYCLE` | preset 不存在、重名、`extends` 成环 |
|
|
398
399
|
| `CELL_BUILD_FAILED` | 打包失败,带出错文件和位置 |
|
|
399
400
|
| `CELL_BUILD_CANCELLED`、`CELL_HOOK_FAILED` | hook 或模块取消了构建、hook 命令失败 |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/cli",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "The Cell command-line interface: cell.config.ts, toolchain modules, presets and the `cell` command.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://github.com/cellbang/cell",
|
|
@@ -42,16 +42,16 @@
|
|
|
42
42
|
"watch": "tsc -b -w --preserveWatchOutput"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@celljs/kit": "4.
|
|
46
|
-
"@celljs/vite": "4.
|
|
45
|
+
"@celljs/kit": "4.1.0",
|
|
46
|
+
"@celljs/vite": "4.1.0",
|
|
47
47
|
"vite": "^8.3.6"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@celljs/core": "4.
|
|
51
|
-
"@celljs/express-adapter": "4.
|
|
52
|
-
"@celljs/http": "4.
|
|
53
|
-
"@celljs/mvc": "4.
|
|
54
|
-
"@celljs/web": "4.
|
|
50
|
+
"@celljs/core": "4.1.0",
|
|
51
|
+
"@celljs/express-adapter": "4.1.0",
|
|
52
|
+
"@celljs/http": "4.1.0",
|
|
53
|
+
"@celljs/mvc": "4.1.0",
|
|
54
|
+
"@celljs/web": "4.1.0"
|
|
55
55
|
},
|
|
56
56
|
"publishConfig": {
|
|
57
57
|
"access": "public"
|