@gx-design-vue/create-gx-cli 0.1.20 → 0.1.21
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/README.md +1 -4
- package/package.json +5 -3
- package/template-mobile-vant-cli/.editorconfig +19 -0
- package/template-mobile-vant-cli/.env +3 -0
- package/template-mobile-vant-cli/.env.development +17 -0
- package/template-mobile-vant-cli/.env.pro +28 -0
- package/template-mobile-vant-cli/.env.production +31 -0
- package/template-mobile-vant-cli/.eslintignore +15 -0
- package/template-mobile-vant-cli/.prettierignore +9 -0
- package/template-mobile-vant-cli/README.md +1 -0
- package/template-mobile-vant-cli/commitlint.config.cjs +32 -0
- package/template-mobile-vant-cli/config/default/defaultSettings.ts +70 -0
- package/template-mobile-vant-cli/config/default/network.ts +10 -0
- package/template-mobile-vant-cli/config/default/proxy.ts +50 -0
- package/template-mobile-vant-cli/config/default/theme.ts +3 -0
- package/template-mobile-vant-cli/config/index.ts +11 -0
- package/template-mobile-vant-cli/eslint.config.js +58 -0
- package/template-mobile-vant-cli/index.html +25 -0
- package/template-mobile-vant-cli/internal/vite-config/generate/generateModifyVars.ts +7 -0
- package/template-mobile-vant-cli/internal/vite-config/rollupOptions/index.ts +22 -0
- package/template-mobile-vant-cli/internal/vite-config/util/hash.ts +17 -0
- package/template-mobile-vant-cli/internal/vite-config/util/index.ts +132 -0
- package/template-mobile-vant-cli/internal/vite-config/vite/cdn.ts +65 -0
- package/template-mobile-vant-cli/internal/vite-config/vite/optimizer.ts +26 -0
- package/template-mobile-vant-cli/internal/vite-config/vite/plugin/appConfig.ts +91 -0
- package/template-mobile-vant-cli/internal/vite-config/vite/plugin/autoImport.ts +28 -0
- package/template-mobile-vant-cli/internal/vite-config/vite/plugin/compress.ts +31 -0
- package/template-mobile-vant-cli/internal/vite-config/vite/plugin/html.ts +32 -0
- package/template-mobile-vant-cli/internal/vite-config/vite/plugin/index.ts +74 -0
- package/template-mobile-vant-cli/internal/vite-config/vite/plugin/visualizer.ts +14 -0
- package/template-mobile-vant-cli/internal/vite-config/vite/plugin/viteNotice.ts +40 -0
- package/template-mobile-vant-cli/mock/config/permissions.ts +15 -0
- package/template-mobile-vant-cli/mock/config/user/id.ts +5 -0
- package/template-mobile-vant-cli/mock/config/user/index.ts +96 -0
- package/template-mobile-vant-cli/mock/index.ts +55 -0
- package/template-mobile-vant-cli/mock/routers/table/index.fake.ts +22 -0
- package/template-mobile-vant-cli/mock/routers/user/account.fake.ts +52 -0
- package/template-mobile-vant-cli/mock/routers/user/index.fake.ts +46 -0
- package/template-mobile-vant-cli/mock/utils/crypto.ts +21 -0
- package/template-mobile-vant-cli/mock/utils/table.ts +96 -0
- package/template-mobile-vant-cli/mock/utils/util.ts +91 -0
- package/template-mobile-vant-cli/package.json +74 -0
- package/template-mobile-vant-cli/public/css/default.css +54 -0
- package/template-mobile-vant-cli/public/favicon.ico +0 -0
- package/template-mobile-vant-cli/src/App.vue +8 -0
- package/template-mobile-vant-cli/src/assets/logo.png +0 -0
- package/template-mobile-vant-cli/src/components/PageContainer/ProSkeleton.tsx +29 -0
- package/template-mobile-vant-cli/src/components/PageContainer/index.tsx +207 -0
- package/template-mobile-vant-cli/src/components/PageContainer/style.module.less +17 -0
- package/template-mobile-vant-cli/src/components/TabsMenu/index.vue +45 -0
- package/template-mobile-vant-cli/src/core/gx-design/index.ts +7 -0
- package/template-mobile-vant-cli/src/core/index.ts +5 -0
- package/template-mobile-vant-cli/src/design/color.less +1 -0
- package/template-mobile-vant-cli/src/design/config.less +5 -0
- package/template-mobile-vant-cli/src/design/index.less +3 -0
- package/template-mobile-vant-cli/src/design/mixin.less +65 -0
- package/template-mobile-vant-cli/src/design/reset.less +39 -0
- package/template-mobile-vant-cli/src/design/root.less +3 -0
- package/template-mobile-vant-cli/src/design/vant/index.less +0 -0
- package/template-mobile-vant-cli/src/hooks/web/index.ts +5 -0
- package/template-mobile-vant-cli/src/hooks/web/usePageLoading.ts +56 -0
- package/template-mobile-vant-cli/src/layout/BasicLayout/index.vue +18 -0
- package/template-mobile-vant-cli/src/layout/BasicLayout/style.less +3 -0
- package/template-mobile-vant-cli/src/layout/UserLayout/index.vue +18 -0
- package/template-mobile-vant-cli/src/layout/UserLayout/style.module.less +36 -0
- package/template-mobile-vant-cli/src/main.ts +34 -0
- package/template-mobile-vant-cli/src/pages/Account/details.vue +13 -0
- package/template-mobile-vant-cli/src/pages/Account/index.vue +102 -0
- package/template-mobile-vant-cli/src/pages/Home/index.vue +71 -0
- package/template-mobile-vant-cli/src/pages/user/login/index.vue +76 -0
- package/template-mobile-vant-cli/src/plugins/dayjs/index.ts +3 -0
- package/template-mobile-vant-cli/src/plugins/index.ts +2 -0
- package/template-mobile-vant-cli/src/router/guard/index.ts +18 -0
- package/template-mobile-vant-cli/src/router/guard/permissions.ts +41 -0
- package/template-mobile-vant-cli/src/router/guard/stateGuard.ts +10 -0
- package/template-mobile-vant-cli/src/router/index.ts +31 -0
- package/template-mobile-vant-cli/src/router/routes/index.ts +46 -0
- package/template-mobile-vant-cli/src/router/routes/modules/dataSource.ts +32 -0
- package/template-mobile-vant-cli/src/services/index.ts +31 -0
- package/template-mobile-vant-cli/src/services/userCenter/account.ts +42 -0
- package/template-mobile-vant-cli/src/services/userCenter/index.ts +28 -0
- package/template-mobile-vant-cli/src/store/index.ts +20 -0
- package/template-mobile-vant-cli/src/store/modules/global.ts +23 -0
- package/template-mobile-vant-cli/src/store/modules/user.ts +107 -0
- package/template-mobile-vant-cli/src/utils/accessToken.ts +97 -0
- package/template-mobile-vant-cli/src/utils/crypto/index.ts +56 -0
- package/template-mobile-vant-cli/src/utils/env.ts +50 -0
- package/template-mobile-vant-cli/src/utils/pageTitle.ts +20 -0
- package/template-mobile-vant-cli/src/utils/request/XHR.ts +137 -0
- package/template-mobile-vant-cli/src/utils/request/axiosCancel.ts +69 -0
- package/template-mobile-vant-cli/src/utils/request/checkStatus.ts +25 -0
- package/template-mobile-vant-cli/src/utils/request/index.ts +155 -0
- package/template-mobile-vant-cli/src/utils/request/typings.ts +171 -0
- package/template-mobile-vant-cli/src/utils/storage.ts +215 -0
- package/template-mobile-vant-cli/src/utils/util.ts +27 -0
- package/template-mobile-vant-cli/src/utils/validate.ts +211 -0
- package/template-mobile-vant-cli/tsconfig.json +50 -0
- package/template-mobile-vant-cli/types/auto-imports.d.ts +80 -0
- package/template-mobile-vant-cli/types/components.d.ts +7 -0
- package/template-mobile-vant-cli/types/config.d.ts +56 -0
- package/template-mobile-vant-cli/types/global.d.ts +80 -0
- package/template-mobile-vant-cli/types/mock.d.ts +34 -0
- package/template-mobile-vant-cli/types/module.d.ts +61 -0
- package/template-mobile-vant-cli/types/response.d.ts +17 -0
- package/template-mobile-vant-cli/types/system.d.ts +58 -0
- package/template-mobile-vant-cli/types/vant-import.d.ts +25 -0
- package/template-mobile-vant-cli/unocss.config.ts +161 -0
- package/template-mobile-vant-cli/vite.config.ts +142 -0
- package/template-mobile-vant-html/README.md +4 -0
- package/template-mobile-vant-html/css/global.css +293 -0
- package/template-mobile-vant-html/css/global.css.map +1 -0
- package/template-mobile-vant-html/css/global.less +293 -0
- package/template-mobile-vant-html/css/index.css +20 -0
- package/template-mobile-vant-html/css/index.css.map +1 -0
- package/template-mobile-vant-html/css/index.less +21 -0
- package/template-mobile-vant-html/image/disconnected.svg +60 -0
- package/template-mobile-vant-html/image/empty.svg +52 -0
- package/template-mobile-vant-html/image/error.svg +53 -0
- package/template-mobile-vant-html/image/loading.svg +1 -0
- package/template-mobile-vant-html/index.html +91 -0
- package/template-mobile-vant-html/js/index.js +29 -0
- package/template-mobile-vant-html/js/plugin/day.min.js +1 -0
- package/template-mobile-vant-html/js/plugin/fastclick.js +730 -0
- package/template-mobile-vant-html/js/plugin/jquery.min.js +2 -0
- package/template-mobile-vant-html/js/plugin/rem.js +28 -0
- package/template-mobile-vant-html/js/utils/appUtil.js +70 -0
- package/template-mobile-vant-html/js/utils/config.js +3 -0
- package/template-mobile-vant-html/js/utils/request.js +61 -0
- package/template-mobile-vant-html/js/utils/utils.js +65 -0
- package/template-mobile-vant-html/js/utils/validate.js +292 -0
- package/template-vite-project/.env +5 -0
- package/template-vite-project/.env.development +5 -0
- package/template-vite-project/.env.pro +5 -0
- package/template-vite-project/.env.production +5 -0
- package/template-vite-project/README.md +5 -0
- package/template-vite-project/_gitignore +24 -0
- package/template-vite-project/index.html +46 -0
- package/template-vite-project/internal/proxy/index.ts +47 -0
- package/template-vite-project/internal/vite/generate/generateModifyVars.ts +9 -0
- package/template-vite-project/internal/vite/rollupOptions/index.ts +18 -0
- package/template-vite-project/internal/vite/util/hash.ts +17 -0
- package/template-vite-project/internal/vite/util/index.ts +132 -0
- package/template-vite-project/internal/vite/vite/cdn.ts +65 -0
- package/template-vite-project/internal/vite/vite/plugin/appConfig.ts +91 -0
- package/template-vite-project/internal/vite/vite/plugin/autoImport.ts +28 -0
- package/template-vite-project/internal/vite/vite/plugin/compress.ts +31 -0
- package/template-vite-project/internal/vite/vite/plugin/html.ts +24 -0
- package/template-vite-project/internal/vite/vite/plugin/index.ts +72 -0
- package/template-vite-project/internal/vite/vite/plugin/visualizer.ts +14 -0
- package/template-vite-project/internal/vite/vite/plugin/viteNotice.ts +40 -0
- package/template-vite-project/node_modules/.bin/cross-env +21 -0
- package/template-vite-project/node_modules/.bin/cross-env-shell +21 -0
- package/template-vite-project/node_modules/.bin/esbuild +21 -0
- package/template-vite-project/node_modules/.bin/jiti +21 -0
- package/template-vite-project/node_modules/.bin/lessc +21 -0
- package/template-vite-project/node_modules/.bin/parser +21 -0
- package/template-vite-project/node_modules/.bin/rollup +21 -0
- package/template-vite-project/node_modules/.bin/terser +21 -0
- package/template-vite-project/node_modules/.bin/tsc +21 -0
- package/template-vite-project/node_modules/.bin/tsserver +21 -0
- package/template-vite-project/node_modules/.bin/vite +21 -0
- package/template-vite-project/node_modules/.bin/vue-tsc +21 -0
- package/template-vite-project/node_modules/.bin/yaml +21 -0
- package/template-vite-project/package.json +38 -0
- package/template-vite-project/public/css/index.css +89 -0
- package/template-vite-project/public/css/normalize.css +396 -0
- package/template-vite-project/public/vite.svg +1 -0
- package/template-vite-project/src/App.vue +30 -0
- package/template-vite-project/src/assets/vue.svg +1 -0
- package/template-vite-project/src/components/HelloWorld.vue +41 -0
- package/template-vite-project/src/design/config.less +0 -0
- package/template-vite-project/src/design/index.less +0 -0
- package/template-vite-project/src/main.ts +14 -0
- package/template-vite-project/src/utils/env.ts +50 -0
- package/template-vite-project/tsconfig.app.json +59 -0
- package/template-vite-project/tsconfig.json +7 -0
- package/template-vite-project/tsconfig.node.json +28 -0
- package/template-vite-project/types/global.d.ts +33 -0
- package/template-vite-project/unocss.config.ts +208 -0
- package/template-vite-project/vite.config.ts +88 -0
@@ -0,0 +1,91 @@
|
|
1
|
+
import type { PluginOption } from 'vite'
|
2
|
+
import colors from 'picocolors'
|
3
|
+
import { readPackageJSON } from 'pkg-types'
|
4
|
+
|
5
|
+
import { getEnvConfig, rootPath } from '../../util'
|
6
|
+
import { createContentHash, strToHex } from '../../util/hash'
|
7
|
+
|
8
|
+
const GLOBAL_CONFIG_FILE_NAME = '_app.config.js'
|
9
|
+
const PLUGIN_NAME = 'app-config'
|
10
|
+
|
11
|
+
async function createAppConfigPlugin({
|
12
|
+
isBuild
|
13
|
+
}: {
|
14
|
+
isBuild: boolean;
|
15
|
+
}): Promise<PluginOption> {
|
16
|
+
let publicPath: string
|
17
|
+
let source: string
|
18
|
+
if (!isBuild) {
|
19
|
+
return {
|
20
|
+
name: PLUGIN_NAME
|
21
|
+
}
|
22
|
+
}
|
23
|
+
const { version = '' } = await readPackageJSON(rootPath)
|
24
|
+
|
25
|
+
return {
|
26
|
+
name: PLUGIN_NAME,
|
27
|
+
async configResolved(_config) {
|
28
|
+
const appTitle = _config?.env?.VITE_GLOB_APP_TITLE ?? ''
|
29
|
+
publicPath = _config.base
|
30
|
+
source = await getConfigSource(appTitle)
|
31
|
+
},
|
32
|
+
async transformIndexHtml(html) {
|
33
|
+
publicPath = publicPath.endsWith('/') ? publicPath : `${publicPath}/`
|
34
|
+
|
35
|
+
const appConfigSrc = `${
|
36
|
+
publicPath || '/'
|
37
|
+
}${GLOBAL_CONFIG_FILE_NAME}?v=${version}-${createContentHash(source)}`
|
38
|
+
|
39
|
+
return {
|
40
|
+
html,
|
41
|
+
tags: [
|
42
|
+
{
|
43
|
+
tag: 'script',
|
44
|
+
attrs: {
|
45
|
+
src: appConfigSrc
|
46
|
+
}
|
47
|
+
}
|
48
|
+
]
|
49
|
+
}
|
50
|
+
},
|
51
|
+
async generateBundle() {
|
52
|
+
try {
|
53
|
+
this.emitFile({
|
54
|
+
type: 'asset',
|
55
|
+
fileName: GLOBAL_CONFIG_FILE_NAME,
|
56
|
+
source
|
57
|
+
})
|
58
|
+
} catch (error) {
|
59
|
+
console.log(
|
60
|
+
colors.red(`configuration file configuration file failed to package:\n${error}`)
|
61
|
+
)
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
|
67
|
+
/**
|
68
|
+
* Get the configuration file variable name
|
69
|
+
* @param env
|
70
|
+
*/
|
71
|
+
const getVariableName = (title: string) => {
|
72
|
+
return `__PRODUCTION__${strToHex(title) || '__APP'}__CONF__`.toUpperCase().replace(/\s/g, '')
|
73
|
+
}
|
74
|
+
|
75
|
+
async function getConfigSource(appTitle: string) {
|
76
|
+
const config = await getEnvConfig()
|
77
|
+
const variableName = getVariableName(appTitle)
|
78
|
+
const windowVariable = `window.${variableName}`
|
79
|
+
// Ensure that the variable will not be modified
|
80
|
+
let source = `${windowVariable}=${JSON.stringify(config)};`
|
81
|
+
source += `
|
82
|
+
Object.freeze(${windowVariable});
|
83
|
+
Object.defineProperty(window, "${variableName}", {
|
84
|
+
configurable: false,
|
85
|
+
writable: false,
|
86
|
+
});
|
87
|
+
`.replace(/\s/g, '')
|
88
|
+
return source
|
89
|
+
}
|
90
|
+
|
91
|
+
export { createAppConfigPlugin }
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import autoImport from 'unplugin-auto-import/vite'
|
2
|
+
import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers'
|
3
|
+
import Components from 'unplugin-vue-components/vite'
|
4
|
+
import { defaultSettings } from '../../../../config'
|
5
|
+
|
6
|
+
const importsModules: any[] = [ 'vue', 'vue-router' ]
|
7
|
+
|
8
|
+
const { modules = [], use } = defaultSettings.cdn
|
9
|
+
|
10
|
+
export function createAutoImport() {
|
11
|
+
const useCdnModules = use && modules.some(el => importsModules.includes(el.name))
|
12
|
+
return [
|
13
|
+
autoImport({
|
14
|
+
include: [
|
15
|
+
/\.[tj]sx?$/, // .ts, .tsx, .js, .jsx
|
16
|
+
/\.vue$/, /\.vue\?vue/, // .vue
|
17
|
+
/\.md$/ // .md
|
18
|
+
],
|
19
|
+
imports: useCdnModules ? [] : importsModules,
|
20
|
+
dts: 'types/auto-imports.d.ts',
|
21
|
+
dirs: [ 'src/store' ]
|
22
|
+
}),
|
23
|
+
Components({
|
24
|
+
resolvers: [ AntDesignVueResolver({ importStyle: false, resolveIcons: true }) ],
|
25
|
+
dts: 'types/ant-design-import.d.ts'
|
26
|
+
})
|
27
|
+
]
|
28
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import type { Plugin } from 'vite'
|
2
|
+
|
3
|
+
import compressPlugin from 'vite-plugin-compression'
|
4
|
+
|
5
|
+
export function configCompressPlugin(
|
6
|
+
compress: 'gzip' | 'brotli' | 'none',
|
7
|
+
deleteOriginFile = false
|
8
|
+
): Plugin | Plugin[] {
|
9
|
+
const compressList = compress.split(',')
|
10
|
+
|
11
|
+
const plugins: Plugin[] = []
|
12
|
+
|
13
|
+
if (compressList.includes('gzip')) {
|
14
|
+
plugins.push(
|
15
|
+
compressPlugin({
|
16
|
+
ext: '.gz',
|
17
|
+
deleteOriginFile
|
18
|
+
})
|
19
|
+
)
|
20
|
+
}
|
21
|
+
if (compressList.includes('brotli')) {
|
22
|
+
plugins.push(
|
23
|
+
compressPlugin({
|
24
|
+
ext: '.br',
|
25
|
+
algorithm: 'brotliCompress',
|
26
|
+
deleteOriginFile
|
27
|
+
})
|
28
|
+
)
|
29
|
+
}
|
30
|
+
return plugins
|
31
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import type { PluginOption } from 'vite'
|
2
|
+
import { createHtmlPlugin } from 'vite-plugin-html'
|
3
|
+
|
4
|
+
import { defaultSettings } from '../../../../config'
|
5
|
+
import pkg from '../../../../package.json'
|
6
|
+
import cdnModules from '../cdn'
|
7
|
+
|
8
|
+
const { cdn, system } = defaultSettings
|
9
|
+
|
10
|
+
export function configHtmlPlugin(_: ViteEnv, isBuild: boolean) {
|
11
|
+
const htmlPlugin: PluginOption[] = createHtmlPlugin({
|
12
|
+
minify: isBuild,
|
13
|
+
inject: {
|
14
|
+
// Inject data into ejs template
|
15
|
+
data: {
|
16
|
+
VUE_APP_TITLE: system.title,
|
17
|
+
VUE_APP_VERSION: pkg.version,
|
18
|
+
injectScript: cdn.use && isBuild ? cdnModules.map(e => e.js).filter(el => el) : [],
|
19
|
+
injectLink: cdn.use && isBuild ? cdnModules.map(e => e.css).filter(el => el) : [],
|
20
|
+
}
|
21
|
+
},
|
22
|
+
})
|
23
|
+
return htmlPlugin
|
24
|
+
}
|
@@ -0,0 +1,72 @@
|
|
1
|
+
import type { PluginOption } from 'vite'
|
2
|
+
import legacy from '@vitejs/plugin-legacy'
|
3
|
+
import vue from '@vitejs/plugin-vue'
|
4
|
+
import vueJsx from '@vitejs/plugin-vue-jsx'
|
5
|
+
import Unocss from 'unocss/vite'
|
6
|
+
import TurboConsole from 'unplugin-turbo-console/vite'
|
7
|
+
import { vitePluginFakeServer } from 'vite-plugin-fake-server'
|
8
|
+
import DevTools from 'vite-plugin-vue-devtools'
|
9
|
+
|
10
|
+
import { createAppConfigPlugin } from './appConfig'
|
11
|
+
import { createAutoImport } from './autoImport'
|
12
|
+
import { configCompressPlugin } from './compress'
|
13
|
+
import { configHtmlPlugin } from './html'
|
14
|
+
import { configVisualizerConfig } from './visualizer'
|
15
|
+
import viteNotice from './viteNotice'
|
16
|
+
|
17
|
+
export async function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) {
|
18
|
+
const {
|
19
|
+
VITE_APP_ENV,
|
20
|
+
VITE_USE_MOCK,
|
21
|
+
VITE_LEGACY,
|
22
|
+
VITE_BUILD_COMPRESS,
|
23
|
+
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE
|
24
|
+
} = viteEnv
|
25
|
+
|
26
|
+
const isDev = VITE_APP_ENV === 'dev'
|
27
|
+
|
28
|
+
const vitePlugins: PluginOption[] = [
|
29
|
+
// have to
|
30
|
+
vue(),
|
31
|
+
// have to
|
32
|
+
vueJsx()
|
33
|
+
]
|
34
|
+
|
35
|
+
// vite-plugin-app-info
|
36
|
+
vitePlugins.push(await createAppConfigPlugin({ isBuild }))
|
37
|
+
// vite-plugin-Unocss
|
38
|
+
vitePlugins.push(Unocss())
|
39
|
+
|
40
|
+
vitePlugins.push(DevTools())
|
41
|
+
|
42
|
+
// unplugin-turbo-console
|
43
|
+
isDev && vitePlugins.push(TurboConsole())
|
44
|
+
// @vitejs/plugin-legacy
|
45
|
+
VITE_LEGACY && isBuild && vitePlugins.push(legacy())
|
46
|
+
// vite-plugin-html
|
47
|
+
vitePlugins.push(configHtmlPlugin(viteEnv, isBuild))
|
48
|
+
// vite-plugin-build-info
|
49
|
+
vitePlugins.push(await viteNotice())
|
50
|
+
// vite-plugin-mock
|
51
|
+
const useMock = isDev || VITE_USE_MOCK
|
52
|
+
useMock && vitePlugins.push(vitePluginFakeServer({
|
53
|
+
include: 'mock',
|
54
|
+
enableProd: VITE_USE_MOCK
|
55
|
+
}))
|
56
|
+
|
57
|
+
// rollup-plugin-visualizer
|
58
|
+
vitePlugins.push(configVisualizerConfig())
|
59
|
+
|
60
|
+
// unplugin-auto-import/vite
|
61
|
+
vitePlugins.push(createAutoImport())
|
62
|
+
|
63
|
+
// The following plugins only work in the production environment
|
64
|
+
if (isBuild) {
|
65
|
+
// rollup-plugin-gzip
|
66
|
+
vitePlugins.push(
|
67
|
+
configCompressPlugin(VITE_BUILD_COMPRESS, VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE)
|
68
|
+
)
|
69
|
+
}
|
70
|
+
|
71
|
+
return vitePlugins
|
72
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { visualizer } from 'rollup-plugin-visualizer'
|
2
|
+
import { isReportMode } from '../../util'
|
3
|
+
|
4
|
+
export function configVisualizerConfig() {
|
5
|
+
if (isReportMode()) {
|
6
|
+
return visualizer({
|
7
|
+
filename: './node_modules/.cache/visualizer/stats.html',
|
8
|
+
open: true,
|
9
|
+
gzipSize: true,
|
10
|
+
brotliSize: true
|
11
|
+
})
|
12
|
+
}
|
13
|
+
return []
|
14
|
+
}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import type { Plugin } from 'vite'
|
2
|
+
import chalk from 'chalk'
|
3
|
+
import { readPackageJSON } from 'pkg-types'
|
4
|
+
import { defaultSettings } from '../../../../config'
|
5
|
+
import { getPackageSize, getRootPath, rootPath } from '../../util'
|
6
|
+
|
7
|
+
const { build } = defaultSettings
|
8
|
+
|
9
|
+
export default async function viteNotice(): Promise<Plugin> {
|
10
|
+
let config: { command: string }
|
11
|
+
const { name = '' } = await readPackageJSON(rootPath)
|
12
|
+
|
13
|
+
return {
|
14
|
+
name: 'vite:notice',
|
15
|
+
configResolved(resolvedConfig) {
|
16
|
+
config = resolvedConfig
|
17
|
+
},
|
18
|
+
buildStart() {
|
19
|
+
console.log(
|
20
|
+
chalk.bold(
|
21
|
+
chalk.green(
|
22
|
+
`👏Welcome to use ${chalk.blue(
|
23
|
+
'[gx-design-pro]'
|
24
|
+
)}, If you feel good, remember to click on the link below to give a star https://github.com/gx12358/vue3-antd-admin`
|
25
|
+
)
|
26
|
+
)
|
27
|
+
)
|
28
|
+
},
|
29
|
+
closeBundle() {
|
30
|
+
if (config.command === 'build') {
|
31
|
+
getPackageSize({
|
32
|
+
folder: getRootPath(build.outputDir),
|
33
|
+
callBack: (size: string) => {
|
34
|
+
console.log(chalk.bold(chalk.green(`✨ ${chalk.blue(`[${name}]`)} all build successfully, Total files ${size}`)))
|
35
|
+
}
|
36
|
+
})
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
3
|
+
|
4
|
+
case `uname` in
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
8
|
+
fi
|
9
|
+
;;
|
10
|
+
esac
|
11
|
+
|
12
|
+
if [ -z "$NODE_PATH" ]; then
|
13
|
+
export NODE_PATH="/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/cross-env@10.0.0/node_modules/cross-env/dist/bin/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/cross-env@10.0.0/node_modules/cross-env/dist/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/cross-env@10.0.0/node_modules/cross-env/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/cross-env@10.0.0/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/node_modules"
|
14
|
+
else
|
15
|
+
export NODE_PATH="/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/cross-env@10.0.0/node_modules/cross-env/dist/bin/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/cross-env@10.0.0/node_modules/cross-env/dist/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/cross-env@10.0.0/node_modules/cross-env/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/cross-env@10.0.0/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/node_modules:$NODE_PATH"
|
16
|
+
fi
|
17
|
+
if [ -x "$basedir/node" ]; then
|
18
|
+
exec "$basedir/node" "$basedir/../cross-env/dist/bin/cross-env.js" "$@"
|
19
|
+
else
|
20
|
+
exec node "$basedir/../cross-env/dist/bin/cross-env.js" "$@"
|
21
|
+
fi
|
@@ -0,0 +1,21 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
3
|
+
|
4
|
+
case `uname` in
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
8
|
+
fi
|
9
|
+
;;
|
10
|
+
esac
|
11
|
+
|
12
|
+
if [ -z "$NODE_PATH" ]; then
|
13
|
+
export NODE_PATH="/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/cross-env@10.0.0/node_modules/cross-env/dist/bin/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/cross-env@10.0.0/node_modules/cross-env/dist/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/cross-env@10.0.0/node_modules/cross-env/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/cross-env@10.0.0/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/node_modules"
|
14
|
+
else
|
15
|
+
export NODE_PATH="/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/cross-env@10.0.0/node_modules/cross-env/dist/bin/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/cross-env@10.0.0/node_modules/cross-env/dist/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/cross-env@10.0.0/node_modules/cross-env/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/cross-env@10.0.0/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/node_modules:$NODE_PATH"
|
16
|
+
fi
|
17
|
+
if [ -x "$basedir/node" ]; then
|
18
|
+
exec "$basedir/node" "$basedir/../cross-env/dist/bin/cross-env-shell.js" "$@"
|
19
|
+
else
|
20
|
+
exec node "$basedir/../cross-env/dist/bin/cross-env-shell.js" "$@"
|
21
|
+
fi
|
@@ -0,0 +1,21 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
3
|
+
|
4
|
+
case `uname` in
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
8
|
+
fi
|
9
|
+
;;
|
10
|
+
esac
|
11
|
+
|
12
|
+
if [ -z "$NODE_PATH" ]; then
|
13
|
+
export NODE_PATH="/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/esbuild@0.25.9/node_modules/esbuild/bin/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/esbuild@0.25.9/node_modules/esbuild/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/esbuild@0.25.9/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/node_modules"
|
14
|
+
else
|
15
|
+
export NODE_PATH="/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/esbuild@0.25.9/node_modules/esbuild/bin/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/esbuild@0.25.9/node_modules/esbuild/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/esbuild@0.25.9/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/node_modules:$NODE_PATH"
|
16
|
+
fi
|
17
|
+
if [ -x "$basedir/node" ]; then
|
18
|
+
exec "$basedir/node" "$basedir/../../../../../../node_modules/.pnpm/esbuild@0.25.9/node_modules/esbuild/bin/esbuild" "$@"
|
19
|
+
else
|
20
|
+
exec node "$basedir/../../../../../../node_modules/.pnpm/esbuild@0.25.9/node_modules/esbuild/bin/esbuild" "$@"
|
21
|
+
fi
|
@@ -0,0 +1,21 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
3
|
+
|
4
|
+
case `uname` in
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
8
|
+
fi
|
9
|
+
;;
|
10
|
+
esac
|
11
|
+
|
12
|
+
if [ -z "$NODE_PATH" ]; then
|
13
|
+
export NODE_PATH="/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/jiti@2.5.1/node_modules/jiti/lib/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/jiti@2.5.1/node_modules/jiti/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/jiti@2.5.1/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/node_modules"
|
14
|
+
else
|
15
|
+
export NODE_PATH="/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/jiti@2.5.1/node_modules/jiti/lib/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/jiti@2.5.1/node_modules/jiti/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/jiti@2.5.1/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/node_modules:$NODE_PATH"
|
16
|
+
fi
|
17
|
+
if [ -x "$basedir/node" ]; then
|
18
|
+
exec "$basedir/node" "$basedir/../../../../../../node_modules/.pnpm/jiti@2.5.1/node_modules/jiti/lib/jiti-cli.mjs" "$@"
|
19
|
+
else
|
20
|
+
exec node "$basedir/../../../../../../node_modules/.pnpm/jiti@2.5.1/node_modules/jiti/lib/jiti-cli.mjs" "$@"
|
21
|
+
fi
|
@@ -0,0 +1,21 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
3
|
+
|
4
|
+
case `uname` in
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
8
|
+
fi
|
9
|
+
;;
|
10
|
+
esac
|
11
|
+
|
12
|
+
if [ -z "$NODE_PATH" ]; then
|
13
|
+
export NODE_PATH="/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/less@4.4.0/node_modules/less/bin/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/less@4.4.0/node_modules/less/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/less@4.4.0/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/node_modules"
|
14
|
+
else
|
15
|
+
export NODE_PATH="/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/less@4.4.0/node_modules/less/bin/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/less@4.4.0/node_modules/less/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/less@4.4.0/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/node_modules:$NODE_PATH"
|
16
|
+
fi
|
17
|
+
if [ -x "$basedir/node" ]; then
|
18
|
+
exec "$basedir/node" "$basedir/../less/bin/lessc" "$@"
|
19
|
+
else
|
20
|
+
exec node "$basedir/../less/bin/lessc" "$@"
|
21
|
+
fi
|
@@ -0,0 +1,21 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
3
|
+
|
4
|
+
case `uname` in
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
8
|
+
fi
|
9
|
+
;;
|
10
|
+
esac
|
11
|
+
|
12
|
+
if [ -z "$NODE_PATH" ]; then
|
13
|
+
export NODE_PATH="/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/@babel+parser@7.28.3/node_modules/@babel/parser/bin/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/@babel+parser@7.28.3/node_modules/@babel/parser/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/@babel+parser@7.28.3/node_modules/@babel/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/@babel+parser@7.28.3/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/node_modules"
|
14
|
+
else
|
15
|
+
export NODE_PATH="/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/@babel+parser@7.28.3/node_modules/@babel/parser/bin/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/@babel+parser@7.28.3/node_modules/@babel/parser/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/@babel+parser@7.28.3/node_modules/@babel/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/@babel+parser@7.28.3/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/node_modules:$NODE_PATH"
|
16
|
+
fi
|
17
|
+
if [ -x "$basedir/node" ]; then
|
18
|
+
exec "$basedir/node" "$basedir/../../../../../../node_modules/.pnpm/@babel+parser@7.28.3/node_modules/@babel/parser/bin/babel-parser.js" "$@"
|
19
|
+
else
|
20
|
+
exec node "$basedir/../../../../../../node_modules/.pnpm/@babel+parser@7.28.3/node_modules/@babel/parser/bin/babel-parser.js" "$@"
|
21
|
+
fi
|
@@ -0,0 +1,21 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
3
|
+
|
4
|
+
case `uname` in
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
8
|
+
fi
|
9
|
+
;;
|
10
|
+
esac
|
11
|
+
|
12
|
+
if [ -z "$NODE_PATH" ]; then
|
13
|
+
export NODE_PATH="/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/rollup@4.46.2/node_modules/rollup/dist/bin/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/rollup@4.46.2/node_modules/rollup/dist/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/rollup@4.46.2/node_modules/rollup/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/rollup@4.46.2/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/node_modules"
|
14
|
+
else
|
15
|
+
export NODE_PATH="/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/rollup@4.46.2/node_modules/rollup/dist/bin/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/rollup@4.46.2/node_modules/rollup/dist/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/rollup@4.46.2/node_modules/rollup/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/rollup@4.46.2/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/node_modules:$NODE_PATH"
|
16
|
+
fi
|
17
|
+
if [ -x "$basedir/node" ]; then
|
18
|
+
exec "$basedir/node" "$basedir/../../../../../../node_modules/.pnpm/rollup@4.46.2/node_modules/rollup/dist/bin/rollup" "$@"
|
19
|
+
else
|
20
|
+
exec node "$basedir/../../../../../../node_modules/.pnpm/rollup@4.46.2/node_modules/rollup/dist/bin/rollup" "$@"
|
21
|
+
fi
|
@@ -0,0 +1,21 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
3
|
+
|
4
|
+
case `uname` in
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
8
|
+
fi
|
9
|
+
;;
|
10
|
+
esac
|
11
|
+
|
12
|
+
if [ -z "$NODE_PATH" ]; then
|
13
|
+
export NODE_PATH="/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/terser@5.43.1/node_modules/terser/bin/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/terser@5.43.1/node_modules/terser/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/terser@5.43.1/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/node_modules"
|
14
|
+
else
|
15
|
+
export NODE_PATH="/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/terser@5.43.1/node_modules/terser/bin/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/terser@5.43.1/node_modules/terser/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/terser@5.43.1/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/node_modules:$NODE_PATH"
|
16
|
+
fi
|
17
|
+
if [ -x "$basedir/node" ]; then
|
18
|
+
exec "$basedir/node" "$basedir/../../../../../../node_modules/.pnpm/terser@5.43.1/node_modules/terser/bin/terser" "$@"
|
19
|
+
else
|
20
|
+
exec node "$basedir/../../../../../../node_modules/.pnpm/terser@5.43.1/node_modules/terser/bin/terser" "$@"
|
21
|
+
fi
|
@@ -0,0 +1,21 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
3
|
+
|
4
|
+
case `uname` in
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
8
|
+
fi
|
9
|
+
;;
|
10
|
+
esac
|
11
|
+
|
12
|
+
if [ -z "$NODE_PATH" ]; then
|
13
|
+
export NODE_PATH="/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/typescript@5.8.3/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/node_modules"
|
14
|
+
else
|
15
|
+
export NODE_PATH="/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/typescript@5.8.3/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/node_modules:$NODE_PATH"
|
16
|
+
fi
|
17
|
+
if [ -x "$basedir/node" ]; then
|
18
|
+
exec "$basedir/node" "$basedir/../typescript/bin/tsc" "$@"
|
19
|
+
else
|
20
|
+
exec node "$basedir/../typescript/bin/tsc" "$@"
|
21
|
+
fi
|
@@ -0,0 +1,21 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
3
|
+
|
4
|
+
case `uname` in
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
8
|
+
fi
|
9
|
+
;;
|
10
|
+
esac
|
11
|
+
|
12
|
+
if [ -z "$NODE_PATH" ]; then
|
13
|
+
export NODE_PATH="/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/typescript@5.8.3/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/node_modules"
|
14
|
+
else
|
15
|
+
export NODE_PATH="/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/typescript@5.8.3/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/node_modules:$NODE_PATH"
|
16
|
+
fi
|
17
|
+
if [ -x "$basedir/node" ]; then
|
18
|
+
exec "$basedir/node" "$basedir/../typescript/bin/tsserver" "$@"
|
19
|
+
else
|
20
|
+
exec node "$basedir/../typescript/bin/tsserver" "$@"
|
21
|
+
fi
|
@@ -0,0 +1,21 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
3
|
+
|
4
|
+
case `uname` in
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
8
|
+
fi
|
9
|
+
;;
|
10
|
+
esac
|
11
|
+
|
12
|
+
if [ -z "$NODE_PATH" ]; then
|
13
|
+
export NODE_PATH="/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/vite@7.1.2_@types+node@24.3.0_jiti@2.5.1_less@4.4.0_terser@5.43.1_yaml@2.8.1/node_modules/vite/bin/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/vite@7.1.2_@types+node@24.3.0_jiti@2.5.1_less@4.4.0_terser@5.43.1_yaml@2.8.1/node_modules/vite/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/vite@7.1.2_@types+node@24.3.0_jiti@2.5.1_less@4.4.0_terser@5.43.1_yaml@2.8.1/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/node_modules"
|
14
|
+
else
|
15
|
+
export NODE_PATH="/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/vite@7.1.2_@types+node@24.3.0_jiti@2.5.1_less@4.4.0_terser@5.43.1_yaml@2.8.1/node_modules/vite/bin/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/vite@7.1.2_@types+node@24.3.0_jiti@2.5.1_less@4.4.0_terser@5.43.1_yaml@2.8.1/node_modules/vite/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/vite@7.1.2_@types+node@24.3.0_jiti@2.5.1_less@4.4.0_terser@5.43.1_yaml@2.8.1/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/node_modules:$NODE_PATH"
|
16
|
+
fi
|
17
|
+
if [ -x "$basedir/node" ]; then
|
18
|
+
exec "$basedir/node" "$basedir/../vite/bin/vite.js" "$@"
|
19
|
+
else
|
20
|
+
exec node "$basedir/../vite/bin/vite.js" "$@"
|
21
|
+
fi
|
@@ -0,0 +1,21 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
3
|
+
|
4
|
+
case `uname` in
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
8
|
+
fi
|
9
|
+
;;
|
10
|
+
esac
|
11
|
+
|
12
|
+
if [ -z "$NODE_PATH" ]; then
|
13
|
+
export NODE_PATH="/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/vue-tsc@3.0.5_typescript@5.8.3/node_modules/vue-tsc/bin/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/vue-tsc@3.0.5_typescript@5.8.3/node_modules/vue-tsc/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/vue-tsc@3.0.5_typescript@5.8.3/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/node_modules"
|
14
|
+
else
|
15
|
+
export NODE_PATH="/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/vue-tsc@3.0.5_typescript@5.8.3/node_modules/vue-tsc/bin/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/vue-tsc@3.0.5_typescript@5.8.3/node_modules/vue-tsc/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/vue-tsc@3.0.5_typescript@5.8.3/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/node_modules:$NODE_PATH"
|
16
|
+
fi
|
17
|
+
if [ -x "$basedir/node" ]; then
|
18
|
+
exec "$basedir/node" "$basedir/../vue-tsc/bin/vue-tsc.js" "$@"
|
19
|
+
else
|
20
|
+
exec node "$basedir/../vue-tsc/bin/vue-tsc.js" "$@"
|
21
|
+
fi
|
@@ -0,0 +1,21 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
3
|
+
|
4
|
+
case `uname` in
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
8
|
+
fi
|
9
|
+
;;
|
10
|
+
esac
|
11
|
+
|
12
|
+
if [ -z "$NODE_PATH" ]; then
|
13
|
+
export NODE_PATH="/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/yaml@2.8.1/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/node_modules"
|
14
|
+
else
|
15
|
+
export NODE_PATH="/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/yaml@2.8.1/node_modules:/Users/gaoxiang/Documents/工作/工作项目/gx12358/vue/github/pro-components-vue-v2/node_modules/.pnpm/node_modules:$NODE_PATH"
|
16
|
+
fi
|
17
|
+
if [ -x "$basedir/node" ]; then
|
18
|
+
exec "$basedir/node" "$basedir/../../../../../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/bin.mjs" "$@"
|
19
|
+
else
|
20
|
+
exec node "$basedir/../../../../../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/bin.mjs" "$@"
|
21
|
+
fi
|