@moluoxixi/create-app 2.0.1

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 (215) hide show
  1. package/LICENSE.txt +21 -0
  2. package/README.md +129 -0
  3. package/dist/commands/create.d.ts +10 -0
  4. package/dist/commands/create.d.ts.map +1 -0
  5. package/dist/commands/create.js +89 -0
  6. package/dist/commands/create.js.map +1 -0
  7. package/dist/commands/index.d.ts +5 -0
  8. package/dist/commands/index.d.ts.map +1 -0
  9. package/dist/commands/index.js +5 -0
  10. package/dist/commands/index.js.map +1 -0
  11. package/dist/generators/index.d.ts +7 -0
  12. package/dist/generators/index.d.ts.map +1 -0
  13. package/dist/generators/index.js +7 -0
  14. package/dist/generators/index.js.map +1 -0
  15. package/dist/generators/project.d.ts +11 -0
  16. package/dist/generators/project.d.ts.map +1 -0
  17. package/dist/generators/project.js +26 -0
  18. package/dist/generators/project.js.map +1 -0
  19. package/dist/generators/react.d.ts +10 -0
  20. package/dist/generators/react.d.ts.map +1 -0
  21. package/dist/generators/react.js +39 -0
  22. package/dist/generators/react.js.map +1 -0
  23. package/dist/generators/vue.d.ts +10 -0
  24. package/dist/generators/vue.d.ts.map +1 -0
  25. package/dist/generators/vue.js +40 -0
  26. package/dist/generators/vue.js.map +1 -0
  27. package/dist/index.d.ts +7 -0
  28. package/dist/index.d.ts.map +1 -0
  29. package/dist/index.js +26 -0
  30. package/dist/index.js.map +1 -0
  31. package/dist/test.d.ts +6 -0
  32. package/dist/test.d.ts.map +1 -0
  33. package/dist/test.js +364 -0
  34. package/dist/test.js.map +1 -0
  35. package/dist/types/ejs.d.ts +11 -0
  36. package/dist/types/ejs.d.ts.map +1 -0
  37. package/dist/types/ejs.js +5 -0
  38. package/dist/types/ejs.js.map +1 -0
  39. package/dist/types/features.d.ts +26 -0
  40. package/dist/types/features.d.ts.map +1 -0
  41. package/dist/types/features.js +41 -0
  42. package/dist/types/features.js.map +1 -0
  43. package/dist/types/index.d.ts +59 -0
  44. package/dist/types/index.d.ts.map +1 -0
  45. package/dist/types/index.js +8 -0
  46. package/dist/types/index.js.map +1 -0
  47. package/dist/types/viteConfig.d.ts +17 -0
  48. package/dist/types/viteConfig.d.ts.map +1 -0
  49. package/dist/types/viteConfig.js +6 -0
  50. package/dist/types/viteConfig.js.map +1 -0
  51. package/dist/utils/deepMerge.d.ts +8 -0
  52. package/dist/utils/deepMerge.d.ts.map +1 -0
  53. package/dist/utils/deepMerge.js +33 -0
  54. package/dist/utils/deepMerge.js.map +1 -0
  55. package/dist/utils/ejs.d.ts +19 -0
  56. package/dist/utils/ejs.d.ts.map +1 -0
  57. package/dist/utils/ejs.js +30 -0
  58. package/dist/utils/ejs.js.map +1 -0
  59. package/dist/utils/file.d.ts +70 -0
  60. package/dist/utils/file.d.ts.map +1 -0
  61. package/dist/utils/file.js +119 -0
  62. package/dist/utils/file.js.map +1 -0
  63. package/dist/utils/index.d.ts +12 -0
  64. package/dist/utils/index.d.ts.map +1 -0
  65. package/dist/utils/index.js +12 -0
  66. package/dist/utils/index.js.map +1 -0
  67. package/dist/utils/install.d.ts +17 -0
  68. package/dist/utils/install.d.ts.map +1 -0
  69. package/dist/utils/install.js +37 -0
  70. package/dist/utils/install.js.map +1 -0
  71. package/dist/utils/prompts.d.ts +16 -0
  72. package/dist/utils/prompts.d.ts.map +1 -0
  73. package/dist/utils/prompts.js +180 -0
  74. package/dist/utils/prompts.js.map +1 -0
  75. package/dist/utils/renderFeatures.d.ts +18 -0
  76. package/dist/utils/renderFeatures.d.ts.map +1 -0
  77. package/dist/utils/renderFeatures.js +72 -0
  78. package/dist/utils/renderFeatures.js.map +1 -0
  79. package/dist/utils/renderTemplate.d.ts +6 -0
  80. package/dist/utils/renderTemplate.d.ts.map +1 -0
  81. package/dist/utils/renderTemplate.js +102 -0
  82. package/dist/utils/renderTemplate.js.map +1 -0
  83. package/dist/utils/sortDependencies.d.ts +6 -0
  84. package/dist/utils/sortDependencies.d.ts.map +1 -0
  85. package/dist/utils/sortDependencies.js +22 -0
  86. package/dist/utils/sortDependencies.js.map +1 -0
  87. package/dist/utils/viteConfigRender.d.ts +19 -0
  88. package/dist/utils/viteConfigRender.d.ts.map +1 -0
  89. package/dist/utils/viteConfigRender.js +180 -0
  90. package/dist/utils/viteConfigRender.js.map +1 -0
  91. package/package.json +93 -0
  92. package/templates/common/base/.env +7 -0
  93. package/templates/common/base/.env.development +5 -0
  94. package/templates/common/base/.env.production +5 -0
  95. package/templates/common/base/package.json +56 -0
  96. package/templates/common/base/pnpm-workspace.yaml +37 -0
  97. package/templates/common/base/scripts/build.mts +31 -0
  98. package/templates/common/base/src/apis/index.ts +8 -0
  99. package/templates/common/base/src/apis/request.ts +43 -0
  100. package/templates/common/base/src/apis/services/example.ts +40 -0
  101. package/templates/common/base/src/apis/services/user.ts +23 -0
  102. package/templates/common/base/src/apis/types/common.ts +28 -0
  103. package/templates/common/base/src/apis/types/example.ts +18 -0
  104. package/templates/common/base/src/apis/types/index.ts +7 -0
  105. package/templates/common/base/src/apis/types/user.ts +24 -0
  106. package/templates/common/base/src/assets/fonts/index.css +7 -0
  107. package/templates/common/base/src/assets/styles/base.scss +72 -0
  108. package/templates/common/base/src/assets/styles/custom.scss +7 -0
  109. package/templates/common/base/src/assets/styles/tailwind.scss +6 -0
  110. package/templates/common/base/src/constants/index.ts +29 -0
  111. package/templates/common/base/src/locales/lang/en.ts +30 -0
  112. package/templates/common/base/src/locales/lang/es.ts +30 -0
  113. package/templates/common/base/src/locales/lang/zh.ts +30 -0
  114. package/templates/common/base/src/utils/index.ts +83 -0
  115. package/templates/common/features/husky/.cz-config.cjs +35 -0
  116. package/templates/common/features/husky/.husky/commit-msg +9 -0
  117. package/templates/common/features/husky/.husky/install.mjs +6 -0
  118. package/templates/common/features/husky/.husky/pre-commit +4 -0
  119. package/templates/common/features/husky/commitlint.config.ts +32 -0
  120. package/templates/common/features/husky/package.json +28 -0
  121. package/templates/common/features/husky/pnpm-workspace.yaml +9 -0
  122. package/templates/react/base/env.d.ts +19 -0
  123. package/templates/react/base/index.html +14 -0
  124. package/templates/react/base/package.json +15 -0
  125. package/templates/react/base/pnpm-workspace.yaml +9 -0
  126. package/templates/react/base/src/App.tsx +18 -0
  127. package/templates/react/base/src/assets/styles/main.scss +8 -0
  128. package/templates/react/base/src/main.tsx.ejs +39 -0
  129. package/templates/react/base/src/pages/about/index.tsx +14 -0
  130. package/templates/react/base/src/pages/home/index.tsx +14 -0
  131. package/templates/react/base/src/router/index.tsx.ejs +28 -0
  132. package/templates/react/base/src/stores/user.ts +39 -0
  133. package/templates/react/base/tsconfig.app.json +17 -0
  134. package/templates/react/base/tsconfig.base.json +23 -0
  135. package/templates/react/base/tsconfig.json +12 -0
  136. package/templates/react/base/tsconfig.node.json +15 -0
  137. package/templates/react/base/vite.config.ts +52 -0
  138. package/templates/react/features/ant-design/package.json +7 -0
  139. package/templates/react/features/ant-design/pnpm-workspace.yaml +5 -0
  140. package/templates/react/features/eslint/eslint.config.ts +12 -0
  141. package/templates/react/features/eslint/package.json +7 -0
  142. package/templates/react/features/eslint/pnpm-workspace.yaml +6 -0
  143. package/templates/react/features/i18n/package.json +7 -0
  144. package/templates/react/features/i18n/pnpm-workspace.yaml +5 -0
  145. package/templates/react/features/i18n/src/locales/index.ts +20 -0
  146. package/templates/react/features/manualRoutes/src/router/routes.tsx +21 -0
  147. package/templates/react/features/pageRoutes/package.json +6 -0
  148. package/templates/react/features/pageRoutes/pnpm-workspace.yaml +4 -0
  149. package/templates/react/features/pageRoutes/vite.config.data.ts +10 -0
  150. package/templates/react/features/router/package.json +5 -0
  151. package/templates/react/features/router/pnpm-workspace.yaml +3 -0
  152. package/templates/react/features/sentry/package.json +7 -0
  153. package/templates/react/features/sentry/pnpm-workspace.yaml +5 -0
  154. package/templates/react/features/sentry/src/utils/sentry.ts +30 -0
  155. package/templates/react/features/sentry/vite.config.data.ts +23 -0
  156. package/templates/react/features/zustand/package.json +5 -0
  157. package/templates/react/features/zustand/pnpm-workspace.yaml +3 -0
  158. package/templates/react/features/zustand/src/stores/user.ts +19 -0
  159. package/templates/react/features/zustand/src/types/stores.ts +15 -0
  160. package/templates/vue/base/env.d.ts +27 -0
  161. package/templates/vue/base/index.html +14 -0
  162. package/templates/vue/base/package.json +13 -0
  163. package/templates/vue/base/pnpm-workspace.yaml +6 -0
  164. package/templates/vue/base/src/App.vue +13 -0
  165. package/templates/vue/base/src/assets/styles/element/index.scss +27 -0
  166. package/templates/vue/base/src/assets/styles/main.scss +9 -0
  167. package/templates/vue/base/src/components/SubMenu/index.ts +9 -0
  168. package/templates/vue/base/src/components/SubMenu/src/_types/index.ts +6 -0
  169. package/templates/vue/base/src/components/SubMenu/src/_types/props.ts +11 -0
  170. package/templates/vue/base/src/components/SubMenu/src/index.vue +24 -0
  171. package/templates/vue/base/src/directives/index.ts +36 -0
  172. package/templates/vue/base/src/layouts/AntDesign.vue +86 -0
  173. package/templates/vue/base/src/layouts/element.vue +81 -0
  174. package/templates/vue/base/src/layouts/index.ts +7 -0
  175. package/templates/vue/base/src/main.ts.ejs +100 -0
  176. package/templates/vue/base/src/pages/about/index.vue +31 -0
  177. package/templates/vue/base/src/pages/home/index.vue +31 -0
  178. package/templates/vue/base/src/router/index.ts.ejs +39 -0
  179. package/templates/vue/base/src/stores/index.ts +16 -0
  180. package/templates/vue/base/src/stores/modules/system.ts +52 -0
  181. package/templates/vue/base/src/stores/modules/user.ts +48 -0
  182. package/templates/vue/base/tsconfig.app.json +17 -0
  183. package/templates/vue/base/tsconfig.base.json +23 -0
  184. package/templates/vue/base/tsconfig.json +12 -0
  185. package/templates/vue/base/tsconfig.node.json +15 -0
  186. package/templates/vue/base/vite.config.ts +53 -0
  187. package/templates/vue/features/ant-design-vue/package.json +7 -0
  188. package/templates/vue/features/ant-design-vue/pnpm-workspace.yaml +5 -0
  189. package/templates/vue/features/element-plus/package.json +7 -0
  190. package/templates/vue/features/element-plus/pnpm-workspace.yaml +5 -0
  191. package/templates/vue/features/element-plus/vite.config.data.ts +15 -0
  192. package/templates/vue/features/eslint/eslint.config.ts +12 -0
  193. package/templates/vue/features/eslint/package.json +7 -0
  194. package/templates/vue/features/eslint/pnpm-workspace.yaml +6 -0
  195. package/templates/vue/features/i18n/package.json +5 -0
  196. package/templates/vue/features/i18n/pnpm-workspace.yaml +3 -0
  197. package/templates/vue/features/i18n/src/locales/index.ts +16 -0
  198. package/templates/vue/features/manualRoutes/src/router/layout.vue +10 -0
  199. package/templates/vue/features/manualRoutes/src/router/routes.ts +27 -0
  200. package/templates/vue/features/pageRoutes/package.json +5 -0
  201. package/templates/vue/features/pageRoutes/pnpm-workspace.yaml +4 -0
  202. package/templates/vue/features/pageRoutes/vite.config.data.ts +9 -0
  203. package/templates/vue/features/pinia/package.json +6 -0
  204. package/templates/vue/features/pinia/pnpm-workspace.yaml +4 -0
  205. package/templates/vue/features/pinia/src/stores/index.ts +8 -0
  206. package/templates/vue/features/pinia/src/stores/user.ts +36 -0
  207. package/templates/vue/features/qiankun/package.json +5 -0
  208. package/templates/vue/features/qiankun/pnpm-workspace.yaml +3 -0
  209. package/templates/vue/features/qiankun/src/qiankun/index.ts +56 -0
  210. package/templates/vue/features/router/package.json +5 -0
  211. package/templates/vue/features/router/pnpm-workspace.yaml +3 -0
  212. package/templates/vue/features/sentry/package.json +6 -0
  213. package/templates/vue/features/sentry/pnpm-workspace.yaml +4 -0
  214. package/templates/vue/features/sentry/src/utils/sentry.ts +33 -0
  215. package/templates/vue/features/sentry/vite.config.data.ts +23 -0
@@ -0,0 +1,7 @@
1
+ {
2
+ "dependencies": {
3
+ "@ant-design/icons-vue": "catalog:build",
4
+ "ant-design-vue": "catalog:build"
5
+ }
6
+ }
7
+
@@ -0,0 +1,5 @@
1
+ catalogs:
2
+ build:
3
+ "@ant-design/icons-vue": ^7.0.1
4
+ ant-design-vue: ^4.2.1
5
+
@@ -0,0 +1,7 @@
1
+ {
2
+ "dependencies": {
3
+ "@element-plus/icons-vue": "catalog:build",
4
+ "element-plus": "catalog:build"
5
+ }
6
+ }
7
+
@@ -0,0 +1,5 @@
1
+ catalogs:
2
+ build:
3
+ "@element-plus/icons-vue": ^2.3.1
4
+ element-plus: ^2.11.3
5
+
@@ -0,0 +1,15 @@
1
+ import type { ViteConfigData } from '../../../../src/types/viteConfig'
2
+
3
+ const data: ViteConfigData = {
4
+ css: {
5
+ additionalData: `additionalData: (source: string, filename: string) => {
6
+ if (filename.includes('assets/styles/element/index.scss')) {
7
+ return \`$namespace: '\${appCode || 'el'}';
8
+ \${source}\`
9
+ }
10
+ return source
11
+ },`,
12
+ },
13
+ }
14
+
15
+ export default data
@@ -0,0 +1,12 @@
1
+ import eslintConfig from '@moluoxixi/eslint-config'
2
+
3
+ export default eslintConfig({
4
+ vue: true,
5
+ typescript: true,
6
+ ignores: [],
7
+ rules: {
8
+ 'perfectionist/sort-imports': 'off',
9
+ 'jsonc/sort-keys': 'off',
10
+ },
11
+ })
12
+
@@ -0,0 +1,7 @@
1
+ {
2
+ "devDependencies": {
3
+ "@moluoxixi/eslint-config": "catalog:dev",
4
+ "eslint": "catalog:dev",
5
+ "eslint-plugin-format": "catalog:dev"
6
+ }
7
+ }
@@ -0,0 +1,6 @@
1
+ catalogs:
2
+ dev:
3
+ '@moluoxixi/eslint-config': latest
4
+ eslint: ^9.22.0
5
+ eslint-plugin-format: ^1.0.1
6
+
@@ -0,0 +1,5 @@
1
+ {
2
+ "dependencies": {
3
+ "vue-i18n": "catalog:build"
4
+ }
5
+ }
@@ -0,0 +1,3 @@
1
+ catalogs:
2
+ build:
3
+ vue-i18n: ^11.1.10
@@ -0,0 +1,16 @@
1
+ import { createI18n } from 'vue-i18n'
2
+
3
+ import en from './lang/en'
4
+ import zh from './lang/zh'
5
+
6
+ const i18n = createI18n({
7
+ legacy: false,
8
+ locale: localStorage.getItem('locale') || 'zh',
9
+ fallbackLocale: 'zh',
10
+ messages: {
11
+ zh,
12
+ en,
13
+ },
14
+ })
15
+
16
+ export default i18n
@@ -0,0 +1,10 @@
1
+ <script setup lang="ts">
2
+ /**
3
+ * 路由布局组件
4
+ */
5
+ </script>
6
+
7
+ <template>
8
+ <RouterView />
9
+ </template>
10
+
@@ -0,0 +1,27 @@
1
+ import Layout from './layout.vue'
2
+
3
+ export const routes = [
4
+ {
5
+ path: '/',
6
+ component: Layout,
7
+ redirect: '/home',
8
+ children: [
9
+ {
10
+ path: '/home',
11
+ name: 'Home',
12
+ component: () => import('@/pages/home/index.vue'),
13
+ meta: {
14
+ title: '首页',
15
+ },
16
+ },
17
+ {
18
+ path: '/about',
19
+ name: 'About',
20
+ component: () => import('@/pages/about/index.vue'),
21
+ meta: {
22
+ title: '关于',
23
+ },
24
+ },
25
+ ],
26
+ },
27
+ ]
@@ -0,0 +1,5 @@
1
+ {
2
+ "dependencies": {
3
+ "vite-plugin-pages": "catalog:build"
4
+ }
5
+ }
@@ -0,0 +1,4 @@
1
+ catalogs:
2
+ build:
3
+ vite-plugin-pages: ^0.32.5
4
+
@@ -0,0 +1,9 @@
1
+ import type { ViteConfigData } from '../../../../src/types/viteConfig'
2
+
3
+ const data: ViteConfigData = {
4
+ options: {
5
+ pageRoutes: true,
6
+ },
7
+ }
8
+
9
+ export default data
@@ -0,0 +1,6 @@
1
+ {
2
+ "dependencies": {
3
+ "pinia": "catalog:build",
4
+ "pinia-plugin-persistedstate": "catalog:build"
5
+ }
6
+ }
@@ -0,0 +1,4 @@
1
+ catalogs:
2
+ build:
3
+ pinia: ^2.3.0
4
+ pinia-plugin-persistedstate: ^4.2.0
@@ -0,0 +1,8 @@
1
+ import { createPinia } from 'pinia'
2
+ import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
3
+
4
+ export const store = createPinia()
5
+ store.use(piniaPluginPersistedstate)
6
+
7
+ export * from './user'
8
+
@@ -0,0 +1,36 @@
1
+ import type { UserInfoType } from '@/apis/types/user'
2
+
3
+ import { defineStore } from 'pinia'
4
+ import { ref } from 'vue'
5
+
6
+ export const useUserStore = defineStore(
7
+ 'user',
8
+ () => {
9
+ const token = ref('')
10
+ const userInfo = ref<UserInfoType | null>(null)
11
+
12
+ function setToken(value: string): void {
13
+ token.value = value
14
+ }
15
+
16
+ function setUserInfo(value: UserInfoType): void {
17
+ userInfo.value = value
18
+ }
19
+
20
+ function logout(): void {
21
+ token.value = ''
22
+ userInfo.value = null
23
+ }
24
+
25
+ return {
26
+ token,
27
+ userInfo,
28
+ setToken,
29
+ setUserInfo,
30
+ logout,
31
+ }
32
+ },
33
+ {
34
+ persist: true,
35
+ },
36
+ )
@@ -0,0 +1,5 @@
1
+ {
2
+ "dependencies": {
3
+ "vite-plugin-qiankun": "catalog:build"
4
+ }
5
+ }
@@ -0,0 +1,3 @@
1
+ catalogs:
2
+ build:
3
+ vite-plugin-qiankun: ^1.0.15
@@ -0,0 +1,56 @@
1
+ import type { App } from 'vue'
2
+ import type { Router } from 'vue-router'
3
+ import {
4
+ renderWithQiankun,
5
+ qiankunWindow,
6
+ } from 'vite-plugin-qiankun/dist/helper'
7
+
8
+ let app: App | null = null
9
+ let router: Router | null = null
10
+
11
+ interface QiankunProps {
12
+ container?: Element
13
+ [key: string]: unknown
14
+ }
15
+
16
+ interface RenderOptions {
17
+ createApp: () => App
18
+ createRouter: (qiankunName?: string) => Router
19
+ mountApp: (app: App, router: Router, container: string | Element) => void
20
+ }
21
+
22
+ export function setupQiankun(options: RenderOptions): void {
23
+ const { createApp, createRouter, mountApp } = options
24
+
25
+ renderWithQiankun({
26
+ mount(props: QiankunProps) {
27
+ app = createApp()
28
+ const qiankunName = qiankunWindow.__POWERED_BY_QIANKUN__
29
+ ? (qiankunWindow as { __INJECTED_PUBLIC_PATH_BY_QIANKUN__?: string }).__INJECTED_PUBLIC_PATH_BY_QIANKUN__?.split('/')[1]
30
+ : undefined
31
+ router = createRouter(qiankunName)
32
+ const container = props.container
33
+ ? props.container.querySelector('#app')!
34
+ : '#app'
35
+ mountApp(app, router, container)
36
+ },
37
+ bootstrap() {
38
+ console.log('[Qiankun] bootstrap')
39
+ },
40
+ unmount() {
41
+ if (app) {
42
+ app.unmount()
43
+ app = null
44
+ router = null
45
+ }
46
+ },
47
+ update() {
48
+ console.log('[Qiankun] update')
49
+ },
50
+ })
51
+ }
52
+
53
+ export function isQiankun(): boolean {
54
+ return qiankunWindow.__POWERED_BY_QIANKUN__ || false
55
+ }
56
+
@@ -0,0 +1,5 @@
1
+ {
2
+ "dependencies": {
3
+ "vue-router": "catalog:build"
4
+ }
5
+ }
@@ -0,0 +1,3 @@
1
+ catalogs:
2
+ build:
3
+ vue-router: ^4.5.0
@@ -0,0 +1,6 @@
1
+ {
2
+ "dependencies": {
3
+ "@sentry/vue": "catalog:build",
4
+ "@sentry/vite-plugin": "catalog:build"
5
+ }
6
+ }
@@ -0,0 +1,4 @@
1
+ catalogs:
2
+ build:
3
+ '@sentry/vue': ^9.27.0
4
+ '@sentry/vite-plugin': ^3.5.0
@@ -0,0 +1,33 @@
1
+ import type { App } from 'vue'
2
+ import type { Router } from 'vue-router'
3
+ import * as Sentry from '@sentry/vue'
4
+
5
+ interface SentryConfig {
6
+ dsn: string
7
+ environment?: string
8
+ release?: string
9
+ }
10
+
11
+ export function initSentry(app: App, router: Router, config: SentryConfig): void {
12
+ const { dsn, environment = 'production', release } = config
13
+
14
+ if (!dsn) {
15
+ console.warn('[Sentry] DSN is not configured, skipping initialization')
16
+ return
17
+ }
18
+
19
+ Sentry.init({
20
+ app,
21
+ dsn,
22
+ environment,
23
+ release,
24
+ integrations: [
25
+ Sentry.browserTracingIntegration({ router }),
26
+ Sentry.replayIntegration(),
27
+ ],
28
+ tracesSampleRate: 1.0,
29
+ replaysSessionSampleRate: 0.1,
30
+ replaysOnErrorSampleRate: 1.0,
31
+ })
32
+ }
33
+
@@ -0,0 +1,23 @@
1
+ import type { ViteConfigData } from '../../../../src/types/viteConfig'
2
+
3
+ const data: ViteConfigData = {
4
+ imports: [
5
+ 'import { sentryVitePlugin } from \'@sentry/vite-plugin\'',
6
+ ],
7
+ plugins: [
8
+ `viteEnv.VITE_SENTRY && mode === 'production' && sentryVitePlugin({
9
+ authToken: process.env.SENTRY_AUTH_TOKEN,
10
+ org: 'f1f562b9b82f',
11
+ project: 'javascript-vue',
12
+ sourcemaps: {
13
+ assets: './dist/**',
14
+ ignore: ['node_modules'],
15
+ },
16
+ release: {
17
+ name: viteEnv.VITE_APP_VERSION || 'unknown',
18
+ },
19
+ })`,
20
+ ],
21
+ }
22
+
23
+ export default data