Skip to content

Commit 26ff398

Browse files
committed
refactor: remove unused components and update package resolutions
- Deleted the `useEmbeddedAppBridge` composable, `App.vue`, and `main-menu.vue` components to streamline the codebase. - Updated `package.json` files in multiple locations to include resolutions for `@module-federation/dts-plugin` version 2.0.1, ensuring consistent dependency resolution.
1 parent 174beee commit 26ff398

File tree

8 files changed

+91
-686
lines changed

8 files changed

+91
-686
lines changed

apps/one-shell/src/composables/useEmbeddedAppBridge/index.ts

Lines changed: 0 additions & 124 deletions
This file was deleted.

apps/one-shell/src/pages/App.vue

Lines changed: 0 additions & 78 deletions
This file was deleted.

apps/one-shell/src/shared/main-menu/components/main-menu.vue

Lines changed: 0 additions & 78 deletions
This file was deleted.
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"name": "<%- PackageName %>",
3+
"version": "0.0.0",
4+
"private": true,
5+
"scripts": {
6+
"serve": "cross-env APP_ENV=development vite --force",
7+
"preview": "vite preview",
8+
"build": "yarn build:app && yarn build:types",
9+
"build:app": "cross-env APP_ENV=production vite build",
10+
"build:types": "vue-tsc --declaration --emitDeclarationOnly --outDir dist/types",
11+
"type-check": "vue-tsc --noEmit",
12+
"lint-staged": "lint-staged",
13+
"lint": "eslint --fix --cache '**/*.{ts,vue}'",
14+
"generate-api-client": "cross-env api-client-generator --APP_PLATFORM_MODULES='[]' --APP_API_CLIENT_DIRECTORY=./src/api_client/ --APP_OUT_DIR=dist --APP_PACKAGE_NAME=api --APP_PACKAGE_VERSION=$npm_package_version"
15+
},
16+
"devDependencies": {
17+
"@commitlint/cli": "^18.4.3",
18+
"@commitlint/config-conventional": "^18.4.3",
19+
"@laynezh/vite-plugin-lib-assets": "^0.5.13",
20+
"@rollup/plugin-typescript": "^11.1.5",
21+
"@types/lodash-es": "^4.17.12",
22+
"@types/node": "^20.10.5",
23+
"@typescript-eslint/eslint-plugin": "^7.4.0",
24+
"@typescript-eslint/parser": "^7.4.0",
25+
"@vc-shell/api-client-generator": "^2.0.0-alpha.1",
26+
"@vc-shell/release-config": "^2.0.0-alpha.1",
27+
"@vc-shell/ts-config": "^2.0.0-alpha.1",
28+
"@vitejs/plugin-vue": "^5.2.3",
29+
"@vue/eslint-config-prettier": "^9.0.0",
30+
"@vue/eslint-config-typescript": "^13.0.0",
31+
"autoprefixer": "^10.4.16",
32+
"conventional-changelog-cli": "^5.0.0",
33+
"cross-env": "^7.0.3",
34+
"eslint": "^8.57.0",
35+
"eslint-import-resolver-typescript": "^3.6.1",
36+
"eslint-plugin-import": "^2.29.1",
37+
"eslint-plugin-prettier": "^5.1.3",
38+
"eslint-plugin-vue": "^9.19.2",
39+
"husky": "^8.0.3",
40+
"lint-staged": "^15.2.0",
41+
"lodash-es": "^4.17.21",
42+
"postcss": "^8.4.32",
43+
"prettier": "^3.1.1",
44+
"sass": "^1.87.0",
45+
"tailwindcss": "^3.4.0",
46+
"tsx": "^4.7.1",
47+
"typescript": "^5.8.3",
48+
"vite": "^6.3.3",
49+
"vite-plugin-checker": "^0.9.1",
50+
"vite-plugin-mkcert": "^1.17.1",
51+
"vue-eslint-parser": "^9.3.2",
52+
"vue-tsc": "^2.2.10"
53+
},
54+
"dependencies": {
55+
"@vc-shell/config-generator": "^2.0.0-alpha.1",
56+
"@vc-shell/framework": "^2.0.0-alpha.1",
57+
"@vueuse/core": "^10.7.1",
58+
"@vueuse/integrations": "^10.7.1",
59+
"cross-spawn": "^7.0.3",
60+
"moment": "^2.30.1",
61+
"vee-validate": "^4.12.4",
62+
"vue": "^3.5.13",
63+
"vue-router": "^4.2.5"
64+
},
65+
"lint-staged": {
66+
"*.{js,ts,html,css}": "prettier --write '**/*.{ts,vue}'",
67+
"*.{js,ts,vue}": "eslint --fix --cache '**/*.{ts,vue}'"
68+
},
69+
"packageManager": "yarn@4.9.1"
70+
}

configs/vite-config/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
"tsc-alias": "^1.8.8",
2828
"typescript": "^5.8.3"
2929
},
30+
"resolutions": {
31+
"@module-federation/dts-plugin": "2.0.1"
32+
},
3033
"publishConfig": {
3134
"access": "public",
3235
"registry": "https://registry.npmjs.org/"

framework/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@
121121
"vue-component-type-helpers": "^2.2.10",
122122
"vue-tsc": "^2.2.10"
123123
},
124+
"resolutions": {
125+
"@module-federation/dts-plugin": "2.0.1"
126+
},
124127
"publishConfig": {
125128
"access": "public",
126129
"registry": "https://registry.npmjs.org/"

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@
3737
"cli/*",
3838
"configs/*"
3939
],
40-
"resolutions": {
41-
"@module-federation/dts-plugin": "2.0.1"
42-
},
4340
"devDependencies": {
4441
"@chromatic-com/storybook": "^5.0.1",
4542
"@commitlint/cli": "^18.4.3",

0 commit comments

Comments
 (0)