Commit 62ba7a5a53d2d675c55512549cfb5e98e1117946
1 parent
a9c2a29d
chore: remove Chinese path warning
Showing
7 changed files
with
18 additions
and
55 deletions
CHANGELOG.zh_CN.md
build/script/cli.ts
@@ -4,7 +4,6 @@ import chalk from 'chalk'; | @@ -4,7 +4,6 @@ import chalk from 'chalk'; | ||
4 | import { argv } from 'yargs'; | 4 | import { argv } from 'yargs'; |
5 | 5 | ||
6 | import { runChangeLog } from './changelog'; | 6 | import { runChangeLog } from './changelog'; |
7 | -import { runPostInstall } from './postinstall'; | ||
8 | import { runPreview } from './preview'; | 7 | import { runPreview } from './preview'; |
9 | // import { runPreserve } from './preserve'; | 8 | // import { runPreserve } from './preserve'; |
10 | import { runBuild } from './build'; | 9 | import { runBuild } from './build'; |
@@ -27,10 +26,6 @@ switch (task) { | @@ -27,10 +26,6 @@ switch (task) { | ||
27 | // runPreserve(); | 26 | // runPreserve(); |
28 | // break; | 27 | // break; |
29 | 28 | ||
30 | - case 'postinstall': | ||
31 | - runPostInstall(); | ||
32 | - break; | ||
33 | - | ||
34 | case 'preview': | 29 | case 'preview': |
35 | runPreview(); | 30 | runPreview(); |
36 | break; | 31 | break; |
build/script/postinstall.ts deleted
100644 → 0
1 | -import { exec, which } from 'shelljs'; | ||
2 | - | ||
3 | -function ignoreCaseGit() { | ||
4 | - try { | ||
5 | - if (which('git').code === 0) { | ||
6 | - exec('git config core.ignorecase false '); | ||
7 | - } | ||
8 | - } catch (error) { | ||
9 | - console.log(error); | ||
10 | - } | ||
11 | -} | ||
12 | - | ||
13 | -export function runPostInstall() { | ||
14 | - ignoreCaseGit(); | ||
15 | -} |
build/script/preserve.ts
@@ -4,25 +4,29 @@ import path from 'path'; | @@ -4,25 +4,29 @@ import path from 'path'; | ||
4 | import fs from 'fs-extra'; | 4 | import fs from 'fs-extra'; |
5 | import { isEqual } from 'lodash'; | 5 | import { isEqual } from 'lodash'; |
6 | import { sh } from 'tasksfile'; | 6 | import { sh } from 'tasksfile'; |
7 | -import { successConsole, errorConsole } from '../utils'; | 7 | +import { |
8 | + successConsole, | ||
9 | + // errorConsole | ||
10 | +} from '../utils'; | ||
8 | 11 | ||
9 | const resolve = (dir: string) => { | 12 | const resolve = (dir: string) => { |
10 | return path.resolve(process.cwd(), dir); | 13 | return path.resolve(process.cwd(), dir); |
11 | }; | 14 | }; |
12 | 15 | ||
13 | -const reg = /[\u4E00-\u9FA5\uF900-\uFA2D]/; | 16 | +// const reg = /[\u4E00-\u9FA5\uF900-\uFA2D]/; |
14 | 17 | ||
15 | let NEED_INSTALL = false; | 18 | let NEED_INSTALL = false; |
16 | 19 | ||
17 | export async function runPreserve() { | 20 | export async function runPreserve() { |
18 | - const cwdPath = process.cwd(); | ||
19 | - if (reg.test(cwdPath)) { | ||
20 | - errorConsole( | ||
21 | - 'Do not include Chinese, Japanese or Korean in the full path of the project directory, please modify the directory name and run again!' | ||
22 | - ); | ||
23 | - errorConsole('项目目录全路径请勿包含中文、日文、韩文,请修改目录名后再次重新运行!'); | ||
24 | - process.exit(1); | ||
25 | - } | 21 | + // rc.6 fixed |
22 | + // const cwdPath = process.cwd(); | ||
23 | + // if (reg.test(cwdPath)) { | ||
24 | + // errorConsole( | ||
25 | + // 'Do not include Chinese, Japanese or Korean in the full path of the project directory, please modify the directory name and run again!' | ||
26 | + // ); | ||
27 | + // errorConsole('项目目录全路径请勿包含中文、日文、韩文,请修改目录名后再次重新运行!'); | ||
28 | + // process.exit(1); | ||
29 | + // } | ||
26 | 30 | ||
27 | fs.mkdirp(resolve('build/.cache')); | 31 | fs.mkdirp(resolve('build/.cache')); |
28 | function checkPkgUpdate() { | 32 | function checkPkgUpdate() { |
package.json
@@ -55,7 +55,6 @@ | @@ -55,7 +55,6 @@ | ||
55 | "@types/nprogress": "^0.2.0", | 55 | "@types/nprogress": "^0.2.0", |
56 | "@types/qrcode": "^1.3.5", | 56 | "@types/qrcode": "^1.3.5", |
57 | "@types/rollup-plugin-visualizer": "^2.6.0", | 57 | "@types/rollup-plugin-visualizer": "^2.6.0", |
58 | - "@types/shelljs": "^0.8.8", | ||
59 | "@types/yargs": "^15.0.9", | 58 | "@types/yargs": "^15.0.9", |
60 | "@types/zxcvbn": "^4.4.0", | 59 | "@types/zxcvbn": "^4.4.0", |
61 | "@typescript-eslint/eslint-plugin": "^4.5.0", | 60 | "@typescript-eslint/eslint-plugin": "^4.5.0", |
@@ -84,7 +83,6 @@ | @@ -84,7 +83,6 @@ | ||
84 | "rimraf": "^3.0.2", | 83 | "rimraf": "^3.0.2", |
85 | "rollup-plugin-analyzer": "^3.3.0", | 84 | "rollup-plugin-analyzer": "^3.3.0", |
86 | "rollup-plugin-visualizer": "^4.1.1", | 85 | "rollup-plugin-visualizer": "^4.1.1", |
87 | - "shelljs": "^0.8.4", | ||
88 | "stylelint": "^13.7.2", | 86 | "stylelint": "^13.7.2", |
89 | "stylelint-config-prettier": "^8.0.2", | 87 | "stylelint-config-prettier": "^8.0.2", |
90 | "stylelint-config-standard": "^20.0.0", | 88 | "stylelint-config-standard": "^20.0.0", |
src/layouts/default/multitabs/index.less
@@ -76,7 +76,7 @@ | @@ -76,7 +76,7 @@ | ||
76 | color: @white; | 76 | color: @white; |
77 | background: linear-gradient( | 77 | background: linear-gradient( |
78 | 118deg, | 78 | 118deg, |
79 | - rgba(@primary-color, 0.7), | 79 | + rgba(@primary-color, 0.8), |
80 | rgba(@primary-color, 1) | 80 | rgba(@primary-color, 1) |
81 | ) !important; | 81 | ) !important; |
82 | border: 0; | 82 | border: 0; |
yarn.lock
@@ -620,14 +620,6 @@ | @@ -620,14 +620,6 @@ | ||
620 | dependencies: | 620 | dependencies: |
621 | "@types/node" "*" | 621 | "@types/node" "*" |
622 | 622 | ||
623 | -"@types/glob@*": | ||
624 | - version "7.1.3" | ||
625 | - resolved "https://registry.npmjs.org/@types/glob/-/glob-7.1.3.tgz#e6ba80f36b7daad2c685acd9266382e68985c183" | ||
626 | - integrity sha512-SEYeGAIQIQX8NN6LDKprLjbrd5dARM5EXsd8GI/A5l0apYI1fGMWgPHSe4ZKL4eozlAyI+doUE9XbYS4xCkQ1w== | ||
627 | - dependencies: | ||
628 | - "@types/minimatch" "*" | ||
629 | - "@types/node" "*" | ||
630 | - | ||
631 | "@types/html-minifier@^4.0.0": | 623 | "@types/html-minifier@^4.0.0": |
632 | version "4.0.0" | 624 | version "4.0.0" |
633 | resolved "https://registry.npmjs.org/@types/html-minifier/-/html-minifier-4.0.0.tgz#2065cb9944f2d1b241146707c6935aa7b947d279" | 625 | resolved "https://registry.npmjs.org/@types/html-minifier/-/html-minifier-4.0.0.tgz#2065cb9944f2d1b241146707c6935aa7b947d279" |
@@ -737,11 +729,6 @@ | @@ -737,11 +729,6 @@ | ||
737 | resolved "https://registry.npmjs.org/@types/mime/-/mime-2.0.3.tgz#c893b73721db73699943bfc3653b1deb7faa4a3a" | 729 | resolved "https://registry.npmjs.org/@types/mime/-/mime-2.0.3.tgz#c893b73721db73699943bfc3653b1deb7faa4a3a" |
738 | integrity sha512-Jus9s4CDbqwocc5pOAnh8ShfrnMcPHuJYzVcSUU7lrh8Ni5HuIqX3oilL86p3dlTrk0LzHRCgA/GQ7uNCw6l2Q== | 730 | integrity sha512-Jus9s4CDbqwocc5pOAnh8ShfrnMcPHuJYzVcSUU7lrh8Ni5HuIqX3oilL86p3dlTrk0LzHRCgA/GQ7uNCw6l2Q== |
739 | 731 | ||
740 | -"@types/minimatch@*": | ||
741 | - version "3.0.3" | ||
742 | - resolved "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d" | ||
743 | - integrity sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA== | ||
744 | - | ||
745 | "@types/minimist@^1.2.0": | 732 | "@types/minimist@^1.2.0": |
746 | version "1.2.0" | 733 | version "1.2.0" |
747 | resolved "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.0.tgz#69a23a3ad29caf0097f06eda59b361ee2f0639f6" | 734 | resolved "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.0.tgz#69a23a3ad29caf0097f06eda59b361ee2f0639f6" |
@@ -817,14 +804,6 @@ | @@ -817,14 +804,6 @@ | ||
817 | "@types/express-serve-static-core" "*" | 804 | "@types/express-serve-static-core" "*" |
818 | "@types/mime" "*" | 805 | "@types/mime" "*" |
819 | 806 | ||
820 | -"@types/shelljs@^0.8.8": | ||
821 | - version "0.8.8" | ||
822 | - resolved "https://registry.npmjs.org/@types/shelljs/-/shelljs-0.8.8.tgz#e439c69929b88a2c8123c1a55e09eb708315addf" | ||
823 | - integrity sha512-lD3LWdg6j8r0VRBFahJVaxoW0SIcswxKaFUrmKl33RJVeeoNYQAz4uqCJ5Z6v4oIBOsC5GozX+I5SorIKiTcQA== | ||
824 | - dependencies: | ||
825 | - "@types/glob" "*" | ||
826 | - "@types/node" "*" | ||
827 | - | ||
828 | "@types/through@*": | 807 | "@types/through@*": |
829 | version "0.0.30" | 808 | version "0.0.30" |
830 | resolved "https://registry.npmjs.org/@types/through/-/through-0.0.30.tgz#e0e42ce77e897bd6aead6f6ea62aeb135b8a3895" | 809 | resolved "https://registry.npmjs.org/@types/through/-/through-0.0.30.tgz#e0e42ce77e897bd6aead6f6ea62aeb135b8a3895" |
@@ -6049,7 +6028,7 @@ shebang-regex@^3.0.0: | @@ -6049,7 +6028,7 @@ shebang-regex@^3.0.0: | ||
6049 | resolved "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" | 6028 | resolved "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" |
6050 | integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== | 6029 | integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== |
6051 | 6030 | ||
6052 | -shelljs@^0.8.3, shelljs@^0.8.4: | 6031 | +shelljs@^0.8.3: |
6053 | version "0.8.4" | 6032 | version "0.8.4" |
6054 | resolved "https://registry.npmjs.org/shelljs/-/shelljs-0.8.4.tgz#de7684feeb767f8716b326078a8a00875890e3c2" | 6033 | resolved "https://registry.npmjs.org/shelljs/-/shelljs-0.8.4.tgz#de7684feeb767f8716b326078a8a00875890e3c2" |
6055 | integrity sha512-7gk3UZ9kOfPLIAbslLzyWeGiEqx9e3rxwZM0KE6EL8GlGwjym9Mrlx5/p33bWTu9YG6vcS4MBxYZDHYr5lr8BQ== | 6034 | integrity sha512-7gk3UZ9kOfPLIAbslLzyWeGiEqx9e3rxwZM0KE6EL8GlGwjym9Mrlx5/p33bWTu9YG6vcS4MBxYZDHYr5lr8BQ== |