mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-08-10 05:09:54 +08:00
fix: upgrade app
This commit is contained in:
parent
831a91bded
commit
bc715542ce
@ -1,16 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
extends: ['@webank/eslint-config-webank/vue.js'],
|
|
||||||
globals: {
|
|
||||||
// 这里填入你的项目需要的全局变量
|
|
||||||
// 这里值为 false 表示这个全局变量不允许被重新赋值,比如:
|
|
||||||
//
|
|
||||||
// Vue: false
|
|
||||||
__DEV__: false,
|
|
||||||
},
|
|
||||||
rules: {
|
|
||||||
'vue/comment-directive': 'off',
|
|
||||||
'global-require': 'off',
|
|
||||||
'import/no-unresolved': 'off',
|
|
||||||
'no-restricted-syntax': 'off',
|
|
||||||
},
|
|
||||||
};
|
|
@ -1,35 +1,34 @@
|
|||||||
// fes.config.js 只负责管理 cli 相关的配置
|
// fes.config.js 只负责管理 cli 相关的配置
|
||||||
import { defineBuildConfig } from '@fesjs/fes';
|
import { defineBuildConfig } from '@fesjs/fes'
|
||||||
import postcsspxtoviewport8plugin from 'postcss-px-to-viewport-8-plugin';
|
import postcsspxtoviewport8plugin from 'postcss-px-to-viewport-8-plugin'
|
||||||
|
|
||||||
|
|
||||||
export default defineBuildConfig({
|
export default defineBuildConfig({
|
||||||
define: {
|
define: {
|
||||||
// __VUE_OPTIONS_API__: true,
|
// __VUE_OPTIONS_API__: true,
|
||||||
// __VUE_PROD_DEVTOOLS__: false
|
// __VUE_PROD_DEVTOOLS__: false
|
||||||
},
|
},
|
||||||
html: {
|
html: {
|
||||||
title: '拉夫德鲁',
|
title: '拉夫德鲁',
|
||||||
},
|
},
|
||||||
targets: {
|
targets: {
|
||||||
chrome: '61',
|
chrome: '61',
|
||||||
ios: '10',
|
ios: '10',
|
||||||
},
|
},
|
||||||
extraPostCSSPlugins: [
|
extraPostCSSPlugins: [
|
||||||
postcsspxtoviewport8plugin({
|
postcsspxtoviewport8plugin({
|
||||||
unitToConvert: 'px',
|
unitToConvert: 'px',
|
||||||
viewportWidth: 375,
|
viewportWidth: 375,
|
||||||
unitPrecision: 5,
|
unitPrecision: 5,
|
||||||
propList: ['*'],
|
propList: ['*'],
|
||||||
viewportUnit: 'vw',
|
viewportUnit: 'vw',
|
||||||
fontViewportUnit: 'vw',
|
fontViewportUnit: 'vw',
|
||||||
selectorBlackList: [],
|
selectorBlackList: [],
|
||||||
minPixelValue: 1,
|
minPixelValue: 1,
|
||||||
mediaQuery: false,
|
mediaQuery: false,
|
||||||
replace: true,
|
replace: true,
|
||||||
exclude: [],
|
exclude: [],
|
||||||
landscape: false,
|
landscape: false,
|
||||||
landscapeUnit: 'vw',
|
landscapeUnit: 'vw',
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
});
|
})
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
...require("@webank/eslint-config-webank/.prettierrc.js"),
|
|
||||||
};
|
|
@ -0,0 +1,3 @@
|
|||||||
|
import antfu from '@antfu/eslint-config'
|
||||||
|
|
||||||
|
export default antfu()
|
@ -1,26 +1,28 @@
|
|||||||
{
|
{
|
||||||
"name": "@fesjs/template-h5",
|
"name": "@fesjs/template-h5",
|
||||||
"version": "3.0.0",
|
"version": "3.0.0",
|
||||||
|
"private": true,
|
||||||
"description": "fes 移动端项目模版",
|
"description": "fes 移动端项目模版",
|
||||||
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "fes build",
|
"build": "fes build",
|
||||||
"dev": "fes dev"
|
"dev": "fes dev"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
|
||||||
"@webank/eslint-config-webank": "1.2.7",
|
|
||||||
"postcss-px-to-viewport-8-plugin": "^1.2.3"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fesjs/fes": "^3.0.0",
|
"@fesjs/builder-webpack": "^3.1.0",
|
||||||
"@fesjs/plugin-icon": "^3.0.0",
|
"@fesjs/fes": "^3.1.17",
|
||||||
"@fesjs/plugin-request": "^3.0.0",
|
"@fesjs/plugin-icon": "^4.0.0",
|
||||||
"@fesjs/builder-webpack": "^3.0.0",
|
"@fesjs/plugin-request": "^4.0.1",
|
||||||
"vue": "^3.2.47",
|
"core-js": "^3.43.0",
|
||||||
"core-js": "^3.29.1"
|
"vue": "^3.5.17"
|
||||||
},
|
},
|
||||||
"private": true
|
"devDependencies": {
|
||||||
}
|
"@antfu/eslint-config": "4.16.1",
|
||||||
|
"eslint": "9.29.0",
|
||||||
|
"postcss-px-to-viewport-8-plugin": "^1.2.5",
|
||||||
|
"typescript": "5.8.3"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -1,24 +1,15 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "build/dist",
|
|
||||||
"module": "esnext",
|
|
||||||
"target": "esnext",
|
"target": "esnext",
|
||||||
|
"jsx": "preserve",
|
||||||
"lib": [
|
"lib": [
|
||||||
"esnext",
|
"esnext",
|
||||||
"dom"
|
"dom"
|
||||||
],
|
],
|
||||||
"sourceMap": true,
|
|
||||||
"baseUrl": ".",
|
|
||||||
"jsx": "preserve",
|
|
||||||
"allowSyntheticDefaultImports": true,
|
|
||||||
"moduleResolution": "node",
|
|
||||||
"forceConsistentCasingInFileNames": true,
|
|
||||||
"noImplicitReturns": true,
|
|
||||||
"suppressImplicitAnyIndexErrors": true,
|
|
||||||
"noUnusedLocals": true,
|
|
||||||
"allowJs": true,
|
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"strict": true,
|
"baseUrl": ".",
|
||||||
|
"module": "esnext",
|
||||||
|
"moduleResolution": "node",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": [
|
"@/*": [
|
||||||
"./src/*"
|
"./src/*"
|
||||||
@ -26,7 +17,13 @@
|
|||||||
"@@/*": [
|
"@@/*": [
|
||||||
"./src/.fes/*"
|
"./src/.fes/*"
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"allowJs": true,
|
||||||
|
"strict": true,
|
||||||
|
"outDir": "build/dist",
|
||||||
|
"sourceMap": true,
|
||||||
|
"allowSyntheticDefaultImports": true,
|
||||||
|
"forceConsistentCasingInFileNames": true
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"src/**/*",
|
"src/**/*",
|
||||||
@ -41,4 +38,4 @@
|
|||||||
"jest",
|
"jest",
|
||||||
"node_modules"
|
"node_modules"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
extends: ['@webank/eslint-config-webank/vue.js'],
|
|
||||||
overrides: [
|
|
||||||
{
|
|
||||||
files: ['**/__tests__/*.{j,t}s?(x)', '**/tests/unit/**/*.spec.{j,t}s?(x)'],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
env: {
|
|
||||||
jest: true,
|
|
||||||
},
|
|
||||||
};
|
|
@ -1,3 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
...require("@webank/eslint-config-webank/.prettierrc.js"),
|
|
||||||
};
|
|
@ -0,0 +1,3 @@
|
|||||||
|
import antfu from '@antfu/eslint-config'
|
||||||
|
|
||||||
|
export default antfu()
|
@ -1,30 +1,32 @@
|
|||||||
{
|
{
|
||||||
"name": "@fesjs/template",
|
"name": "@fesjs/template",
|
||||||
"version": "3.0.0",
|
"version": "3.0.0",
|
||||||
"description": "fes项目模版",
|
"private": true,
|
||||||
"scripts": {
|
"description": "fes项目模版",
|
||||||
"build": "fes build",
|
"scripts": {
|
||||||
"prod": "FES_ENV=prod fes build",
|
"build": "fes build",
|
||||||
"analyze": "ANALYZE=1 fes build",
|
"prod": "FES_ENV=prod fes build",
|
||||||
"dev": "fes dev",
|
"analyze": "ANALYZE=1 fes build",
|
||||||
"test:unit": "fes test:unit"
|
"dev": "fes dev",
|
||||||
},
|
"test:unit": "fes test:unit"
|
||||||
"publishConfig": {
|
},
|
||||||
"access": "public"
|
"publishConfig": {
|
||||||
},
|
"access": "public"
|
||||||
"devDependencies": {
|
},
|
||||||
"@webank/eslint-config-webank": "1.2.7"
|
"dependencies": {
|
||||||
},
|
"@fesjs/builder-webpack": "^3.1.0",
|
||||||
"dependencies": {
|
"@fesjs/fes": "^3.1.17",
|
||||||
"@fesjs/fes": "^3.0.0",
|
"@fesjs/fes-design": "^0.8.82",
|
||||||
"@fesjs/plugin-access": "^3.1.9",
|
"@fesjs/plugin-access": "^3.1.9",
|
||||||
"@fesjs/plugin-layout": "^5.4.3",
|
"@fesjs/plugin-enums": "^3.0.1",
|
||||||
"@fesjs/plugin-model": "^3.0.0",
|
"@fesjs/plugin-layout": "^5.4.6",
|
||||||
"@fesjs/plugin-enums": "^3.0.0",
|
"@fesjs/plugin-model": "^3.0.3",
|
||||||
"@fesjs/fes-design": "^0.8.0",
|
"core-js": "^3.43.0",
|
||||||
"@fesjs/builder-webpack": "^3.0.0",
|
"vue": "^3.5.17"
|
||||||
"vue": "^3.2.47",
|
},
|
||||||
"core-js": "^3.29.1"
|
"devDependencies": {
|
||||||
},
|
"@antfu/eslint-config": "4.16.1",
|
||||||
"private": true
|
"eslint": "9.29.0",
|
||||||
|
"typescript": "5.8.3"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,24 +1,15 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "build/dist",
|
|
||||||
"module": "esnext",
|
|
||||||
"target": "esnext",
|
"target": "esnext",
|
||||||
|
"jsx": "preserve",
|
||||||
"lib": [
|
"lib": [
|
||||||
"esnext",
|
"esnext",
|
||||||
"dom"
|
"dom"
|
||||||
],
|
],
|
||||||
"sourceMap": true,
|
|
||||||
"baseUrl": ".",
|
|
||||||
"jsx": "preserve",
|
|
||||||
"allowSyntheticDefaultImports": true,
|
|
||||||
"moduleResolution": "node",
|
|
||||||
"forceConsistentCasingInFileNames": true,
|
|
||||||
"noImplicitReturns": true,
|
|
||||||
"suppressImplicitAnyIndexErrors": true,
|
|
||||||
"noUnusedLocals": true,
|
|
||||||
"allowJs": true,
|
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"strict": true,
|
"baseUrl": ".",
|
||||||
|
"module": "esnext",
|
||||||
|
"moduleResolution": "node",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": [
|
"@/*": [
|
||||||
"./src/*"
|
"./src/*"
|
||||||
@ -26,7 +17,14 @@
|
|||||||
"@@/*": [
|
"@@/*": [
|
||||||
"./src/.fes/*"
|
"./src/.fes/*"
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"allowJs": true,
|
||||||
|
"strict": true,
|
||||||
|
"noUnusedLocals": true,
|
||||||
|
"outDir": "build/dist",
|
||||||
|
"sourceMap": true,
|
||||||
|
"allowSyntheticDefaultImports": true,
|
||||||
|
"forceConsistentCasingInFileNames": true
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"*.js",
|
"*.js",
|
||||||
@ -43,4 +41,4 @@
|
|||||||
"jest",
|
"jest",
|
||||||
"node_modules"
|
"node_modules"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
3
packages/fes-template-vite/src/global.css
Normal file
3
packages/fes-template-vite/src/global.css
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
@tailwind base;
|
||||||
|
@tailwind components;
|
||||||
|
@tailwind utilities;
|
10
packages/fes-template-vite/tailwind.config.js
Normal file
10
packages/fes-template-vite/tailwind.config.js
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
/** @type {import('tailwindcss').Config} */
|
||||||
|
module.exports = {
|
||||||
|
content: [
|
||||||
|
'src/**/*.{js,jsx,ts,tsx,vue}',
|
||||||
|
],
|
||||||
|
theme: {
|
||||||
|
extend: {},
|
||||||
|
},
|
||||||
|
plugins: [],
|
||||||
|
};
|
Loading…
x
Reference in New Issue
Block a user