create-packer 1.47.0 → 1.47.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -2
- package/template/electron-react/package.json +97 -97
- package/template/electron-vue/package.json +87 -87
- package/template/web-app/react-rsbuild/domain/components/app-context.tsx +1 -10
- package/template/web-app/react-rsbuild/env.d.ts +0 -7
- package/template/web-app/react-rsbuild/main.tsx +2 -3
- package/template/web-app/react-rsbuild/package.json +79 -79
- package/template/web-app/react-rsbuild/pages/home/view.module.css +3 -0
- package/template/web-app/react-rsbuild/pages/home/view.tsx +2 -2
- package/template/web-app/react-rsbuild/postcss.config.cjs +1 -0
- package/template/web-app/react-rsbuild/rsbuild.config.ts +1 -12
- package/template/web-app/react-rsbuild/tsconfig.json +0 -1
- package/template/web-app/react-vite/domain/components/app-context.tsx +1 -10
- package/template/web-app/react-vite/main.tsx +2 -3
- package/template/web-app/react-vite/package.json +78 -78
- package/template/web-app/react-vite/pages/home/view.module.css +3 -0
- package/template/web-app/react-vite/pages/home/view.tsx +2 -2
- package/template/web-app/react-vite/tsconfig.json +0 -1
- package/template/web-app/react-vite/vite-env.d.ts +6 -15
- package/template/web-app/react-vite/vite.config.ts +3 -3
- package/template/web-app/vue/.stylelintrc +2 -2
- package/template/web-app/vue/domain/components/createComponentInstance.ts +1 -1
- package/template/web-app/vue/main.ts +1 -1
- package/template/web-app/vue/package.json +72 -71
- package/template/web-app/vue/pages/home/view.vue +2 -0
- package/template/web-app/vue/shared/styles/theme.css +4 -0
- package/template/web-app/vue/vite.config.ts +2 -2
- package/template/web-app/vue-rsbuild/.stylelintrc +2 -2
- package/template/web-app/vue-rsbuild/domain/components/createComponentInstance.ts +1 -1
- package/template/web-app/vue-rsbuild/main.ts +1 -1
- package/template/web-app/vue-rsbuild/package.json +77 -73
- package/template/web-app/vue-rsbuild/pages/home/view.vue +2 -0
- package/template/web-app/vue-rsbuild/shared/styles/theme.css +4 -0
- package/template/web-extension/.wxt/eslint-auto-imports.mjs +56 -56
- package/template/web-extension/.wxt/tsconfig.json +27 -27
- package/template/web-extension/.wxt/types/globals.d.ts +15 -15
- package/template/web-extension/.wxt/types/i18n.d.ts +81 -81
- package/template/web-extension/.wxt/types/imports-module.d.ts +20 -20
- package/template/web-extension/.wxt/types/imports.d.ts +50 -50
- package/template/web-extension/.wxt/types/paths.d.ts +17 -17
- package/template/web-extension/.wxt/wxt.d.ts +7 -7
- package/template/web-extension/entrypoints/content/index.tsx +1 -0
- package/template/web-extension/entrypoints/popup/main.tsx +1 -0
- package/template/web-extension/entrypoints/popup/popup.tsx +1 -1
- package/template/web-extension/package.json +85 -86
- package/template/web-extension/shared/components/app-context/view.tsx +1 -10
- package/template/web-extension/shared/styles/theme.css +4 -0
- package/template/web-extension/tsconfig.json +0 -1
- package/template/web-extension/vite-env.d.ts +6 -15
- package/template/web-extension/wxt.config.ts +2 -1
- package/template/web-app/react-rsbuild/pages/home/view.styled.ts +0 -5
- package/template/web-app/react-rsbuild/shared/styles/global.ts +0 -7
- package/template/web-app/react-rsbuild/shared/styles/index.ts +0 -2
- package/template/web-app/react-rsbuild/shared/styles/theme.ts +0 -60
- package/template/web-app/react-vite/pages/home/view.styled.ts +0 -5
- package/template/web-app/react-vite/shared/styles/global.ts +0 -7
- package/template/web-app/react-vite/shared/styles/index.ts +0 -2
- package/template/web-app/react-vite/shared/styles/theme.ts +0 -60
- package/template/web-extension/shared/styles/global.ts +0 -9
- package/template/web-extension/shared/styles/index.ts +0 -2
- package/template/web-extension/shared/styles/theme.ts +0 -60
- /package/template/web-app/{vue-rsbuild/main.css → react-rsbuild/shared/styles/theme.css} +0 -0
- /package/template/web-app/{vue/main.css → react-vite/shared/styles/theme.css} +0 -0
|
@@ -41,13 +41,6 @@ export default defineConfig(({ envMode, command }) => {
|
|
|
41
41
|
new StylelintWebpackPlugin(),
|
|
42
42
|
process.env.RSDOCTOR && new RsdoctorRspackPlugin()
|
|
43
43
|
]
|
|
44
|
-
},
|
|
45
|
-
swc: {
|
|
46
|
-
jsc: {
|
|
47
|
-
experimental: {
|
|
48
|
-
plugins: [['@swc/plugin-emotion', {}]]
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
44
|
}
|
|
52
45
|
},
|
|
53
46
|
plugins: [
|
|
@@ -59,11 +52,7 @@ export default defineConfig(({ envMode, command }) => {
|
|
|
59
52
|
}
|
|
60
53
|
}),
|
|
61
54
|
pluginSvgr(),
|
|
62
|
-
pluginReact(
|
|
63
|
-
swcReactOptions: {
|
|
64
|
-
importSource: '@emotion/react'
|
|
65
|
-
}
|
|
66
|
-
})
|
|
55
|
+
pluginReact()
|
|
67
56
|
],
|
|
68
57
|
performance: {
|
|
69
58
|
removeConsole: command === 'build' ? ['log'] : false,
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { FunctionComponent, ReactNode } from 'react'
|
|
2
2
|
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
|
|
3
|
-
import { Global, ThemeProvider } from '@emotion/react'
|
|
4
3
|
import { request } from '@/shared/service'
|
|
5
|
-
import { globalCss, theme } from '@/shared/styles'
|
|
6
4
|
|
|
7
5
|
const queryClient = new QueryClient({
|
|
8
6
|
defaultOptions: {
|
|
@@ -20,12 +18,5 @@ export interface propsType {
|
|
|
20
18
|
children: ReactNode
|
|
21
19
|
}
|
|
22
20
|
export const Root: FunctionComponent<propsType> = props => {
|
|
23
|
-
return
|
|
24
|
-
<ThemeProvider theme={theme}>
|
|
25
|
-
<QueryClientProvider client={queryClient}>
|
|
26
|
-
<Global styles={globalCss} />
|
|
27
|
-
{props.children}
|
|
28
|
-
</QueryClientProvider>
|
|
29
|
-
</ThemeProvider>
|
|
30
|
-
)
|
|
21
|
+
return <QueryClientProvider client={queryClient}>{props.children}</QueryClientProvider>
|
|
31
22
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { createRoot } from 'react-dom/client'
|
|
2
2
|
import { App } from '@/domain/components'
|
|
3
|
+
import './shared/styles/theme.css'
|
|
3
4
|
|
|
4
|
-
|
|
5
|
-
createRoot(document.getElementById('root') as HTMLElement).render(<App.Root />)
|
|
6
|
-
}
|
|
5
|
+
createRoot(document.getElementById('root') as HTMLElement).render(<App.Root />)
|
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "react-vite",
|
|
3
|
-
"private": true,
|
|
4
|
-
"version": "0.0.0",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"prepare": "husky",
|
|
8
|
-
"dev": "vite",
|
|
9
|
-
"build": "tsc --noEmit && vite build",
|
|
10
|
-
"build:analyse": "tsc --noEmit && vite build --mode analyse",
|
|
11
|
-
"preview": "vite preview",
|
|
12
|
-
"up:vite": "pnpm up vite @vitejs/* vite-plugin-* -L",
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"lint
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"@
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"react": "18.3.1",
|
|
30
|
-
"react-
|
|
31
|
-
"react-
|
|
32
|
-
"
|
|
33
|
-
"type-fest": "4.33.0",
|
|
34
|
-
"zustand": "5.0.3"
|
|
35
|
-
},
|
|
36
|
-
"devDependencies": {
|
|
37
|
-
"@commitlint/cli": "17.6.1",
|
|
38
|
-
"@commitlint/config-conventional": "17.6.1",
|
|
39
|
-
"@commitlint/cz-commitlint": "17.5.0",
|
|
40
|
-
"@
|
|
41
|
-
"@
|
|
42
|
-
"@
|
|
43
|
-
"@types/node": "18.16.0",
|
|
44
|
-
"@types/qs": "6.9.7",
|
|
45
|
-
"@types/react": "18.3.3",
|
|
46
|
-
"@types/react-dom": "18.3.0",
|
|
47
|
-
"@vitejs/plugin-react": "5.
|
|
48
|
-
"autoprefixer": "10.4.14",
|
|
49
|
-
"commitizen": "4.3.0",
|
|
50
|
-
"cssnano": "6.0.0",
|
|
51
|
-
"eslint": "9.17.0",
|
|
52
|
-
"eslint-import-resolver-typescript": "3.7.0",
|
|
53
|
-
"eslint-plugin-import": "2.31.0",
|
|
54
|
-
"eslint-plugin-react": "7.37.2",
|
|
55
|
-
"eslint-plugin-react-hooks": "5.1.0",
|
|
56
|
-
"globals": "15.12.0",
|
|
57
|
-
"husky": "9.1.6",
|
|
58
|
-
"inquirer": "8.1.2",
|
|
59
|
-
"postcss": "8.4.35",
|
|
60
|
-
"postcss-import": "16.0.1",
|
|
61
|
-
"postcss-nesting": "12.0.3",
|
|
62
|
-
"prettier": "3.2.5",
|
|
63
|
-
"rollup-plugin-visualizer": "5.12.0",
|
|
64
|
-
"stylelint": "16.10.0",
|
|
65
|
-
"stylelint-config-standard": "36.0.1",
|
|
66
|
-
"typescript": "5.8.2",
|
|
67
|
-
"typescript-eslint": "8.15.0",
|
|
68
|
-
"vite": "7.
|
|
69
|
-
"vite-plugin-checker": "0.
|
|
70
|
-
"vite-plugin-mock-dev-server": "
|
|
71
|
-
"vite-plugin-svgr": "4.5.0"
|
|
72
|
-
},
|
|
73
|
-
"config": {
|
|
74
|
-
"commitizen": {
|
|
75
|
-
"path": "@commitlint/cz-commitlint"
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "react-vite",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "0.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"prepare": "husky",
|
|
8
|
+
"dev": "vite",
|
|
9
|
+
"build": "tsc --noEmit && vite build",
|
|
10
|
+
"build:analyse": "tsc --noEmit && vite build --mode analyse",
|
|
11
|
+
"preview": "vite preview",
|
|
12
|
+
"up:vite": "pnpm up vite @vitejs/* vite-plugin-* -L",
|
|
13
|
+
"up:tailwind": "pnpm up tailwindcss @tailwindcss/* -L",
|
|
14
|
+
"format": "prettier --write \"**/*.{ts,js,tsx,jsx,json,css,scss,less}\"",
|
|
15
|
+
"lint": "tsc --noEmit && eslint --no-error-on-unmatched-pattern && stylelint **/*.{css,scss,less,ts,tsx}",
|
|
16
|
+
"lint:fix": "eslint --fix && stylelint **/*.{css,scss,less,ts,tsx} --fix",
|
|
17
|
+
"cz": "cz",
|
|
18
|
+
"push": "npm run commit && git push",
|
|
19
|
+
"commit": "git add . && npm run cz"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@tanstack/react-query": "5.51.15",
|
|
23
|
+
"axios": "1.7.9",
|
|
24
|
+
"define-zustand": "3.4.0",
|
|
25
|
+
"es-toolkit": "1.43.0",
|
|
26
|
+
"immer": "10.0.1",
|
|
27
|
+
"qs": "6.11.2",
|
|
28
|
+
"react": "18.3.1",
|
|
29
|
+
"react-dom": "18.3.1",
|
|
30
|
+
"react-router": "7.5.0",
|
|
31
|
+
"react-use": "17.5.0",
|
|
32
|
+
"tailwindcss": "4.1.4",
|
|
33
|
+
"type-fest": "4.33.0",
|
|
34
|
+
"zustand": "5.0.3"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@commitlint/cli": "17.6.1",
|
|
38
|
+
"@commitlint/config-conventional": "17.6.1",
|
|
39
|
+
"@commitlint/cz-commitlint": "17.5.0",
|
|
40
|
+
"@eslint/js": "9.15.0",
|
|
41
|
+
"@faker-js/faker": "8.4.1",
|
|
42
|
+
"@tailwindcss/vite": "^4.1.18",
|
|
43
|
+
"@types/node": "18.16.0",
|
|
44
|
+
"@types/qs": "6.9.7",
|
|
45
|
+
"@types/react": "18.3.3",
|
|
46
|
+
"@types/react-dom": "18.3.0",
|
|
47
|
+
"@vitejs/plugin-react": "5.1.2",
|
|
48
|
+
"autoprefixer": "10.4.14",
|
|
49
|
+
"commitizen": "4.3.0",
|
|
50
|
+
"cssnano": "6.0.0",
|
|
51
|
+
"eslint": "9.17.0",
|
|
52
|
+
"eslint-import-resolver-typescript": "3.7.0",
|
|
53
|
+
"eslint-plugin-import": "2.31.0",
|
|
54
|
+
"eslint-plugin-react": "7.37.2",
|
|
55
|
+
"eslint-plugin-react-hooks": "5.1.0",
|
|
56
|
+
"globals": "15.12.0",
|
|
57
|
+
"husky": "9.1.6",
|
|
58
|
+
"inquirer": "8.1.2",
|
|
59
|
+
"postcss": "8.4.35",
|
|
60
|
+
"postcss-import": "16.0.1",
|
|
61
|
+
"postcss-nesting": "12.0.3",
|
|
62
|
+
"prettier": "3.2.5",
|
|
63
|
+
"rollup-plugin-visualizer": "5.12.0",
|
|
64
|
+
"stylelint": "16.10.0",
|
|
65
|
+
"stylelint-config-standard": "36.0.1",
|
|
66
|
+
"typescript": "5.8.2",
|
|
67
|
+
"typescript-eslint": "8.15.0",
|
|
68
|
+
"vite": "7.3.0",
|
|
69
|
+
"vite-plugin-checker": "0.12.0",
|
|
70
|
+
"vite-plugin-mock-dev-server": "2.0.7",
|
|
71
|
+
"vite-plugin-svgr": "4.5.0"
|
|
72
|
+
},
|
|
73
|
+
"config": {
|
|
74
|
+
"commitizen": {
|
|
75
|
+
"path": "@commitlint/cz-commitlint"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useHomeData } from '@/shared/service'
|
|
2
|
-
import
|
|
2
|
+
import styles from './view.module.css'
|
|
3
3
|
|
|
4
4
|
export default function Home() {
|
|
5
5
|
const { data } = useHomeData()
|
|
6
6
|
|
|
7
7
|
console.log('data', data)
|
|
8
8
|
|
|
9
|
-
return <
|
|
9
|
+
return <div className={styles.root}>sdfs</div>
|
|
10
10
|
}
|
|
@@ -1,21 +1,12 @@
|
|
|
1
1
|
/// <reference types="vite/client" />
|
|
2
2
|
/// <reference types="vite-plugin-svgr/client" />
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
interface ImportMetaEnv {
|
|
9
|
-
readonly VITE_BASE_URL: string
|
|
10
|
-
readonly VITE_API_HOST: string
|
|
11
|
-
// 更多环境变量...
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
interface ImportMeta {
|
|
15
|
-
readonly env: ImportMetaEnv
|
|
16
|
-
}
|
|
4
|
+
interface ImportMetaEnv {
|
|
5
|
+
readonly VITE_BASE_URL: string
|
|
6
|
+
readonly VITE_API_HOST: string
|
|
7
|
+
// 更多环境变量...
|
|
17
8
|
}
|
|
18
9
|
|
|
19
|
-
|
|
20
|
-
|
|
10
|
+
interface ImportMeta {
|
|
11
|
+
readonly env: ImportMetaEnv
|
|
21
12
|
}
|
|
@@ -3,6 +3,7 @@ import react from '@vitejs/plugin-react'
|
|
|
3
3
|
import svgr from 'vite-plugin-svgr'
|
|
4
4
|
import { mockDevServerPlugin } from 'vite-plugin-mock-dev-server'
|
|
5
5
|
import checker from 'vite-plugin-checker'
|
|
6
|
+
import tailwindcss from '@tailwindcss/vite'
|
|
6
7
|
import { visualizer } from 'rollup-plugin-visualizer'
|
|
7
8
|
import { createChunks } from './scripts'
|
|
8
9
|
|
|
@@ -11,6 +12,7 @@ export default defineConfig(({ mode }) => {
|
|
|
11
12
|
const env = loadEnv(mode, process.cwd(), '')
|
|
12
13
|
const proxyBaseUrl = env.VITE_BASE_URL + env.VITE_API_HOST
|
|
13
14
|
const plugins: any[] = [
|
|
15
|
+
tailwindcss(),
|
|
14
16
|
svgr(),
|
|
15
17
|
mockDevServerPlugin({
|
|
16
18
|
include: ['**/*.mock.{ts,js}']
|
|
@@ -20,9 +22,7 @@ export default defineConfig(({ mode }) => {
|
|
|
20
22
|
typescript: true,
|
|
21
23
|
eslint: { useFlatConfig: true, lintCommand: 'eslint', dev: { logLevel: ['error'] } }
|
|
22
24
|
}),
|
|
23
|
-
react(
|
|
24
|
-
babel: { plugins: [['@emotion']] }
|
|
25
|
-
})
|
|
25
|
+
react()
|
|
26
26
|
]
|
|
27
27
|
|
|
28
28
|
if (mode === 'analyse') {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"at-rule-no-unknown": [
|
|
15
15
|
true,
|
|
16
16
|
{
|
|
17
|
-
"ignoreAtRules": ["tailwind", "apply", "use"]
|
|
17
|
+
"ignoreAtRules": ["tailwind", "apply", "use", "reference"]
|
|
18
18
|
}
|
|
19
19
|
],
|
|
20
20
|
"declaration-block-no-redundant-longhand-properties": null,
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"scss/at-rule-no-unknown": [
|
|
29
29
|
true,
|
|
30
30
|
{
|
|
31
|
-
"ignoreAtRules": ["tailwind", "apply"]
|
|
31
|
+
"ignoreAtRules": ["tailwind", "apply", "reference"]
|
|
32
32
|
}
|
|
33
33
|
]
|
|
34
34
|
}
|
|
@@ -2,6 +2,6 @@ import { createApp } from 'vue'
|
|
|
2
2
|
import { createPinia } from 'pinia'
|
|
3
3
|
import { App } from '@/domain/components'
|
|
4
4
|
import { router } from '@/domain/router'
|
|
5
|
-
import './
|
|
5
|
+
import './shared/styles/theme.css'
|
|
6
6
|
|
|
7
7
|
createApp(App).use(createPinia()).use(router).mount('#app')
|
|
@@ -1,71 +1,72 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "vue-vite",
|
|
3
|
-
"private": true,
|
|
4
|
-
"version": "0.0.0",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"prepare": "husky",
|
|
8
|
-
"dev": "vite",
|
|
9
|
-
"build": "vue-tsc --noEmit && vite build",
|
|
10
|
-
"build:analyse": "tsc --noEmit && vite build --mode analyse",
|
|
11
|
-
"preview": "vite preview",
|
|
12
|
-
"format": "prettier --write \"**/*.{vue,ts,js,tsx,jsx,json,css,scss,less}\"",
|
|
13
|
-
"lint": "vue-tsc --noEmit && eslint --no-error-on-unmatched-pattern && stylelint **/*.{css,scss,less,vue}",
|
|
14
|
-
"lint:fix": "eslint --fix && stylelint **/*.{css,scss,less,vue} --fix",
|
|
15
|
-
"cz": "cz",
|
|
16
|
-
"push": "npm run commit && git push",
|
|
17
|
-
"commit": "git add . && npm run cz",
|
|
18
|
-
"up:vite": "pnpm up vite @vitejs/* vite-plugin-* -L",
|
|
19
|
-
"up:vue": "pnpm up vue vue-router vue-tsc -L"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"vue
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"@commitlint/
|
|
33
|
-
"@commitlint/
|
|
34
|
-
"@
|
|
35
|
-
"@
|
|
36
|
-
"@
|
|
37
|
-
"@
|
|
38
|
-
"@
|
|
39
|
-
"@vitejs/plugin-vue
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"eslint
|
|
45
|
-
"eslint-
|
|
46
|
-
"eslint-plugin-
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"postcss
|
|
52
|
-
"postcss-
|
|
53
|
-
"postcss-
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"stylelint
|
|
58
|
-
"
|
|
59
|
-
"typescript
|
|
60
|
-
"
|
|
61
|
-
"vite
|
|
62
|
-
"vite-plugin-
|
|
63
|
-
"vite-
|
|
64
|
-
"
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "vue-vite",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "0.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"prepare": "husky",
|
|
8
|
+
"dev": "vite",
|
|
9
|
+
"build": "vue-tsc --noEmit && vite build",
|
|
10
|
+
"build:analyse": "tsc --noEmit && vite build --mode analyse",
|
|
11
|
+
"preview": "vite preview",
|
|
12
|
+
"format": "prettier --write \"**/*.{vue,ts,js,tsx,jsx,json,css,scss,less}\"",
|
|
13
|
+
"lint": "vue-tsc --noEmit && eslint --no-error-on-unmatched-pattern && stylelint **/*.{css,scss,less,vue}",
|
|
14
|
+
"lint:fix": "eslint --fix && stylelint **/*.{css,scss,less,vue} --fix",
|
|
15
|
+
"cz": "cz",
|
|
16
|
+
"push": "npm run commit && git push",
|
|
17
|
+
"commit": "git add . && npm run cz",
|
|
18
|
+
"up:vite": "pnpm up vite @vitejs/* vite-plugin-* -L",
|
|
19
|
+
"up:vue": "pnpm up vue vue-router vue-tsc -L",
|
|
20
|
+
"up:tailwind": "pnpm up tailwindcss @tailwindcss/* -L"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"axios": "1.7.9",
|
|
24
|
+
"es-toolkit": "1.43.0",
|
|
25
|
+
"pinia": "3.0.3",
|
|
26
|
+
"tailwindcss": "4.1.4",
|
|
27
|
+
"type-fest": "4.33.0",
|
|
28
|
+
"vue": "3.5.20",
|
|
29
|
+
"vue-router": "4.5.1"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@commitlint/cli": "17.6.1",
|
|
33
|
+
"@commitlint/config-conventional": "17.6.1",
|
|
34
|
+
"@commitlint/cz-commitlint": "17.5.0",
|
|
35
|
+
"@eslint/js": "9.15.0",
|
|
36
|
+
"@faker-js/faker": "8.4.1",
|
|
37
|
+
"@tailwindcss/vite": "4.1.4",
|
|
38
|
+
"@types/mockjs": "1.0.10",
|
|
39
|
+
"@vitejs/plugin-vue": "6.0.3",
|
|
40
|
+
"@vitejs/plugin-vue-jsx": "5.1.3",
|
|
41
|
+
"autoprefixer": "10.4.14",
|
|
42
|
+
"commitizen": "4.3.0",
|
|
43
|
+
"cssnano": "6.0.0",
|
|
44
|
+
"eslint": "9.17.0",
|
|
45
|
+
"eslint-import-resolver-typescript": "3.7.0",
|
|
46
|
+
"eslint-plugin-import": "2.31.0",
|
|
47
|
+
"eslint-plugin-vue": "9.32.0",
|
|
48
|
+
"globals": "15.12.0",
|
|
49
|
+
"husky": "9.1.6",
|
|
50
|
+
"inquirer": "8.1.2",
|
|
51
|
+
"postcss": "8.4.38",
|
|
52
|
+
"postcss-html": "1.8.0",
|
|
53
|
+
"postcss-import": "16.1.0",
|
|
54
|
+
"postcss-nesting": "12.1.1",
|
|
55
|
+
"prettier": "3.2.5",
|
|
56
|
+
"rollup-plugin-visualizer": "5.12.0",
|
|
57
|
+
"stylelint": "16.10.0",
|
|
58
|
+
"stylelint-config-standard-scss": "13.1.0",
|
|
59
|
+
"typescript": "5.8.2",
|
|
60
|
+
"typescript-eslint": "8.15.0",
|
|
61
|
+
"vite": "7.3.0",
|
|
62
|
+
"vite-plugin-checker": "0.12.0",
|
|
63
|
+
"vite-plugin-mock-dev-server": "2.0.7",
|
|
64
|
+
"vite-svg-loader": "5.1.0",
|
|
65
|
+
"vue-tsc": "3.0.6"
|
|
66
|
+
},
|
|
67
|
+
"config": {
|
|
68
|
+
"commitizen": {
|
|
69
|
+
"path": "@commitlint/cz-commitlint"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -2,7 +2,7 @@ import { defineConfig, loadEnv } from 'vite'
|
|
|
2
2
|
import vue from '@vitejs/plugin-vue'
|
|
3
3
|
import vueJsx from '@vitejs/plugin-vue-jsx'
|
|
4
4
|
import svgLoader from 'vite-svg-loader'
|
|
5
|
-
import
|
|
5
|
+
import { mockDevServerPlugin } from 'vite-plugin-mock-dev-server'
|
|
6
6
|
import checker from 'vite-plugin-checker'
|
|
7
7
|
import tailwindcss from '@tailwindcss/vite'
|
|
8
8
|
import { visualizer } from 'rollup-plugin-visualizer'
|
|
@@ -14,7 +14,7 @@ export default defineConfig(({ mode }) => {
|
|
|
14
14
|
const proxyBaseUrl = env.VITE_BASE_URL + env.VITE_API_HOST
|
|
15
15
|
const plugins: any[] = [
|
|
16
16
|
tailwindcss(),
|
|
17
|
-
|
|
17
|
+
mockDevServerPlugin({
|
|
18
18
|
include: ['**/*.mock.{ts,js}']
|
|
19
19
|
}),
|
|
20
20
|
vueJsx({
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"at-rule-no-unknown": [
|
|
15
15
|
true,
|
|
16
16
|
{
|
|
17
|
-
"ignoreAtRules": ["tailwind", "apply", "use"]
|
|
17
|
+
"ignoreAtRules": ["tailwind", "reference", "apply", "use"]
|
|
18
18
|
}
|
|
19
19
|
],
|
|
20
20
|
"declaration-block-no-redundant-longhand-properties": null,
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"scss/at-rule-no-unknown": [
|
|
29
29
|
true,
|
|
30
30
|
{
|
|
31
|
-
"ignoreAtRules": ["tailwind", "apply"]
|
|
31
|
+
"ignoreAtRules": ["tailwind", "reference", "apply"]
|
|
32
32
|
}
|
|
33
33
|
]
|
|
34
34
|
}
|
|
@@ -2,6 +2,6 @@ import { createApp } from 'vue'
|
|
|
2
2
|
import { createPinia } from 'pinia'
|
|
3
3
|
import { router } from '@/domain/router'
|
|
4
4
|
import { App } from '@/domain/components'
|
|
5
|
-
import './
|
|
5
|
+
import './shared/styles/theme.css'
|
|
6
6
|
|
|
7
7
|
createApp(App).use(createPinia()).use(router).mount('#app')
|