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
|
||||
.idea
|
||||
.history
|
||||
|
||||
.cache
|
||||
.turbo
|
||||
|
||||
.temp
|
||||
.hound
|
||||
.fes
|
||||
|
@ -6,6 +6,7 @@ export default await antfu({
|
||||
indent: 4,
|
||||
quotes: 'single',
|
||||
semi: 'always',
|
||||
ignores: ['*.yaml'],
|
||||
},
|
||||
typescript: true,
|
||||
vue: true,
|
||||
|
@ -1,8 +0,0 @@
|
||||
|
||||
module.exports = {
|
||||
testPathIgnorePatterns: [
|
||||
'/node_modules/',
|
||||
'fes-template',
|
||||
'fes-template-h5'
|
||||
]
|
||||
};
|
@ -20,7 +20,7 @@
|
||||
"scripts": {
|
||||
"bootstrap": "pnpm i",
|
||||
"dev": "node scripts/build.mjs --watch",
|
||||
"build": "node scripts/build.mjs",
|
||||
"build": "turbo run build",
|
||||
"release": "node scripts/release.mjs",
|
||||
"clean": "rm -rf ./node_modules & rm -rf packages/**/node_modules & rm -rf packages/**/.cache",
|
||||
"docs:dev": "vitepress dev docs",
|
||||
@ -38,7 +38,8 @@
|
||||
"execa": "^6.1.0",
|
||||
"minimist": "^1.2.6",
|
||||
"semver": "^7.3.6",
|
||||
"tsup": "^8.5.0"
|
||||
"tsup": "^8.5.0",
|
||||
"turbo": "^2.5.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@antfu/eslint-config": "^5.2.2",
|
||||
|
@ -50,7 +50,7 @@
|
||||
"ejs": "^3.1.6",
|
||||
"fast-glob": "^3.2.11",
|
||||
"fs-extra": "^11.3.1",
|
||||
"html-minifier-terser": "^6.1.0",
|
||||
"html-minifier-terser": "^7.2.0",
|
||||
"less": "^4.2.0",
|
||||
"node-html-parser": "^5.3.3",
|
||||
"pathe": "^0.2.0",
|
||||
|
@ -35,10 +35,10 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.28.3",
|
||||
"@babel/plugin-proposal-do-expressions": "^7.22.5",
|
||||
"@babel/plugin-proposal-export-default-from": "^7.22.17",
|
||||
"@babel/plugin-proposal-function-bind": "^7.22.5",
|
||||
"@babel/plugin-proposal-pipeline-operator": "^7.22.15",
|
||||
"@babel/plugin-proposal-do-expressions": "^7.28.3",
|
||||
"@babel/plugin-proposal-export-default-from": "^7.27.1",
|
||||
"@babel/plugin-proposal-function-bind": "^7.27.1",
|
||||
"@babel/plugin-proposal-pipeline-operator": "^7.27.1",
|
||||
"@babel/plugin-transform-runtime": "^7.28.3",
|
||||
"@babel/preset-env": "^7.28.3",
|
||||
"@babel/preset-typescript": "^7.27.1",
|
||||
|
@ -15,6 +15,7 @@ export default function createDefineWebpackConfig({ config, publicPath, webpackC
|
||||
const define = stringifyObjValue({
|
||||
__VUE_OPTIONS_API__: true,
|
||||
__VUE_PROD_DEVTOOLS__: false,
|
||||
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: false,
|
||||
...(config as any).define,
|
||||
});
|
||||
|
||||
|
@ -279,7 +279,8 @@ export default class Service extends EventEmitter {
|
||||
this.setStage(ServiceStage.initPlugins);
|
||||
this._extraPlugins.push(...this.initialPlugins);
|
||||
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,
|
||||
);
|
||||
}
|
||||
|
||||
// 深度优先
|
||||
const extraPlugins = lodash.clone(this._extraPlugins);
|
||||
this._extraPlugins = [];
|
||||
while (extraPlugins.length) {
|
||||
await this.initPlugin(extraPlugins.shift()!);
|
||||
}
|
||||
}
|
||||
|
||||
async initPlugin(plugin: Plugin): Promise<void> {
|
||||
|
@ -2,7 +2,7 @@
|
||||
<div>hello wrold</div>
|
||||
<FTabs v-model="activeKey">
|
||||
<FTabPane name="webpack子应用首页" value="1">
|
||||
<MicroAppWithMemoHistory key="1" name="webpack-micro" url="/webpack" />
|
||||
<!-- <MicroAppWithMemoHistory key="1" name="webpack-micro" url="/webpack" /> -->
|
||||
</FTabPane>
|
||||
<FTabPane name="webpack子应用测试页" value="2">
|
||||
<MicroAppWithMemoHistory key="2" name="webpack-micro" url="/webpack/test" />
|
||||
|
@ -10,25 +10,6 @@
|
||||
"bugs": {
|
||||
"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": {
|
||||
"build": "fes build",
|
||||
"prod": "FES_ENV=prod fes build",
|
||||
|
@ -1,15 +1,17 @@
|
||||
<template>
|
||||
<div>webpack - micro - index</div>
|
||||
</template>
|
||||
|
||||
<config>
|
||||
{
|
||||
"name": "index",
|
||||
"title": "home"
|
||||
}
|
||||
</config>
|
||||
|
||||
<script>
|
||||
import { onBeforeUnmount } from 'vue';
|
||||
import { createWatermark, destroyWatermark } from '@fesjs/fes';
|
||||
import { onBeforeUnmount } from 'vue';
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
@ -17,7 +19,7 @@ export default {
|
||||
|
||||
onBeforeUnmount(destroyWatermark);
|
||||
return {
|
||||
bigData: new Array(5 * 1024 * 1024),
|
||||
bigData: Array.from({ length: 5 * 1024 * 1024 }),
|
||||
};
|
||||
},
|
||||
};
|
||||
|
@ -1,17 +1,19 @@
|
||||
<template>
|
||||
<div>webpack - micro - test</div>
|
||||
</template>
|
||||
|
||||
<config>
|
||||
{
|
||||
"name": "test",
|
||||
"title": "test"
|
||||
}
|
||||
</config>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
setup() {
|
||||
return {
|
||||
bigData: new Array(5 * 1024 * 1024),
|
||||
bigData: Array.from({ length: 5 * 1024 * 1024 }),
|
||||
};
|
||||
},
|
||||
};
|
||||
|
@ -48,6 +48,8 @@
|
||||
"yargs-parser": "^21.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/babel__generator": "^7.27.0",
|
||||
"@types/babel__traverse": "^7.28.0",
|
||||
"@types/lodash": "^4.17.20",
|
||||
"@types/mustache": "^4.2.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:
|
||||
# all packages in subdirs of packages/ and components/
|
||||
- 'packages/**'
|
||||
- '!packages/create-fes-app/templates/**'
|
||||
- 'packages/**'
|
||||
- '!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