mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-10-13 18:22:13 +08:00
chore: 修复部分问题
This commit is contained in:
parent
c4c081ae3a
commit
8448e38c37
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,7 +1,10 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
.idea
|
.idea
|
||||||
.history
|
.history
|
||||||
|
|
||||||
.cache
|
.cache
|
||||||
|
.turbo
|
||||||
|
|
||||||
.temp
|
.temp
|
||||||
.hound
|
.hound
|
||||||
.fes
|
.fes
|
||||||
|
@ -6,6 +6,7 @@ export default await antfu({
|
|||||||
indent: 4,
|
indent: 4,
|
||||||
quotes: 'single',
|
quotes: 'single',
|
||||||
semi: 'always',
|
semi: 'always',
|
||||||
|
ignores: ['*.yaml'],
|
||||||
},
|
},
|
||||||
typescript: true,
|
typescript: true,
|
||||||
vue: true,
|
vue: true,
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
|
|
||||||
module.exports = {
|
|
||||||
testPathIgnorePatterns: [
|
|
||||||
'/node_modules/',
|
|
||||||
'fes-template',
|
|
||||||
'fes-template-h5'
|
|
||||||
]
|
|
||||||
};
|
|
@ -20,7 +20,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"bootstrap": "pnpm i",
|
"bootstrap": "pnpm i",
|
||||||
"dev": "node scripts/build.mjs --watch",
|
"dev": "node scripts/build.mjs --watch",
|
||||||
"build": "node scripts/build.mjs",
|
"build": "turbo run build",
|
||||||
"release": "node scripts/release.mjs",
|
"release": "node scripts/release.mjs",
|
||||||
"clean": "rm -rf ./node_modules & rm -rf packages/**/node_modules & rm -rf packages/**/.cache",
|
"clean": "rm -rf ./node_modules & rm -rf packages/**/node_modules & rm -rf packages/**/.cache",
|
||||||
"docs:dev": "vitepress dev docs",
|
"docs:dev": "vitepress dev docs",
|
||||||
@ -38,7 +38,8 @@
|
|||||||
"execa": "^6.1.0",
|
"execa": "^6.1.0",
|
||||||
"minimist": "^1.2.6",
|
"minimist": "^1.2.6",
|
||||||
"semver": "^7.3.6",
|
"semver": "^7.3.6",
|
||||||
"tsup": "^8.5.0"
|
"tsup": "^8.5.0",
|
||||||
|
"turbo": "^2.5.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@antfu/eslint-config": "^5.2.2",
|
"@antfu/eslint-config": "^5.2.2",
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
"ejs": "^3.1.6",
|
"ejs": "^3.1.6",
|
||||||
"fast-glob": "^3.2.11",
|
"fast-glob": "^3.2.11",
|
||||||
"fs-extra": "^11.3.1",
|
"fs-extra": "^11.3.1",
|
||||||
"html-minifier-terser": "^6.1.0",
|
"html-minifier-terser": "^7.2.0",
|
||||||
"less": "^4.2.0",
|
"less": "^4.2.0",
|
||||||
"node-html-parser": "^5.3.3",
|
"node-html-parser": "^5.3.3",
|
||||||
"pathe": "^0.2.0",
|
"pathe": "^0.2.0",
|
||||||
|
@ -35,10 +35,10 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/core": "^7.28.3",
|
"@babel/core": "^7.28.3",
|
||||||
"@babel/plugin-proposal-do-expressions": "^7.22.5",
|
"@babel/plugin-proposal-do-expressions": "^7.28.3",
|
||||||
"@babel/plugin-proposal-export-default-from": "^7.22.17",
|
"@babel/plugin-proposal-export-default-from": "^7.27.1",
|
||||||
"@babel/plugin-proposal-function-bind": "^7.22.5",
|
"@babel/plugin-proposal-function-bind": "^7.27.1",
|
||||||
"@babel/plugin-proposal-pipeline-operator": "^7.22.15",
|
"@babel/plugin-proposal-pipeline-operator": "^7.27.1",
|
||||||
"@babel/plugin-transform-runtime": "^7.28.3",
|
"@babel/plugin-transform-runtime": "^7.28.3",
|
||||||
"@babel/preset-env": "^7.28.3",
|
"@babel/preset-env": "^7.28.3",
|
||||||
"@babel/preset-typescript": "^7.27.1",
|
"@babel/preset-typescript": "^7.27.1",
|
||||||
|
@ -15,6 +15,7 @@ export default function createDefineWebpackConfig({ config, publicPath, webpackC
|
|||||||
const define = stringifyObjValue({
|
const define = stringifyObjValue({
|
||||||
__VUE_OPTIONS_API__: true,
|
__VUE_OPTIONS_API__: true,
|
||||||
__VUE_PROD_DEVTOOLS__: false,
|
__VUE_PROD_DEVTOOLS__: false,
|
||||||
|
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: false,
|
||||||
...(config as any).define,
|
...(config as any).define,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -279,7 +279,8 @@ export default class Service extends EventEmitter {
|
|||||||
this.setStage(ServiceStage.initPlugins);
|
this.setStage(ServiceStage.initPlugins);
|
||||||
this._extraPlugins.push(...this.initialPlugins);
|
this._extraPlugins.push(...this.initialPlugins);
|
||||||
while (this._extraPlugins.length) {
|
while (this._extraPlugins.length) {
|
||||||
await this.initPlugin(this._extraPlugins.shift()!);
|
const plugin = this._extraPlugins.shift();
|
||||||
|
await this.initPlugin(plugin!);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -393,13 +394,6 @@ export default class Service extends EventEmitter {
|
|||||||
..._plugins,
|
..._plugins,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 深度优先
|
|
||||||
const extraPlugins = lodash.clone(this._extraPlugins);
|
|
||||||
this._extraPlugins = [];
|
|
||||||
while (extraPlugins.length) {
|
|
||||||
await this.initPlugin(extraPlugins.shift()!);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async initPlugin(plugin: Plugin): Promise<void> {
|
async initPlugin(plugin: Plugin): Promise<void> {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div>hello wrold</div>
|
<div>hello wrold</div>
|
||||||
<FTabs v-model="activeKey">
|
<FTabs v-model="activeKey">
|
||||||
<FTabPane name="webpack子应用首页" value="1">
|
<FTabPane name="webpack子应用首页" value="1">
|
||||||
<MicroAppWithMemoHistory key="1" name="webpack-micro" url="/webpack" />
|
<!-- <MicroAppWithMemoHistory key="1" name="webpack-micro" url="/webpack" /> -->
|
||||||
</FTabPane>
|
</FTabPane>
|
||||||
<FTabPane name="webpack子应用测试页" value="2">
|
<FTabPane name="webpack子应用测试页" value="2">
|
||||||
<MicroAppWithMemoHistory key="2" name="webpack-micro" url="/webpack/test" />
|
<MicroAppWithMemoHistory key="2" name="webpack-micro" url="/webpack/test" />
|
||||||
|
@ -10,25 +10,6 @@
|
|||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/WeBankFinTech/fes.js/issues"
|
"url": "https://github.com/WeBankFinTech/fes.js/issues"
|
||||||
},
|
},
|
||||||
"keywords": [
|
|
||||||
"管理端",
|
|
||||||
"fes",
|
|
||||||
"fast",
|
|
||||||
"easy",
|
|
||||||
"strong"
|
|
||||||
],
|
|
||||||
"files": [
|
|
||||||
".eslintrc.js",
|
|
||||||
".fes.js",
|
|
||||||
".fes.prod.js",
|
|
||||||
".gitignore",
|
|
||||||
"/config",
|
|
||||||
"/src",
|
|
||||||
"README.md",
|
|
||||||
"mock.js",
|
|
||||||
"package.json",
|
|
||||||
"tsconfig.json"
|
|
||||||
],
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "fes build",
|
"build": "fes build",
|
||||||
"prod": "FES_ENV=prod fes build",
|
"prod": "FES_ENV=prod fes build",
|
||||||
|
@ -1,15 +1,17 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>webpack - micro - index</div>
|
<div>webpack - micro - index</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<config>
|
<config>
|
||||||
{
|
{
|
||||||
"name": "index",
|
"name": "index",
|
||||||
"title": "home"
|
"title": "home"
|
||||||
}
|
}
|
||||||
</config>
|
</config>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { onBeforeUnmount } from 'vue';
|
|
||||||
import { createWatermark, destroyWatermark } from '@fesjs/fes';
|
import { createWatermark, destroyWatermark } from '@fesjs/fes';
|
||||||
|
import { onBeforeUnmount } from 'vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
setup() {
|
setup() {
|
||||||
@ -17,7 +19,7 @@ export default {
|
|||||||
|
|
||||||
onBeforeUnmount(destroyWatermark);
|
onBeforeUnmount(destroyWatermark);
|
||||||
return {
|
return {
|
||||||
bigData: new Array(5 * 1024 * 1024),
|
bigData: Array.from({ length: 5 * 1024 * 1024 }),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -1,17 +1,19 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>webpack - micro - test</div>
|
<div>webpack - micro - test</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<config>
|
<config>
|
||||||
{
|
{
|
||||||
"name": "test",
|
"name": "test",
|
||||||
"title": "test"
|
"title": "test"
|
||||||
}
|
}
|
||||||
</config>
|
</config>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
setup() {
|
setup() {
|
||||||
return {
|
return {
|
||||||
bigData: new Array(5 * 1024 * 1024),
|
bigData: Array.from({ length: 5 * 1024 * 1024 }),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -48,6 +48,8 @@
|
|||||||
"yargs-parser": "^21.1.1"
|
"yargs-parser": "^21.1.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@types/babel__generator": "^7.27.0",
|
||||||
|
"@types/babel__traverse": "^7.28.0",
|
||||||
"@types/lodash": "^4.17.20",
|
"@types/lodash": "^4.17.20",
|
||||||
"@types/mustache": "^4.2.6",
|
"@types/mustache": "^4.2.6",
|
||||||
"@types/resolve": "^1.20.6",
|
"@types/resolve": "^1.20.6",
|
||||||
|
814
pnpm-lock.yaml
generated
814
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,7 @@
|
|||||||
packages:
|
packages:
|
||||||
# all packages in subdirs of packages/ and components/
|
- 'packages/**'
|
||||||
- 'packages/**'
|
- '!packages/create-fes-app/templates/**'
|
||||||
- '!packages/create-fes-app/templates/**'
|
- '!packages/plugin-qiankun/examples/**'
|
||||||
|
- '!packages/fes-template/**'
|
||||||
|
- '!packages/fes-template-vite/**'
|
||||||
|
- '!packages/fes-template-h5/**'
|
||||||
|
8
turbo.json
Normal file
8
turbo.json
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"tasks": {
|
||||||
|
"build": {
|
||||||
|
"dependsOn": ["^build"],
|
||||||
|
"outputs": ["dist/**"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user