Skip to content

Commit

Permalink
build: 统一构建
Browse files Browse the repository at this point in the history
  • Loading branch information
roymondchen committed Jan 21, 2025
1 parent 51ca1e6 commit 5c0cfe4
Show file tree
Hide file tree
Showing 47 changed files with 276 additions and 1,170 deletions.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"pg:vue2": "pnpm playground:vue2",
"playground:react": "pnpm --filter \"runtime-react\" build:libs && pnpm --filter \"runtime-react\" --filter \"tmagic-playground\" dev:react",
"pg:react": "pnpm playground:react",
"build": "pnpm build:dts && pnpm --filter \"@tmagic/*\" build",
"build": "pnpm build:dts && pnpm --filter \"@tmagic/cli\" build && node scripts/build.mjs",
"build:dts": "pnpm --filter \"@tmagic/cli\" build && tsc -p tsconfig.build-browser.json && vue-tsc --declaration --emitDeclarationOnly --project tsconfig.build-vue.json && rollup -c rollup.dts.config.js && rimraf temp",
"check:type": "tsc --incremental --noEmit -p tsconfig.check.json && vue-tsc --noEmit -p tsconfig.check-vue.json",
"build:playground": "pnpm --filter \"runtime-vue3\" build && pnpm --filter \"tmagic-playground\" build",
Expand Down Expand Up @@ -51,6 +51,7 @@
"@typescript-eslint/parser": "^5.62.0",
"@vitejs/plugin-vue": "^5.2.1",
"@vitest/coverage-v8": "^2.1.8",
"@vue/compiler-sfc": "^3.5.13",
"c8": "^7.14.0",
"commitizen": "^4.3.1",
"conventional-changelog-cli": "^4.1.0",
Expand Down Expand Up @@ -80,8 +81,8 @@
"serialize-javascript": "^6.0.2",
"shx": "^0.3.4",
"typescript": "^5.7.3",
"vite": "^6.0.9",
"vitepress": "^1.5.0",
"vite": "^6.0.10",
"vitepress": "^1.6.1",
"vitest": "^3.0.2",
"vue": "^3.5.13",
"vue-tsc": "^2.2.0"
Expand Down
11 changes: 1 addition & 10 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@
"resetcss.css"
],
"license": "Apache-2.0",
"scripts": {
"build": "vite build"
},
"engines": {
"node": ">=18"
},
Expand All @@ -35,9 +32,6 @@
"type": "git",
"url": "https://github.com/Tencent/tmagic-editor.git"
},
"keywords": [
"vue"
],
"dependencies": {
"@tmagic/data-source": "workspace:*",
"@tmagic/dep": "workspace:*",
Expand All @@ -48,10 +42,7 @@
},
"devDependencies": {
"@types/events": "^3.0.0",
"@types/lodash-es": "^4.17.4",
"@types/node": "^18.19.0",
"rimraf": "^3.0.2",
"vite": "^6.0.9"
"@types/lodash-es": "^4.17.4"
},
"peerDependencies": {
"typescript": "*"
Expand Down
46 changes: 0 additions & 46 deletions packages/core/vite.config.ts

This file was deleted.

8 changes: 1 addition & 7 deletions packages/data-source/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
"src"
],
"license": "Apache-2.0",
"scripts": {
"build": "vite build --mode=es && vite build --mode=umd"
},
"engines": {
"node": ">=18"
},
Expand Down Expand Up @@ -49,9 +46,6 @@
},
"devDependencies": {
"@types/events": "^3.0.0",
"@types/lodash-es": "^4.17.4",
"@types/node": "^18.19.0",
"tsc-alias": "^1.8.5",
"vite": "^6.0.9"
"@types/lodash-es": "^4.17.4"
}
}
55 changes: 0 additions & 55 deletions packages/data-source/vite.config.ts

This file was deleted.

8 changes: 0 additions & 8 deletions packages/dep/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
"src"
],
"license": "Apache-2.0",
"scripts": {
"build": "vite build"
},
"engines": {
"node": ">=18"
},
Expand All @@ -30,11 +27,6 @@
"type": "git",
"url": "https://github.com/Tencent/tmagic-editor.git"
},
"devDependencies": {
"@types/node": "^18.19.0",
"rimraf": "^3.0.2",
"vite": "^6.0.9"
},
"peerDependencies": {
"@tmagic/schema": "workspace:*",
"@tmagic/utils": "workspace:*",
Expand Down
41 changes: 0 additions & 41 deletions packages/dep/vite.config.ts

This file was deleted.

10 changes: 0 additions & 10 deletions packages/design/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
"src"
],
"license": "Apache-2.0",
"scripts": {
"build": "vite build"
},
"engines": {
"node": ">=18"
},
Expand All @@ -44,13 +41,6 @@
"dependencies": {
"@popperjs/core": "^2.11.8"
},
"devDependencies": {
"@types/node": "^18.19.0",
"@vitejs/plugin-vue": "^5.2.1",
"@vue/compiler-sfc": "^3.5.13",
"rimraf": "^3.0.2",
"vite": "^6.0.9"
},
"peerDependencies": {
"vue": ">=3.5.0",
"typescript": "*"
Expand Down
54 changes: 0 additions & 54 deletions packages/design/vite.config.ts

This file was deleted.

12 changes: 1 addition & 11 deletions packages/editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@
"src"
],
"license": "Apache-2.0",
"scripts": {
"build": "vite build"
},
"engines": {
"node": ">=18"
},
Expand Down Expand Up @@ -70,17 +67,10 @@
"devDependencies": {
"@types/events": "^3.0.0",
"@types/lodash-es": "^4.17.4",
"@types/node": "^18.19.0",
"@types/serialize-javascript": "^5.0.1",
"@types/sortablejs": "^1.15.8",
"@vitejs/plugin-vue": "^5.2.1",
"@vue/compiler-sfc": "^3.5.13",
"@vue/test-utils": "^2.4.6",
"rimraf": "^3.0.2",
"sass": "^1.83.0",
"tsc-alias": "^1.8.5",
"type-fest": "^4.10.3",
"vite": "^6.0.9"
"type-fest": "^4.10.3"
},
"peerDependencies": {
"@tmagic/core": "workspace:*",
Expand Down
Loading

0 comments on commit 5c0cfe4

Please sign in to comment.