@icebreakers/monorepo 1.2.1 → 1.2.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.
- package/assets/package.json +1 -1
- package/dist/{chunk-J3UQM7T4.js → chunk-SC5QBYJ5.js} +1 -1
- package/dist/cli.cjs +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/templates/apps/client/package.json +2 -1
- package/templates/apps/client/vite.config.ts +2 -0
- package/templates/apps/server/package.json +1 -1
- package/templates/apps/website/why/modern/dts.md +0 -2
package/assets/package.json
CHANGED
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@commitlint/config-conventional": "^19.8.1",
|
|
47
47
|
"@commitlint/prompt-cli": "^19.8.1",
|
|
48
48
|
"@commitlint/types": "^19.8.1",
|
|
49
|
-
"@icebreakers/eslint-config": "^1.4.
|
|
49
|
+
"@icebreakers/eslint-config": "^1.4.4",
|
|
50
50
|
"@icebreakers/monorepo": "workspace:*",
|
|
51
51
|
"@icebreakers/stylelint-config": "^1.1.4",
|
|
52
52
|
"@types/fs-extra": "^11.0.4",
|
|
@@ -375,7 +375,7 @@ import { fileURLToPath as fileURLToPath2 } from "url";
|
|
|
375
375
|
|
|
376
376
|
// package.json
|
|
377
377
|
var name = "@icebreakers/monorepo";
|
|
378
|
-
var version = "1.2.
|
|
378
|
+
var version = "1.2.2";
|
|
379
379
|
|
|
380
380
|
// src/constants.ts
|
|
381
381
|
var __filename2 = fileURLToPath2(import.meta.url);
|
package/dist/cli.cjs
CHANGED
|
@@ -234,7 +234,7 @@ var import_node_url = require("url");
|
|
|
234
234
|
|
|
235
235
|
// package.json
|
|
236
236
|
var name = "@icebreakers/monorepo";
|
|
237
|
-
var version = "1.2.
|
|
237
|
+
var version = "1.2.2";
|
|
238
238
|
|
|
239
239
|
// src/constants.ts
|
|
240
240
|
var __filename2 = (0, import_node_url.fileURLToPath)(importMetaUrl);
|
package/dist/cli.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -407,7 +407,7 @@ var import_node_url = require("url");
|
|
|
407
407
|
|
|
408
408
|
// package.json
|
|
409
409
|
var name = "@icebreakers/monorepo";
|
|
410
|
-
var version = "1.2.
|
|
410
|
+
var version = "1.2.2";
|
|
411
411
|
|
|
412
412
|
// src/constants.ts
|
|
413
413
|
var __filename2 = (0, import_node_url.fileURLToPath)(importMetaUrl);
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"build": "vue-tsc -b && vite build",
|
|
9
9
|
"preview": "vite preview",
|
|
10
10
|
"deploy": "wrangler deploy",
|
|
11
|
-
"
|
|
11
|
+
"cf-typegen": "wrangler types"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@faker-js/faker": "^10.0.0",
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"typescript": "~5.9.2",
|
|
36
36
|
"unplugin-vue-router": "^0.15.0",
|
|
37
37
|
"vite": "^7.1.6",
|
|
38
|
+
"vite-plugin-vue-devtools": "^8.0.2",
|
|
38
39
|
"vite-tsconfig-paths": "^5.1.4",
|
|
39
40
|
"vue-tsc": "3.0.7",
|
|
40
41
|
"wrangler": "^4.38.0",
|
|
@@ -5,6 +5,7 @@ import Vue from '@vitejs/plugin-vue'
|
|
|
5
5
|
import VueJsx from '@vitejs/plugin-vue-jsx'
|
|
6
6
|
import VueRouter from 'unplugin-vue-router/vite'
|
|
7
7
|
import { defineConfig } from 'vite'
|
|
8
|
+
import VueDevTools from 'vite-plugin-vue-devtools'
|
|
8
9
|
// https://vite.dev/config/
|
|
9
10
|
export default defineConfig({
|
|
10
11
|
resolve: {
|
|
@@ -25,6 +26,7 @@ export default defineConfig({
|
|
|
25
26
|
Tailwindcss(),
|
|
26
27
|
// @ts-ignore
|
|
27
28
|
cloudflare(),
|
|
29
|
+
VueDevTools(),
|
|
28
30
|
],
|
|
29
31
|
server: {
|
|
30
32
|
// proxy: {
|
|
@@ -72,12 +72,10 @@ declare function add(a: number, b: number): number
|
|
|
72
72
|
### 使用场景
|
|
73
73
|
|
|
74
74
|
1. **第三方库没有内置类型定义时**
|
|
75
|
-
|
|
76
75
|
- 可以使用 DefinitelyTyped 的类型库(安装例如 `@types/lodash`);
|
|
77
76
|
- 或者自己写 `.d.ts` 文件。
|
|
78
77
|
|
|
79
78
|
2. **为已有的 JS 代码添加类型支持**
|
|
80
|
-
|
|
81
79
|
- 特别是在从 JS 项目逐步迁移到 TS 时。
|
|
82
80
|
|
|
83
81
|
3. **定义公共 API 接口或模块类型**
|