@moluoxixi/create-app 2.0.420 → 2.0.425
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 +1 -1
- package/templates/common/base/src/assets/styles/base.scss +23 -54
- package/templates/common/base/src/assets/styles/custom.scss +19 -5
- package/templates/common/base/src/assets/styles/main.scss +8 -0
- package/templates/common/base/src/assets/styles/tailwind.scss +3 -5
- package/templates/common/base/vite.config.ts +1 -3
- package/templates/common/features/eslint/eslint.config.ts +20 -0
- package/templates/react/base/package.json +0 -2
- package/templates/react/micro-frontends/qiankun/base/package.json +1 -3
- package/templates/vue/base/package.json +0 -2
- package/templates/vue/{base → features/element-plus}/src/assets/styles/custom.scss +0 -20
- package/templates/vue/features/element-plus/src/assets/styles/element.scss +27 -0
- package/templates/vue/features/element-plus/src/assets/styles/main.scss +9 -0
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/vite +4 -4
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/vite.CMD +4 -4
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/vite.ps1 +6 -6
- package/templates/vue/micro-frontends/qiankun/base/package.json +1 -3
- package/templates/vue/micro-frontends/qiankun/features/element-plus/src/assets/styles/base.scss +69 -0
- package/templates/vue/micro-frontends/qiankun/features/element-plus/src/assets/styles/custom.scss +20 -0
- package/templates/vue/micro-frontends/qiankun/features/element-plus/src/assets/styles/main.scss +9 -0
- package/templates/vue/micro-frontends/qiankun/features/element-plus/src/assets/styles/tailwind.scss +3 -0
- package/templates/react/base/src/assets/styles/main.scss +0 -8
- package/templates/react/features/eslint/eslint.config.ts +0 -11
- package/templates/react/micro-frontends/qiankun/base/vite.config.ts +0 -58
- package/templates/vue/base/src/assets/styles/main.scss +0 -8
- package/templates/vue/features/eslint/eslint.config.ts +0 -11
- package/templates/vue/features/eslint/node_modules/.bin/browserslist +0 -17
- package/templates/vue/features/eslint/node_modules/.bin/browserslist.CMD +0 -12
- package/templates/vue/features/eslint/node_modules/.bin/browserslist.ps1 +0 -41
- package/templates/vue/features/eslint/node_modules/.bin/eslint +0 -17
- package/templates/vue/features/eslint/node_modules/.bin/eslint.CMD +0 -12
- package/templates/vue/features/eslint/node_modules/.bin/eslint.ps1 +0 -41
- package/templates/vue/features/eslint/node_modules/.bin/jiti +0 -17
- package/templates/vue/features/eslint/node_modules/.bin/jiti.CMD +0 -12
- package/templates/vue/features/eslint/node_modules/.bin/jiti.ps1 +0 -41
- package/templates/vue/features/eslint/node_modules/.bin/tsc +0 -17
- package/templates/vue/features/eslint/node_modules/.bin/tsc.CMD +0 -12
- package/templates/vue/features/eslint/node_modules/.bin/tsc.ps1 +0 -41
- package/templates/vue/features/eslint/node_modules/.bin/tsserver +0 -17
- package/templates/vue/features/eslint/node_modules/.bin/tsserver.CMD +0 -12
- package/templates/vue/features/eslint/node_modules/.bin/tsserver.ps1 +0 -41
- package/templates/vue/features/eslint/package.json +0 -7
- package/templates/vue/micro-frontends/qiankun/base/vite.config.ts +0 -59
- /package/templates/{react → common}/features/eslint/node_modules/.bin/browserslist +0 -0
- /package/templates/{react → common}/features/eslint/node_modules/.bin/browserslist.CMD +0 -0
- /package/templates/{react → common}/features/eslint/node_modules/.bin/browserslist.ps1 +0 -0
- /package/templates/{react → common}/features/eslint/node_modules/.bin/eslint +0 -0
- /package/templates/{react → common}/features/eslint/node_modules/.bin/eslint.CMD +0 -0
- /package/templates/{react → common}/features/eslint/node_modules/.bin/eslint.ps1 +0 -0
- /package/templates/{react → common}/features/eslint/node_modules/.bin/jiti +0 -0
- /package/templates/{react → common}/features/eslint/node_modules/.bin/jiti.CMD +0 -0
- /package/templates/{react → common}/features/eslint/node_modules/.bin/jiti.ps1 +0 -0
- /package/templates/{react → common}/features/eslint/node_modules/.bin/tsc +0 -0
- /package/templates/{react → common}/features/eslint/node_modules/.bin/tsc.CMD +0 -0
- /package/templates/{react → common}/features/eslint/node_modules/.bin/tsc.ps1 +0 -0
- /package/templates/{react → common}/features/eslint/node_modules/.bin/tsserver +0 -0
- /package/templates/{react → common}/features/eslint/node_modules/.bin/tsserver.CMD +0 -0
- /package/templates/{react → common}/features/eslint/node_modules/.bin/tsserver.ps1 +0 -0
- /package/templates/{react → common}/features/eslint/package.json +0 -0
- /package/templates/vue/{base → features/element-plus}/src/assets/styles/base.scss +0 -0
- /package/templates/vue/{base → features/element-plus}/src/assets/styles/tailwind.scss +0 -0
- /package/templates/vue/{features → micro-frontends/qiankun/features}/element-plus/src/assets/styles/element/fixQiankun.scss +0 -0
- /package/templates/vue/{features → micro-frontends/qiankun/features}/element-plus/src/assets/styles/element/index.scss +0 -0
package/package.json
CHANGED
|
@@ -1,64 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
*,
|
|
7
|
-
*::before,
|
|
8
|
-
*::after {
|
|
9
|
-
box-sizing: border-box;
|
|
10
|
-
margin: 0;
|
|
11
|
-
padding: 0;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
html {
|
|
15
|
-
font-size: 16px;
|
|
16
|
-
line-height: 1.5;
|
|
17
|
-
-webkit-font-smoothing: antialiased;
|
|
18
|
-
-moz-osx-font-smoothing: grayscale;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
body {
|
|
22
|
-
min-height: 100vh;
|
|
23
|
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
1
|
+
:root {
|
|
2
|
+
// 这里定义变量
|
|
3
|
+
/* 文字颜色 */
|
|
4
|
+
--text-color: #2a3651;
|
|
24
5
|
}
|
|
25
6
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
canvas,
|
|
30
|
-
svg {
|
|
31
|
-
display: block;
|
|
32
|
-
max-width: 100%;
|
|
7
|
+
::-webkit-scrollbar {
|
|
8
|
+
width: 6px;
|
|
9
|
+
height: 6px;
|
|
33
10
|
}
|
|
34
11
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
select {
|
|
39
|
-
font: inherit;
|
|
12
|
+
::-webkit-scrollbar-thumb {
|
|
13
|
+
background-color: #dddee0; /* 设置滑块的颜色 */
|
|
14
|
+
border-radius: 5px; /* 设置滑块的圆角 */
|
|
40
15
|
}
|
|
41
16
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
overflow-wrap: break-word;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
a {
|
|
53
|
-
color: inherit;
|
|
54
|
-
text-decoration: none;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
ul,
|
|
58
|
-
ol {
|
|
59
|
-
list-style: none;
|
|
17
|
+
body {
|
|
18
|
+
color: var(--text-color);
|
|
19
|
+
transition:
|
|
20
|
+
color 0.5s,
|
|
21
|
+
background-color 0.5s;
|
|
22
|
+
font-size: 14px;
|
|
23
|
+
font-family: SourceHanSans-Regular, serif;
|
|
60
24
|
}
|
|
61
25
|
|
|
62
26
|
#app {
|
|
63
|
-
|
|
27
|
+
margin: 0;
|
|
28
|
+
padding: 0;
|
|
29
|
+
font-weight: normal;
|
|
30
|
+
background: #f1f2f4;
|
|
31
|
+
height: 100%;
|
|
32
|
+
overflow-y: auto;
|
|
64
33
|
}
|
|
@@ -1,6 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
.text-bold {
|
|
2
|
+
font-family: SourceHanSans-Semibold, serif;
|
|
3
|
+
font-weight: bold;
|
|
4
|
+
}
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
.text-medium {
|
|
7
|
+
font-family: SourceHanSans-Medium, serif;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.text-regular {
|
|
11
|
+
font-family: SourceHanSans-Regular, serif;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.text-light {
|
|
15
|
+
font-family: SourceHanSans-Light, serif;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.box-shadow {
|
|
19
|
+
box-shadow: 0 2px 10px 0 rgb(52 81 212 / 20%);
|
|
20
|
+
}
|
|
@@ -14,16 +14,14 @@ const config: ReturnType<typeof ViteConfig> = ViteConfig(({ mode }) => {
|
|
|
14
14
|
const port = viteEnv.VITE_APP_PORT
|
|
15
15
|
|
|
16
16
|
// 加载所有 feature 配置
|
|
17
|
-
const featureConfig = loadFeatureConfigs({ viteEnv, mode
|
|
17
|
+
const featureConfig = loadFeatureConfigs({ viteEnv, mode, appCode })
|
|
18
18
|
|
|
19
19
|
return {
|
|
20
20
|
rootPath,
|
|
21
21
|
appTitle,
|
|
22
22
|
appCode,
|
|
23
23
|
port,
|
|
24
|
-
vue: true,
|
|
25
24
|
autoComponent: true,
|
|
26
|
-
pageRoutes: true,
|
|
27
25
|
viteConfig: mergeConfig(
|
|
28
26
|
{
|
|
29
27
|
server: {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import eslintConfig from '@moluoxixi/eslint-config'
|
|
2
|
+
|
|
3
|
+
export default eslintConfig({
|
|
4
|
+
formatters: true,
|
|
5
|
+
ignores: [],
|
|
6
|
+
rules: {
|
|
7
|
+
//#region 不能在定义前使用变量
|
|
8
|
+
'no-use-before-define': 'off',
|
|
9
|
+
'ts/no-use-before-define': 'off',
|
|
10
|
+
// #endregion
|
|
11
|
+
// import 排序
|
|
12
|
+
'perfectionist/sort-imports': 'off',
|
|
13
|
+
// 未使用的变量
|
|
14
|
+
'unused-imports/no-unused-vars': 'off',
|
|
15
|
+
// 不允许使用console
|
|
16
|
+
'no-console': 'off',
|
|
17
|
+
// 是否使用function声明顶级函数,开启后会导致偶先eslint格式失败,当文件中eslint格式问题过多时建议关闭,不多时保留此注释
|
|
18
|
+
// 'antfu/top-level-function': 'off',
|
|
19
|
+
},
|
|
20
|
+
})
|
|
@@ -18,23 +18,3 @@
|
|
|
18
18
|
.box-shadow {
|
|
19
19
|
box-shadow: 0 2px 10px 0 rgb(52 81 212 / 20%);
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
.rounded-0 {
|
|
23
|
-
border-radius: 0;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.rounded-4 {
|
|
27
|
-
border-radius: 4px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.rounded-8 {
|
|
31
|
-
border-radius: 8px;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.rounded-12 {
|
|
35
|
-
border-radius: 12px;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.rounded-16 {
|
|
39
|
-
border-radius: 16px;
|
|
40
|
-
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Element Plus 样式定制
|
|
3
|
+
* 自定义 Element Plus 主题
|
|
4
|
+
*/
|
|
5
|
+
@forward 'element-plus/theme-chalk/src/mixins/config.scss';
|
|
6
|
+
|
|
7
|
+
@forward 'element-plus/theme-chalk/src/common/var.scss' with (
|
|
8
|
+
$colors: (
|
|
9
|
+
'primary': (
|
|
10
|
+
'base': #409eff,
|
|
11
|
+
),
|
|
12
|
+
'success': (
|
|
13
|
+
'base': #67c23a,
|
|
14
|
+
),
|
|
15
|
+
'warning': (
|
|
16
|
+
'base': #e6a23c,
|
|
17
|
+
),
|
|
18
|
+
'danger': (
|
|
19
|
+
'base': #f56c6c,
|
|
20
|
+
),
|
|
21
|
+
'info': (
|
|
22
|
+
'base': #909399,
|
|
23
|
+
),
|
|
24
|
+
)
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
@use 'element-plus/theme-chalk/src/index.scss' as *;
|
|
@@ -6,12 +6,12 @@ case `uname` in
|
|
|
6
6
|
esac
|
|
7
7
|
|
|
8
8
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/mnt/e/project/template/vite-cli/node_modules/.pnpm/vite@7.
|
|
9
|
+
export NODE_PATH="/mnt/e/project/template/vite-cli/node_modules/.pnpm/vite@7.1.11_@types+node@22._a442b9e867f9e314d66f8a1e734ad862/node_modules/vite/bin/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/vite@7.1.11_@types+node@22._a442b9e867f9e314d66f8a1e734ad862/node_modules/vite/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/vite@7.1.11_@types+node@22._a442b9e867f9e314d66f8a1e734ad862/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules"
|
|
10
10
|
else
|
|
11
|
-
export NODE_PATH="/mnt/e/project/template/vite-cli/node_modules/.pnpm/vite@7.
|
|
11
|
+
export NODE_PATH="/mnt/e/project/template/vite-cli/node_modules/.pnpm/vite@7.1.11_@types+node@22._a442b9e867f9e314d66f8a1e734ad862/node_modules/vite/bin/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/vite@7.1.11_@types+node@22._a442b9e867f9e314d66f8a1e734ad862/node_modules/vite/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/vite@7.1.11_@types+node@22._a442b9e867f9e314d66f8a1e734ad862/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir
|
|
14
|
+
exec "$basedir/node" "$basedir/../vite/bin/vite.js" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir
|
|
16
|
+
exec node "$basedir/../vite/bin/vite.js" "$@"
|
|
17
17
|
fi
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
@SETLOCAL
|
|
2
2
|
@IF NOT DEFINED NODE_PATH (
|
|
3
|
-
@SET "NODE_PATH=E:\project\template\vite-cli\node_modules\.pnpm\vite@7.
|
|
3
|
+
@SET "NODE_PATH=E:\project\template\vite-cli\node_modules\.pnpm\vite@7.1.11_@types+node@22._a442b9e867f9e314d66f8a1e734ad862\node_modules\vite\bin\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\vite@7.1.11_@types+node@22._a442b9e867f9e314d66f8a1e734ad862\node_modules\vite\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\vite@7.1.11_@types+node@22._a442b9e867f9e314d66f8a1e734ad862\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\node_modules"
|
|
4
4
|
) ELSE (
|
|
5
|
-
@SET "NODE_PATH=E:\project\template\vite-cli\node_modules\.pnpm\vite@7.
|
|
5
|
+
@SET "NODE_PATH=E:\project\template\vite-cli\node_modules\.pnpm\vite@7.1.11_@types+node@22._a442b9e867f9e314d66f8a1e734ad862\node_modules\vite\bin\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\vite@7.1.11_@types+node@22._a442b9e867f9e314d66f8a1e734ad862\node_modules\vite\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\vite@7.1.11_@types+node@22._a442b9e867f9e314d66f8a1e734ad862\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\node_modules;%NODE_PATH%"
|
|
6
6
|
)
|
|
7
7
|
@IF EXIST "%~dp0\node.exe" (
|
|
8
|
-
"%~dp0\node.exe" "%~dp0
|
|
8
|
+
"%~dp0\node.exe" "%~dp0\..\vite\bin\vite.js" %*
|
|
9
9
|
) ELSE (
|
|
10
10
|
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
|
11
|
-
node "%~dp0
|
|
11
|
+
node "%~dp0\..\vite\bin\vite.js" %*
|
|
12
12
|
)
|
|
@@ -4,14 +4,14 @@ $basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
|
|
4
4
|
$exe=""
|
|
5
5
|
$pathsep=":"
|
|
6
6
|
$env_node_path=$env:NODE_PATH
|
|
7
|
-
$new_node_path="E:\project\template\vite-cli\node_modules\.pnpm\vite@7.
|
|
7
|
+
$new_node_path="E:\project\template\vite-cli\node_modules\.pnpm\vite@7.1.11_@types+node@22._a442b9e867f9e314d66f8a1e734ad862\node_modules\vite\bin\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\vite@7.1.11_@types+node@22._a442b9e867f9e314d66f8a1e734ad862\node_modules\vite\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\vite@7.1.11_@types+node@22._a442b9e867f9e314d66f8a1e734ad862\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\node_modules"
|
|
8
8
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
|
9
9
|
# Fix case when both the Windows and Linux builds of Node
|
|
10
10
|
# are installed in the same directory
|
|
11
11
|
$exe=".exe"
|
|
12
12
|
$pathsep=";"
|
|
13
13
|
} else {
|
|
14
|
-
$new_node_path="/mnt/e/project/template/vite-cli/node_modules/.pnpm/vite@7.
|
|
14
|
+
$new_node_path="/mnt/e/project/template/vite-cli/node_modules/.pnpm/vite@7.1.11_@types+node@22._a442b9e867f9e314d66f8a1e734ad862/node_modules/vite/bin/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/vite@7.1.11_@types+node@22._a442b9e867f9e314d66f8a1e734ad862/node_modules/vite/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/vite@7.1.11_@types+node@22._a442b9e867f9e314d66f8a1e734ad862/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules"
|
|
15
15
|
}
|
|
16
16
|
if ([string]::IsNullOrEmpty($env_node_path)) {
|
|
17
17
|
$env:NODE_PATH=$new_node_path
|
|
@@ -23,17 +23,17 @@ $ret=0
|
|
|
23
23
|
if (Test-Path "$basedir/node$exe") {
|
|
24
24
|
# Support pipeline input
|
|
25
25
|
if ($MyInvocation.ExpectingInput) {
|
|
26
|
-
$input | & "$basedir/node$exe" "$basedir
|
|
26
|
+
$input | & "$basedir/node$exe" "$basedir/../vite/bin/vite.js" $args
|
|
27
27
|
} else {
|
|
28
|
-
& "$basedir/node$exe" "$basedir
|
|
28
|
+
& "$basedir/node$exe" "$basedir/../vite/bin/vite.js" $args
|
|
29
29
|
}
|
|
30
30
|
$ret=$LASTEXITCODE
|
|
31
31
|
} else {
|
|
32
32
|
# Support pipeline input
|
|
33
33
|
if ($MyInvocation.ExpectingInput) {
|
|
34
|
-
$input | & "node$exe" "$basedir
|
|
34
|
+
$input | & "node$exe" "$basedir/../vite/bin/vite.js" $args
|
|
35
35
|
} else {
|
|
36
|
-
& "node$exe" "$basedir
|
|
36
|
+
& "node$exe" "$basedir/../vite/bin/vite.js" $args
|
|
37
37
|
}
|
|
38
38
|
$ret=$LASTEXITCODE
|
|
39
39
|
}
|
package/templates/vue/micro-frontends/qiankun/features/element-plus/src/assets/styles/base.scss
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--primary-color: #3a77ff; /* 主色调 */
|
|
3
|
+
--primary-color-1: #3a81ff; /* 辅助色1 */
|
|
4
|
+
--primary-color-2: #518fff; /* 辅助色2 */
|
|
5
|
+
--primary-color-3: #53a0fd; /* 辅助色3 */
|
|
6
|
+
--primary-color-4: #f7faff; /* 辅助色4 */
|
|
7
|
+
--success-color: #0eb67f; /* 辅助色5 */
|
|
8
|
+
--success-color-1: #f6fffc; /* 辅助色6 */
|
|
9
|
+
--warning-color: #f5ab01; /* 提醒色 */
|
|
10
|
+
--danger-color: #ef6b53; /* 警告色 */
|
|
11
|
+
|
|
12
|
+
/* 文字颜色 */
|
|
13
|
+
--text-color: #2a3651;
|
|
14
|
+
--text-color-1: #29354f;
|
|
15
|
+
--text-color-disable: #a9aeb9;
|
|
16
|
+
--text-color-choose: #3a77ff;
|
|
17
|
+
--text-color-white: white;
|
|
18
|
+
|
|
19
|
+
/* 边框色 */
|
|
20
|
+
--border-color-1: #dcdfe6;
|
|
21
|
+
--border-color-2: #b1b6bd;
|
|
22
|
+
--border-color-3: #e3e6e9;
|
|
23
|
+
--border-color-4: #e0e4e8;
|
|
24
|
+
--border-color-5: #0317c4bf;
|
|
25
|
+
--border-color-6: #7ba4ff;
|
|
26
|
+
|
|
27
|
+
/* 背景色 */
|
|
28
|
+
--bg-color-1: #f1f2f4;
|
|
29
|
+
--bg-color-2: #fafbfc;
|
|
30
|
+
--bg-color-3: #29354f;
|
|
31
|
+
--bg-color-4: #f5f7fa;
|
|
32
|
+
--bg-color-5: #f6f9ff;
|
|
33
|
+
--bg-color-6: #ebf2ff;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
*,
|
|
37
|
+
*::before,
|
|
38
|
+
*::after {
|
|
39
|
+
box-sizing: border-box;
|
|
40
|
+
margin: 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
::-webkit-scrollbar {
|
|
44
|
+
width: 6px;
|
|
45
|
+
height: 6px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
::-webkit-scrollbar-thumb {
|
|
49
|
+
background-color: #dddee0; /* 设置滑块的颜色 */
|
|
50
|
+
border-radius: 5px; /* 设置滑块的圆角 */
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
body {
|
|
54
|
+
color: var(--text-color);
|
|
55
|
+
transition:
|
|
56
|
+
color 0.5s,
|
|
57
|
+
background-color 0.5s;
|
|
58
|
+
font-size: 14px;
|
|
59
|
+
font-family: SourceHanSans-Regular, serif;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
#app {
|
|
63
|
+
margin: 0;
|
|
64
|
+
padding: 0;
|
|
65
|
+
font-weight: normal;
|
|
66
|
+
background: #f1f2f4;
|
|
67
|
+
height: 100%;
|
|
68
|
+
overflow-y: auto;
|
|
69
|
+
}
|
package/templates/vue/micro-frontends/qiankun/features/element-plus/src/assets/styles/custom.scss
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
.text-bold {
|
|
2
|
+
font-family: SourceHanSans-Semibold, serif;
|
|
3
|
+
font-weight: bold;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.text-medium {
|
|
7
|
+
font-family: SourceHanSans-Medium, serif;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.text-regular {
|
|
11
|
+
font-family: SourceHanSans-Regular, serif;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.text-light {
|
|
15
|
+
font-family: SourceHanSans-Light, serif;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.box-shadow {
|
|
19
|
+
box-shadow: 0 2px 10px 0 rgb(52 81 212 / 20%);
|
|
20
|
+
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import path from 'node:path'
|
|
2
|
-
import cssModuleGlobalRootPlugin from '@moluoxixi/css-module-global-root-plugin'
|
|
3
|
-
import { ViteConfig, wrapperEnv } from '@moluoxixi/vite-config'
|
|
4
|
-
import { loadEnv, mergeConfig } from 'vite'
|
|
5
|
-
import process from 'node:process'
|
|
6
|
-
import { loadFeatureConfigs } from './vite/index.ts'
|
|
7
|
-
|
|
8
|
-
const config: ReturnType<typeof ViteConfig> = ViteConfig(({ mode }) => {
|
|
9
|
-
const env = loadEnv(mode!, process.cwd())
|
|
10
|
-
const viteEnv = wrapperEnv(env)
|
|
11
|
-
const rootPath = path.resolve()
|
|
12
|
-
const appCode = viteEnv.VITE_APP_CODE
|
|
13
|
-
const appTitle = viteEnv.VITE_APP_TITLE
|
|
14
|
-
const port = viteEnv.VITE_APP_PORT
|
|
15
|
-
|
|
16
|
-
// 加载所有 feature 配置
|
|
17
|
-
const featureConfig = loadFeatureConfigs({ viteEnv, mode: mode!, appCode })
|
|
18
|
-
|
|
19
|
-
return {
|
|
20
|
-
rootPath,
|
|
21
|
-
appTitle,
|
|
22
|
-
appCode,
|
|
23
|
-
port,
|
|
24
|
-
react: true,
|
|
25
|
-
pageRoutes: true,
|
|
26
|
-
viteConfig: mergeConfig(
|
|
27
|
-
{
|
|
28
|
-
server: {
|
|
29
|
-
proxy: {
|
|
30
|
-
'/api': {
|
|
31
|
-
changeOrigin: true,
|
|
32
|
-
target: 'http://localhost:3000',
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
headers: {
|
|
36
|
-
'Access-Control-Allow-Origin': '*',
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
css: {
|
|
40
|
-
preprocessorOptions: {
|
|
41
|
-
scss: {
|
|
42
|
-
silenceDeprecations: ['legacy-js-api'],
|
|
43
|
-
api: 'modern-compiler',
|
|
44
|
-
},
|
|
45
|
-
postcss: {
|
|
46
|
-
plugins: [
|
|
47
|
-
cssModuleGlobalRootPlugin() as any,
|
|
48
|
-
],
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
featureConfig,
|
|
54
|
-
),
|
|
55
|
-
}
|
|
56
|
-
})
|
|
57
|
-
|
|
58
|
-
export default config
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
-
esac
|
|
7
|
-
|
|
8
|
-
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/mnt/e/project/template/vite-cli/node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/browserslist@4.28.1/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules"
|
|
10
|
-
else
|
|
11
|
-
export NODE_PATH="/mnt/e/project/template/vite-cli/node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/browserslist@4.28.1/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
-
fi
|
|
13
|
-
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/cli.js" "$@"
|
|
15
|
-
else
|
|
16
|
-
exec node "$basedir/../../../../../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/cli.js" "$@"
|
|
17
|
-
fi
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
@SETLOCAL
|
|
2
|
-
@IF NOT DEFINED NODE_PATH (
|
|
3
|
-
@SET "NODE_PATH=E:\project\template\vite-cli\node_modules\.pnpm\browserslist@4.28.1\node_modules\browserslist\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\browserslist@4.28.1\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\node_modules"
|
|
4
|
-
) ELSE (
|
|
5
|
-
@SET "NODE_PATH=E:\project\template\vite-cli\node_modules\.pnpm\browserslist@4.28.1\node_modules\browserslist\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\browserslist@4.28.1\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\node_modules;%NODE_PATH%"
|
|
6
|
-
)
|
|
7
|
-
@IF EXIST "%~dp0\node.exe" (
|
|
8
|
-
"%~dp0\node.exe" "%~dp0\..\..\..\..\..\..\node_modules\.pnpm\browserslist@4.28.1\node_modules\browserslist\cli.js" %*
|
|
9
|
-
) ELSE (
|
|
10
|
-
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
|
11
|
-
node "%~dp0\..\..\..\..\..\..\node_modules\.pnpm\browserslist@4.28.1\node_modules\browserslist\cli.js" %*
|
|
12
|
-
)
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env pwsh
|
|
2
|
-
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
|
3
|
-
|
|
4
|
-
$exe=""
|
|
5
|
-
$pathsep=":"
|
|
6
|
-
$env_node_path=$env:NODE_PATH
|
|
7
|
-
$new_node_path="E:\project\template\vite-cli\node_modules\.pnpm\browserslist@4.28.1\node_modules\browserslist\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\browserslist@4.28.1\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\node_modules"
|
|
8
|
-
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
|
9
|
-
# Fix case when both the Windows and Linux builds of Node
|
|
10
|
-
# are installed in the same directory
|
|
11
|
-
$exe=".exe"
|
|
12
|
-
$pathsep=";"
|
|
13
|
-
} else {
|
|
14
|
-
$new_node_path="/mnt/e/project/template/vite-cli/node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/browserslist@4.28.1/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules"
|
|
15
|
-
}
|
|
16
|
-
if ([string]::IsNullOrEmpty($env_node_path)) {
|
|
17
|
-
$env:NODE_PATH=$new_node_path
|
|
18
|
-
} else {
|
|
19
|
-
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
$ret=0
|
|
23
|
-
if (Test-Path "$basedir/node$exe") {
|
|
24
|
-
# Support pipeline input
|
|
25
|
-
if ($MyInvocation.ExpectingInput) {
|
|
26
|
-
$input | & "$basedir/node$exe" "$basedir/../../../../../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/cli.js" $args
|
|
27
|
-
} else {
|
|
28
|
-
& "$basedir/node$exe" "$basedir/../../../../../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/cli.js" $args
|
|
29
|
-
}
|
|
30
|
-
$ret=$LASTEXITCODE
|
|
31
|
-
} else {
|
|
32
|
-
# Support pipeline input
|
|
33
|
-
if ($MyInvocation.ExpectingInput) {
|
|
34
|
-
$input | & "node$exe" "$basedir/../../../../../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/cli.js" $args
|
|
35
|
-
} else {
|
|
36
|
-
& "node$exe" "$basedir/../../../../../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/cli.js" $args
|
|
37
|
-
}
|
|
38
|
-
$ret=$LASTEXITCODE
|
|
39
|
-
}
|
|
40
|
-
$env:NODE_PATH=$env_node_path
|
|
41
|
-
exit $ret
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
-
esac
|
|
7
|
-
|
|
8
|
-
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/mnt/e/project/template/vite-cli/node_modules/.pnpm/eslint@9.39.2_jiti@2.6.1/node_modules/eslint/bin/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/eslint@9.39.2_jiti@2.6.1/node_modules/eslint/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/eslint@9.39.2_jiti@2.6.1/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules"
|
|
10
|
-
else
|
|
11
|
-
export NODE_PATH="/mnt/e/project/template/vite-cli/node_modules/.pnpm/eslint@9.39.2_jiti@2.6.1/node_modules/eslint/bin/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/eslint@9.39.2_jiti@2.6.1/node_modules/eslint/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/eslint@9.39.2_jiti@2.6.1/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
-
fi
|
|
13
|
-
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../eslint/bin/eslint.js" "$@"
|
|
15
|
-
else
|
|
16
|
-
exec node "$basedir/../eslint/bin/eslint.js" "$@"
|
|
17
|
-
fi
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
@SETLOCAL
|
|
2
|
-
@IF NOT DEFINED NODE_PATH (
|
|
3
|
-
@SET "NODE_PATH=E:\project\template\vite-cli\node_modules\.pnpm\eslint@9.39.2_jiti@2.6.1\node_modules\eslint\bin\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\eslint@9.39.2_jiti@2.6.1\node_modules\eslint\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\eslint@9.39.2_jiti@2.6.1\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\node_modules"
|
|
4
|
-
) ELSE (
|
|
5
|
-
@SET "NODE_PATH=E:\project\template\vite-cli\node_modules\.pnpm\eslint@9.39.2_jiti@2.6.1\node_modules\eslint\bin\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\eslint@9.39.2_jiti@2.6.1\node_modules\eslint\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\eslint@9.39.2_jiti@2.6.1\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\node_modules;%NODE_PATH%"
|
|
6
|
-
)
|
|
7
|
-
@IF EXIST "%~dp0\node.exe" (
|
|
8
|
-
"%~dp0\node.exe" "%~dp0\..\eslint\bin\eslint.js" %*
|
|
9
|
-
) ELSE (
|
|
10
|
-
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
|
11
|
-
node "%~dp0\..\eslint\bin\eslint.js" %*
|
|
12
|
-
)
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env pwsh
|
|
2
|
-
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
|
3
|
-
|
|
4
|
-
$exe=""
|
|
5
|
-
$pathsep=":"
|
|
6
|
-
$env_node_path=$env:NODE_PATH
|
|
7
|
-
$new_node_path="E:\project\template\vite-cli\node_modules\.pnpm\eslint@9.39.2_jiti@2.6.1\node_modules\eslint\bin\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\eslint@9.39.2_jiti@2.6.1\node_modules\eslint\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\eslint@9.39.2_jiti@2.6.1\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\node_modules"
|
|
8
|
-
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
|
9
|
-
# Fix case when both the Windows and Linux builds of Node
|
|
10
|
-
# are installed in the same directory
|
|
11
|
-
$exe=".exe"
|
|
12
|
-
$pathsep=";"
|
|
13
|
-
} else {
|
|
14
|
-
$new_node_path="/mnt/e/project/template/vite-cli/node_modules/.pnpm/eslint@9.39.2_jiti@2.6.1/node_modules/eslint/bin/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/eslint@9.39.2_jiti@2.6.1/node_modules/eslint/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/eslint@9.39.2_jiti@2.6.1/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules"
|
|
15
|
-
}
|
|
16
|
-
if ([string]::IsNullOrEmpty($env_node_path)) {
|
|
17
|
-
$env:NODE_PATH=$new_node_path
|
|
18
|
-
} else {
|
|
19
|
-
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
$ret=0
|
|
23
|
-
if (Test-Path "$basedir/node$exe") {
|
|
24
|
-
# Support pipeline input
|
|
25
|
-
if ($MyInvocation.ExpectingInput) {
|
|
26
|
-
$input | & "$basedir/node$exe" "$basedir/../eslint/bin/eslint.js" $args
|
|
27
|
-
} else {
|
|
28
|
-
& "$basedir/node$exe" "$basedir/../eslint/bin/eslint.js" $args
|
|
29
|
-
}
|
|
30
|
-
$ret=$LASTEXITCODE
|
|
31
|
-
} else {
|
|
32
|
-
# Support pipeline input
|
|
33
|
-
if ($MyInvocation.ExpectingInput) {
|
|
34
|
-
$input | & "node$exe" "$basedir/../eslint/bin/eslint.js" $args
|
|
35
|
-
} else {
|
|
36
|
-
& "node$exe" "$basedir/../eslint/bin/eslint.js" $args
|
|
37
|
-
}
|
|
38
|
-
$ret=$LASTEXITCODE
|
|
39
|
-
}
|
|
40
|
-
$env:NODE_PATH=$env_node_path
|
|
41
|
-
exit $ret
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
-
esac
|
|
7
|
-
|
|
8
|
-
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/mnt/e/project/template/vite-cli/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/jiti@2.6.1/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules"
|
|
10
|
-
else
|
|
11
|
-
export NODE_PATH="/mnt/e/project/template/vite-cli/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/jiti@2.6.1/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
-
fi
|
|
13
|
-
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../../../node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti-cli.mjs" "$@"
|
|
15
|
-
else
|
|
16
|
-
exec node "$basedir/../../../../../../node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti-cli.mjs" "$@"
|
|
17
|
-
fi
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
@SETLOCAL
|
|
2
|
-
@IF NOT DEFINED NODE_PATH (
|
|
3
|
-
@SET "NODE_PATH=E:\project\template\vite-cli\node_modules\.pnpm\jiti@2.6.1\node_modules\jiti\lib\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\jiti@2.6.1\node_modules\jiti\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\jiti@2.6.1\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\node_modules"
|
|
4
|
-
) ELSE (
|
|
5
|
-
@SET "NODE_PATH=E:\project\template\vite-cli\node_modules\.pnpm\jiti@2.6.1\node_modules\jiti\lib\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\jiti@2.6.1\node_modules\jiti\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\jiti@2.6.1\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\node_modules;%NODE_PATH%"
|
|
6
|
-
)
|
|
7
|
-
@IF EXIST "%~dp0\node.exe" (
|
|
8
|
-
"%~dp0\node.exe" "%~dp0\..\..\..\..\..\..\node_modules\.pnpm\jiti@2.6.1\node_modules\jiti\lib\jiti-cli.mjs" %*
|
|
9
|
-
) ELSE (
|
|
10
|
-
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
|
11
|
-
node "%~dp0\..\..\..\..\..\..\node_modules\.pnpm\jiti@2.6.1\node_modules\jiti\lib\jiti-cli.mjs" %*
|
|
12
|
-
)
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env pwsh
|
|
2
|
-
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
|
3
|
-
|
|
4
|
-
$exe=""
|
|
5
|
-
$pathsep=":"
|
|
6
|
-
$env_node_path=$env:NODE_PATH
|
|
7
|
-
$new_node_path="E:\project\template\vite-cli\node_modules\.pnpm\jiti@2.6.1\node_modules\jiti\lib\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\jiti@2.6.1\node_modules\jiti\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\jiti@2.6.1\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\node_modules"
|
|
8
|
-
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
|
9
|
-
# Fix case when both the Windows and Linux builds of Node
|
|
10
|
-
# are installed in the same directory
|
|
11
|
-
$exe=".exe"
|
|
12
|
-
$pathsep=";"
|
|
13
|
-
} else {
|
|
14
|
-
$new_node_path="/mnt/e/project/template/vite-cli/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/jiti@2.6.1/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules"
|
|
15
|
-
}
|
|
16
|
-
if ([string]::IsNullOrEmpty($env_node_path)) {
|
|
17
|
-
$env:NODE_PATH=$new_node_path
|
|
18
|
-
} else {
|
|
19
|
-
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
$ret=0
|
|
23
|
-
if (Test-Path "$basedir/node$exe") {
|
|
24
|
-
# Support pipeline input
|
|
25
|
-
if ($MyInvocation.ExpectingInput) {
|
|
26
|
-
$input | & "$basedir/node$exe" "$basedir/../../../../../../node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti-cli.mjs" $args
|
|
27
|
-
} else {
|
|
28
|
-
& "$basedir/node$exe" "$basedir/../../../../../../node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti-cli.mjs" $args
|
|
29
|
-
}
|
|
30
|
-
$ret=$LASTEXITCODE
|
|
31
|
-
} else {
|
|
32
|
-
# Support pipeline input
|
|
33
|
-
if ($MyInvocation.ExpectingInput) {
|
|
34
|
-
$input | & "node$exe" "$basedir/../../../../../../node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti-cli.mjs" $args
|
|
35
|
-
} else {
|
|
36
|
-
& "node$exe" "$basedir/../../../../../../node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti-cli.mjs" $args
|
|
37
|
-
}
|
|
38
|
-
$ret=$LASTEXITCODE
|
|
39
|
-
}
|
|
40
|
-
$env:NODE_PATH=$env_node_path
|
|
41
|
-
exit $ret
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
-
esac
|
|
7
|
-
|
|
8
|
-
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/mnt/e/project/template/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules"
|
|
10
|
-
else
|
|
11
|
-
export NODE_PATH="/mnt/e/project/template/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
-
fi
|
|
13
|
-
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsc" "$@"
|
|
15
|
-
else
|
|
16
|
-
exec node "$basedir/../../../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsc" "$@"
|
|
17
|
-
fi
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
@SETLOCAL
|
|
2
|
-
@IF NOT DEFINED NODE_PATH (
|
|
3
|
-
@SET "NODE_PATH=E:\project\template\vite-cli\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\bin\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\typescript@5.8.3\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\node_modules"
|
|
4
|
-
) ELSE (
|
|
5
|
-
@SET "NODE_PATH=E:\project\template\vite-cli\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\bin\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\typescript@5.8.3\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\node_modules;%NODE_PATH%"
|
|
6
|
-
)
|
|
7
|
-
@IF EXIST "%~dp0\node.exe" (
|
|
8
|
-
"%~dp0\node.exe" "%~dp0\..\..\..\..\..\..\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\bin\tsc" %*
|
|
9
|
-
) ELSE (
|
|
10
|
-
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
|
11
|
-
node "%~dp0\..\..\..\..\..\..\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\bin\tsc" %*
|
|
12
|
-
)
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env pwsh
|
|
2
|
-
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
|
3
|
-
|
|
4
|
-
$exe=""
|
|
5
|
-
$pathsep=":"
|
|
6
|
-
$env_node_path=$env:NODE_PATH
|
|
7
|
-
$new_node_path="E:\project\template\vite-cli\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\bin\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\typescript@5.8.3\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\node_modules"
|
|
8
|
-
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
|
9
|
-
# Fix case when both the Windows and Linux builds of Node
|
|
10
|
-
# are installed in the same directory
|
|
11
|
-
$exe=".exe"
|
|
12
|
-
$pathsep=";"
|
|
13
|
-
} else {
|
|
14
|
-
$new_node_path="/mnt/e/project/template/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules"
|
|
15
|
-
}
|
|
16
|
-
if ([string]::IsNullOrEmpty($env_node_path)) {
|
|
17
|
-
$env:NODE_PATH=$new_node_path
|
|
18
|
-
} else {
|
|
19
|
-
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
$ret=0
|
|
23
|
-
if (Test-Path "$basedir/node$exe") {
|
|
24
|
-
# Support pipeline input
|
|
25
|
-
if ($MyInvocation.ExpectingInput) {
|
|
26
|
-
$input | & "$basedir/node$exe" "$basedir/../../../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsc" $args
|
|
27
|
-
} else {
|
|
28
|
-
& "$basedir/node$exe" "$basedir/../../../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsc" $args
|
|
29
|
-
}
|
|
30
|
-
$ret=$LASTEXITCODE
|
|
31
|
-
} else {
|
|
32
|
-
# Support pipeline input
|
|
33
|
-
if ($MyInvocation.ExpectingInput) {
|
|
34
|
-
$input | & "node$exe" "$basedir/../../../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsc" $args
|
|
35
|
-
} else {
|
|
36
|
-
& "node$exe" "$basedir/../../../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsc" $args
|
|
37
|
-
}
|
|
38
|
-
$ret=$LASTEXITCODE
|
|
39
|
-
}
|
|
40
|
-
$env:NODE_PATH=$env_node_path
|
|
41
|
-
exit $ret
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
-
esac
|
|
7
|
-
|
|
8
|
-
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/mnt/e/project/template/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules"
|
|
10
|
-
else
|
|
11
|
-
export NODE_PATH="/mnt/e/project/template/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
-
fi
|
|
13
|
-
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsserver" "$@"
|
|
15
|
-
else
|
|
16
|
-
exec node "$basedir/../../../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsserver" "$@"
|
|
17
|
-
fi
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
@SETLOCAL
|
|
2
|
-
@IF NOT DEFINED NODE_PATH (
|
|
3
|
-
@SET "NODE_PATH=E:\project\template\vite-cli\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\bin\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\typescript@5.8.3\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\node_modules"
|
|
4
|
-
) ELSE (
|
|
5
|
-
@SET "NODE_PATH=E:\project\template\vite-cli\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\bin\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\typescript@5.8.3\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\node_modules;%NODE_PATH%"
|
|
6
|
-
)
|
|
7
|
-
@IF EXIST "%~dp0\node.exe" (
|
|
8
|
-
"%~dp0\node.exe" "%~dp0\..\..\..\..\..\..\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\bin\tsserver" %*
|
|
9
|
-
) ELSE (
|
|
10
|
-
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
|
11
|
-
node "%~dp0\..\..\..\..\..\..\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\bin\tsserver" %*
|
|
12
|
-
)
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env pwsh
|
|
2
|
-
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
|
3
|
-
|
|
4
|
-
$exe=""
|
|
5
|
-
$pathsep=":"
|
|
6
|
-
$env_node_path=$env:NODE_PATH
|
|
7
|
-
$new_node_path="E:\project\template\vite-cli\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\bin\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\typescript@5.8.3\node_modules;E:\project\template\vite-cli\node_modules\.pnpm\node_modules"
|
|
8
|
-
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
|
9
|
-
# Fix case when both the Windows and Linux builds of Node
|
|
10
|
-
# are installed in the same directory
|
|
11
|
-
$exe=".exe"
|
|
12
|
-
$pathsep=";"
|
|
13
|
-
} else {
|
|
14
|
-
$new_node_path="/mnt/e/project/template/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/typescript@5.8.3/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules"
|
|
15
|
-
}
|
|
16
|
-
if ([string]::IsNullOrEmpty($env_node_path)) {
|
|
17
|
-
$env:NODE_PATH=$new_node_path
|
|
18
|
-
} else {
|
|
19
|
-
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
$ret=0
|
|
23
|
-
if (Test-Path "$basedir/node$exe") {
|
|
24
|
-
# Support pipeline input
|
|
25
|
-
if ($MyInvocation.ExpectingInput) {
|
|
26
|
-
$input | & "$basedir/node$exe" "$basedir/../../../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsserver" $args
|
|
27
|
-
} else {
|
|
28
|
-
& "$basedir/node$exe" "$basedir/../../../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsserver" $args
|
|
29
|
-
}
|
|
30
|
-
$ret=$LASTEXITCODE
|
|
31
|
-
} else {
|
|
32
|
-
# Support pipeline input
|
|
33
|
-
if ($MyInvocation.ExpectingInput) {
|
|
34
|
-
$input | & "node$exe" "$basedir/../../../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsserver" $args
|
|
35
|
-
} else {
|
|
36
|
-
& "node$exe" "$basedir/../../../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsserver" $args
|
|
37
|
-
}
|
|
38
|
-
$ret=$LASTEXITCODE
|
|
39
|
-
}
|
|
40
|
-
$env:NODE_PATH=$env_node_path
|
|
41
|
-
exit $ret
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import path from 'node:path'
|
|
2
|
-
import cssModuleGlobalRootPlugin from '@moluoxixi/css-module-global-root-plugin'
|
|
3
|
-
import { ViteConfig, wrapperEnv } from '@moluoxixi/vite-config'
|
|
4
|
-
import { loadEnv, mergeConfig } from 'vite'
|
|
5
|
-
import process from 'node:process'
|
|
6
|
-
import { loadFeatureConfigs } from './vite/index.ts'
|
|
7
|
-
|
|
8
|
-
const config: ReturnType<typeof ViteConfig> = ViteConfig(({ mode }) => {
|
|
9
|
-
const env = loadEnv(mode!, process.cwd())
|
|
10
|
-
const viteEnv = wrapperEnv(env)
|
|
11
|
-
const rootPath = path.resolve()
|
|
12
|
-
const appCode = viteEnv.VITE_APP_CODE
|
|
13
|
-
const appTitle = viteEnv.VITE_APP_TITLE
|
|
14
|
-
const port = viteEnv.VITE_APP_PORT
|
|
15
|
-
|
|
16
|
-
// 加载所有 feature 配置
|
|
17
|
-
const featureConfig = loadFeatureConfigs({ viteEnv, mode: mode!, appCode })
|
|
18
|
-
|
|
19
|
-
return {
|
|
20
|
-
rootPath,
|
|
21
|
-
appTitle,
|
|
22
|
-
appCode,
|
|
23
|
-
port,
|
|
24
|
-
vue: true,
|
|
25
|
-
autoComponent: true,
|
|
26
|
-
pageRoutes: true,
|
|
27
|
-
viteConfig: mergeConfig(
|
|
28
|
-
{
|
|
29
|
-
server: {
|
|
30
|
-
proxy: {
|
|
31
|
-
'/api': {
|
|
32
|
-
changeOrigin: true,
|
|
33
|
-
target: 'http://localhost:3000',
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
headers: {
|
|
37
|
-
'Access-Control-Allow-Origin': '*',
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
css: {
|
|
41
|
-
preprocessorOptions: {
|
|
42
|
-
scss: {
|
|
43
|
-
silenceDeprecations: ['legacy-js-api'],
|
|
44
|
-
api: 'modern-compiler',
|
|
45
|
-
},
|
|
46
|
-
postcss: {
|
|
47
|
-
plugins: [
|
|
48
|
-
cssModuleGlobalRootPlugin() as any,
|
|
49
|
-
],
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
featureConfig,
|
|
55
|
-
),
|
|
56
|
-
}
|
|
57
|
-
})
|
|
58
|
-
|
|
59
|
-
export default config
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|