mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-06-24 23:29:17 +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 相关的配置
|
||||
import { defineBuildConfig } from '@fesjs/fes';
|
||||
import postcsspxtoviewport8plugin from 'postcss-px-to-viewport-8-plugin';
|
||||
|
||||
import { defineBuildConfig } from '@fesjs/fes'
|
||||
import postcsspxtoviewport8plugin from 'postcss-px-to-viewport-8-plugin'
|
||||
|
||||
export default defineBuildConfig({
|
||||
define: {
|
||||
// __VUE_OPTIONS_API__: true,
|
||||
// __VUE_PROD_DEVTOOLS__: false
|
||||
},
|
||||
html: {
|
||||
title: '拉夫德鲁',
|
||||
},
|
||||
targets: {
|
||||
chrome: '61',
|
||||
ios: '10',
|
||||
},
|
||||
extraPostCSSPlugins: [
|
||||
postcsspxtoviewport8plugin({
|
||||
unitToConvert: 'px',
|
||||
viewportWidth: 375,
|
||||
unitPrecision: 5,
|
||||
propList: ['*'],
|
||||
viewportUnit: 'vw',
|
||||
fontViewportUnit: 'vw',
|
||||
selectorBlackList: [],
|
||||
minPixelValue: 1,
|
||||
mediaQuery: false,
|
||||
replace: true,
|
||||
exclude: [],
|
||||
landscape: false,
|
||||
landscapeUnit: 'vw',
|
||||
}),
|
||||
],
|
||||
});
|
||||
define: {
|
||||
// __VUE_OPTIONS_API__: true,
|
||||
// __VUE_PROD_DEVTOOLS__: false
|
||||
},
|
||||
html: {
|
||||
title: '拉夫德鲁',
|
||||
},
|
||||
targets: {
|
||||
chrome: '61',
|
||||
ios: '10',
|
||||
},
|
||||
extraPostCSSPlugins: [
|
||||
postcsspxtoviewport8plugin({
|
||||
unitToConvert: 'px',
|
||||
viewportWidth: 375,
|
||||
unitPrecision: 5,
|
||||
propList: ['*'],
|
||||
viewportUnit: 'vw',
|
||||
fontViewportUnit: 'vw',
|
||||
selectorBlackList: [],
|
||||
minPixelValue: 1,
|
||||
mediaQuery: false,
|
||||
replace: true,
|
||||
exclude: [],
|
||||
landscape: false,
|
||||
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",
|
||||
"version": "3.0.0",
|
||||
"private": true,
|
||||
"description": "fes 移动端项目模版",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"build": "fes build",
|
||||
"dev": "fes dev"
|
||||
},
|
||||
"license": "MIT",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@webank/eslint-config-webank": "1.2.7",
|
||||
"postcss-px-to-viewport-8-plugin": "^1.2.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"@fesjs/fes": "^3.0.0",
|
||||
"@fesjs/plugin-icon": "^3.0.0",
|
||||
"@fesjs/plugin-request": "^3.0.0",
|
||||
"@fesjs/builder-webpack": "^3.0.0",
|
||||
"vue": "^3.2.47",
|
||||
"core-js": "^3.29.1"
|
||||
"@fesjs/builder-webpack": "^3.1.0",
|
||||
"@fesjs/fes": "^3.1.17",
|
||||
"@fesjs/plugin-icon": "^4.0.0",
|
||||
"@fesjs/plugin-request": "^4.0.1",
|
||||
"core-js": "^3.43.0",
|
||||
"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": {
|
||||
"outDir": "build/dist",
|
||||
"module": "esnext",
|
||||
"target": "esnext",
|
||||
"jsx": "preserve",
|
||||
"lib": [
|
||||
"esnext",
|
||||
"dom"
|
||||
],
|
||||
"sourceMap": true,
|
||||
"baseUrl": ".",
|
||||
"jsx": "preserve",
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"moduleResolution": "node",
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"noImplicitReturns": true,
|
||||
"suppressImplicitAnyIndexErrors": true,
|
||||
"noUnusedLocals": true,
|
||||
"allowJs": true,
|
||||
"experimentalDecorators": true,
|
||||
"strict": true,
|
||||
"baseUrl": ".",
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"paths": {
|
||||
"@/*": [
|
||||
"./src/*"
|
||||
@ -26,7 +17,13 @@
|
||||
"@@/*": [
|
||||
"./src/.fes/*"
|
||||
]
|
||||
}
|
||||
},
|
||||
"allowJs": true,
|
||||
"strict": true,
|
||||
"outDir": "build/dist",
|
||||
"sourceMap": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"include": [
|
||||
"src/**/*",
|
||||
|
@ -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",
|
||||
"version": "3.0.0",
|
||||
"description": "fes项目模版",
|
||||
"scripts": {
|
||||
"build": "fes build",
|
||||
"prod": "FES_ENV=prod fes build",
|
||||
"analyze": "ANALYZE=1 fes build",
|
||||
"dev": "fes dev",
|
||||
"test:unit": "fes test:unit"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@webank/eslint-config-webank": "1.2.7"
|
||||
},
|
||||
"dependencies": {
|
||||
"@fesjs/fes": "^3.0.0",
|
||||
"@fesjs/plugin-access": "^3.1.9",
|
||||
"@fesjs/plugin-layout": "^5.4.3",
|
||||
"@fesjs/plugin-model": "^3.0.0",
|
||||
"@fesjs/plugin-enums": "^3.0.0",
|
||||
"@fesjs/fes-design": "^0.8.0",
|
||||
"@fesjs/builder-webpack": "^3.0.0",
|
||||
"vue": "^3.2.47",
|
||||
"core-js": "^3.29.1"
|
||||
},
|
||||
"private": true
|
||||
"name": "@fesjs/template",
|
||||
"version": "3.0.0",
|
||||
"private": true,
|
||||
"description": "fes项目模版",
|
||||
"scripts": {
|
||||
"build": "fes build",
|
||||
"prod": "FES_ENV=prod fes build",
|
||||
"analyze": "ANALYZE=1 fes build",
|
||||
"dev": "fes dev",
|
||||
"test:unit": "fes test:unit"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"dependencies": {
|
||||
"@fesjs/builder-webpack": "^3.1.0",
|
||||
"@fesjs/fes": "^3.1.17",
|
||||
"@fesjs/fes-design": "^0.8.82",
|
||||
"@fesjs/plugin-access": "^3.1.9",
|
||||
"@fesjs/plugin-enums": "^3.0.1",
|
||||
"@fesjs/plugin-layout": "^5.4.6",
|
||||
"@fesjs/plugin-model": "^3.0.3",
|
||||
"core-js": "^3.43.0",
|
||||
"vue": "^3.5.17"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@antfu/eslint-config": "4.16.1",
|
||||
"eslint": "9.29.0",
|
||||
"typescript": "5.8.3"
|
||||
}
|
||||
}
|
||||
|
@ -1,24 +1,15 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"outDir": "build/dist",
|
||||
"module": "esnext",
|
||||
"target": "esnext",
|
||||
"jsx": "preserve",
|
||||
"lib": [
|
||||
"esnext",
|
||||
"dom"
|
||||
],
|
||||
"sourceMap": true,
|
||||
"baseUrl": ".",
|
||||
"jsx": "preserve",
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"moduleResolution": "node",
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"noImplicitReturns": true,
|
||||
"suppressImplicitAnyIndexErrors": true,
|
||||
"noUnusedLocals": true,
|
||||
"allowJs": true,
|
||||
"experimentalDecorators": true,
|
||||
"strict": true,
|
||||
"baseUrl": ".",
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"paths": {
|
||||
"@/*": [
|
||||
"./src/*"
|
||||
@ -26,7 +17,14 @@
|
||||
"@@/*": [
|
||||
"./src/.fes/*"
|
||||
]
|
||||
}
|
||||
},
|
||||
"allowJs": true,
|
||||
"strict": true,
|
||||
"noUnusedLocals": true,
|
||||
"outDir": "build/dist",
|
||||
"sourceMap": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"include": [
|
||||
"*.js",
|
||||
|
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