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.
Files changed (63) hide show
  1. package/package.json +3 -2
  2. package/template/electron-react/package.json +97 -97
  3. package/template/electron-vue/package.json +87 -87
  4. package/template/web-app/react-rsbuild/domain/components/app-context.tsx +1 -10
  5. package/template/web-app/react-rsbuild/env.d.ts +0 -7
  6. package/template/web-app/react-rsbuild/main.tsx +2 -3
  7. package/template/web-app/react-rsbuild/package.json +79 -79
  8. package/template/web-app/react-rsbuild/pages/home/view.module.css +3 -0
  9. package/template/web-app/react-rsbuild/pages/home/view.tsx +2 -2
  10. package/template/web-app/react-rsbuild/postcss.config.cjs +1 -0
  11. package/template/web-app/react-rsbuild/rsbuild.config.ts +1 -12
  12. package/template/web-app/react-rsbuild/tsconfig.json +0 -1
  13. package/template/web-app/react-vite/domain/components/app-context.tsx +1 -10
  14. package/template/web-app/react-vite/main.tsx +2 -3
  15. package/template/web-app/react-vite/package.json +78 -78
  16. package/template/web-app/react-vite/pages/home/view.module.css +3 -0
  17. package/template/web-app/react-vite/pages/home/view.tsx +2 -2
  18. package/template/web-app/react-vite/tsconfig.json +0 -1
  19. package/template/web-app/react-vite/vite-env.d.ts +6 -15
  20. package/template/web-app/react-vite/vite.config.ts +3 -3
  21. package/template/web-app/vue/.stylelintrc +2 -2
  22. package/template/web-app/vue/domain/components/createComponentInstance.ts +1 -1
  23. package/template/web-app/vue/main.ts +1 -1
  24. package/template/web-app/vue/package.json +72 -71
  25. package/template/web-app/vue/pages/home/view.vue +2 -0
  26. package/template/web-app/vue/shared/styles/theme.css +4 -0
  27. package/template/web-app/vue/vite.config.ts +2 -2
  28. package/template/web-app/vue-rsbuild/.stylelintrc +2 -2
  29. package/template/web-app/vue-rsbuild/domain/components/createComponentInstance.ts +1 -1
  30. package/template/web-app/vue-rsbuild/main.ts +1 -1
  31. package/template/web-app/vue-rsbuild/package.json +77 -73
  32. package/template/web-app/vue-rsbuild/pages/home/view.vue +2 -0
  33. package/template/web-app/vue-rsbuild/shared/styles/theme.css +4 -0
  34. package/template/web-extension/.wxt/eslint-auto-imports.mjs +56 -56
  35. package/template/web-extension/.wxt/tsconfig.json +27 -27
  36. package/template/web-extension/.wxt/types/globals.d.ts +15 -15
  37. package/template/web-extension/.wxt/types/i18n.d.ts +81 -81
  38. package/template/web-extension/.wxt/types/imports-module.d.ts +20 -20
  39. package/template/web-extension/.wxt/types/imports.d.ts +50 -50
  40. package/template/web-extension/.wxt/types/paths.d.ts +17 -17
  41. package/template/web-extension/.wxt/wxt.d.ts +7 -7
  42. package/template/web-extension/entrypoints/content/index.tsx +1 -0
  43. package/template/web-extension/entrypoints/popup/main.tsx +1 -0
  44. package/template/web-extension/entrypoints/popup/popup.tsx +1 -1
  45. package/template/web-extension/package.json +85 -86
  46. package/template/web-extension/shared/components/app-context/view.tsx +1 -10
  47. package/template/web-extension/shared/styles/theme.css +4 -0
  48. package/template/web-extension/tsconfig.json +0 -1
  49. package/template/web-extension/vite-env.d.ts +6 -15
  50. package/template/web-extension/wxt.config.ts +2 -1
  51. package/template/web-app/react-rsbuild/pages/home/view.styled.ts +0 -5
  52. package/template/web-app/react-rsbuild/shared/styles/global.ts +0 -7
  53. package/template/web-app/react-rsbuild/shared/styles/index.ts +0 -2
  54. package/template/web-app/react-rsbuild/shared/styles/theme.ts +0 -60
  55. package/template/web-app/react-vite/pages/home/view.styled.ts +0 -5
  56. package/template/web-app/react-vite/shared/styles/global.ts +0 -7
  57. package/template/web-app/react-vite/shared/styles/index.ts +0 -2
  58. package/template/web-app/react-vite/shared/styles/theme.ts +0 -60
  59. package/template/web-extension/shared/styles/global.ts +0 -9
  60. package/template/web-extension/shared/styles/index.ts +0 -2
  61. package/template/web-extension/shared/styles/theme.ts +0 -60
  62. /package/template/web-app/{vue-rsbuild/main.css → react-rsbuild/shared/styles/theme.css} +0 -0
  63. /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,
@@ -18,7 +18,6 @@
18
18
  "isolatedModules": true,
19
19
  "noEmit": true,
20
20
  "jsx": "react-jsx",
21
- "jsxImportSource": "@emotion/react",
22
21
  "paths": {
23
22
  "@/*": ["./*"]
24
23
  }
@@ -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
- export default function () {
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
- "format": "prettier --write \"**/*.{ts,js,tsx,jsx,json,css,scss,less}\"",
14
- "lint": "tsc --noEmit && eslint --no-error-on-unmatched-pattern && stylelint **/*.{css,scss,less,ts,tsx}",
15
- "lint:fix": "eslint --fix && stylelint **/*.{css,scss,less,ts,tsx} --fix",
16
- "cz": "cz",
17
- "push": "npm run commit && git push",
18
- "commit": "git add . && npm run cz"
19
- },
20
- "dependencies": {
21
- "@emotion/react": "11.14.0",
22
- "@emotion/styled": "11.14.1",
23
- "@tanstack/react-query": "5.51.15",
24
- "axios": "1.7.9",
25
- "define-zustand": "3.4.0",
26
- "es-toolkit": "1.39.8",
27
- "immer": "10.0.1",
28
- "qs": "6.11.2",
29
- "react": "18.3.1",
30
- "react-dom": "18.3.1",
31
- "react-router": "7.5.0",
32
- "react-use": "17.5.0",
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
- "@emotion/babel-plugin": "11.13.5",
41
- "@eslint/js": "9.15.0",
42
- "@faker-js/faker": "8.4.1",
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.0.1",
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.1.3",
69
- "vite-plugin-checker": "0.10.2",
70
- "vite-plugin-mock-dev-server": "1.9.3",
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
+ }
@@ -0,0 +1,3 @@
1
+ .root {
2
+ @apply flex justify-center items-center;
3
+ }
@@ -1,10 +1,10 @@
1
1
  import { useHomeData } from '@/shared/service'
2
- import { StyledRoot } from './view.styled'
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 <StyledRoot>sdfs</StyledRoot>
9
+ return <div className={styles.root}>sdfs</div>
10
10
  }
@@ -18,7 +18,6 @@
18
18
  "isolatedModules": true,
19
19
  "noEmit": true,
20
20
  "jsx": "react-jsx",
21
- "jsxImportSource": "@emotion/react",
22
21
  "paths": {
23
22
  "@/*": ["./*"]
24
23
  }
@@ -1,21 +1,12 @@
1
1
  /// <reference types="vite/client" />
2
2
  /// <reference types="vite-plugin-svgr/client" />
3
3
 
4
- import '@emotion/react'
5
- import { type themeType } from '@/shared/styles'
6
-
7
- declare global {
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
- declare module '@emotion/react' {
20
- export interface Theme extends themeType {}
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
  }
@@ -1,5 +1,5 @@
1
1
  import { createVNode, render, VNodeChild } from 'vue'
2
- import app from './app'
2
+ import app from './app.vue'
3
3
 
4
4
  const store = new Map()
5
5
 
@@ -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 './main.css'
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
- "dependencies": {
22
- "axios": "1.7.9",
23
- "es-toolkit": "1.39.8",
24
- "pinia": "3.0.3",
25
- "tailwindcss": "4.1.4",
26
- "type-fest": "4.33.0",
27
- "vue": "3.5.20",
28
- "vue-router": "4.5.1"
29
- },
30
- "devDependencies": {
31
- "@commitlint/cli": "17.6.1",
32
- "@commitlint/config-conventional": "17.6.1",
33
- "@commitlint/cz-commitlint": "17.5.0",
34
- "@eslint/js": "9.15.0",
35
- "@faker-js/faker": "8.4.1",
36
- "@tailwindcss/vite": "4.1.4",
37
- "@types/mockjs": "1.0.10",
38
- "@vitejs/plugin-vue": "6.0.1",
39
- "@vitejs/plugin-vue-jsx": "5.0.1",
40
- "autoprefixer": "10.4.14",
41
- "commitizen": "4.3.0",
42
- "cssnano": "6.0.0",
43
- "eslint": "9.17.0",
44
- "eslint-import-resolver-typescript": "3.7.0",
45
- "eslint-plugin-import": "2.31.0",
46
- "eslint-plugin-vue": "9.32.0",
47
- "globals": "15.12.0",
48
- "husky": "9.1.6",
49
- "inquirer": "8.1.2",
50
- "postcss": "8.4.38",
51
- "postcss-html": "1.8.0",
52
- "postcss-import": "16.1.0",
53
- "postcss-nesting": "12.1.1",
54
- "prettier": "3.2.5",
55
- "rollup-plugin-visualizer": "5.12.0",
56
- "stylelint": "16.10.0",
57
- "stylelint-config-standard-scss": "13.1.0",
58
- "typescript": "5.8.2",
59
- "typescript-eslint": "8.15.0",
60
- "vite": "7.1.3",
61
- "vite-plugin-checker": "0.10.2",
62
- "vite-plugin-mock-dev-server": "1.9.3",
63
- "vite-svg-loader": "5.1.0",
64
- "vue-tsc": "3.0.6"
65
- },
66
- "config": {
67
- "commitizen": {
68
- "path": "@commitlint/cz-commitlint"
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
+ }
@@ -10,6 +10,8 @@ console.log('data', data)
10
10
  </template>
11
11
 
12
12
  <style scoped>
13
+ @reference "@/main.css";
14
+
13
15
  .root {
14
16
  @apply tw:flex tw:items-center tw:justify-center;
15
17
  }
@@ -0,0 +1,4 @@
1
+ @layer theme, base, components, utilities;
2
+ @import "tailwindcss/theme.css" prefix(tw) layer(theme);
3
+ @import "tailwindcss/utilities.css" layer(utilities);
4
+
@@ -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 mockDevServer from 'vite-plugin-mock-dev-server'
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
- mockDevServer({
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
  }
@@ -1,5 +1,5 @@
1
1
  import { createVNode, render, VNodeChild } from 'vue'
2
- import app from './app'
2
+ import app from './app.vue'
3
3
 
4
4
  const store = new Map()
5
5
 
@@ -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 './main.css'
5
+ import './shared/styles/theme.css'
6
6
 
7
7
  createApp(App).use(createPinia()).use(router).mount('#app')