Skip to content

Commit 78795c3

Browse files
committed
feat: 删除dev脚本,脚本逻辑
1 parent af9a8b5 commit 78795c3

File tree

6 files changed

+9
-38
lines changed

6 files changed

+9
-38
lines changed

.github/workflows/CI.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ jobs:
7070

7171
- name: Build Site
7272
run: |
73-
./scripts/bundle build
73+
pnpm build
7474
7575
- name: Build Site With Proxy
7676
run: |
77-
./scripts/bundle build_proxy
77+
pnpm build:proxy
7878
7979
Build-Docker-Image:
8080
name: 构建Docker镜像
@@ -115,7 +115,7 @@ jobs:
115115
# 构建,支持domain
116116
- name: Build To Dist
117117
run: |
118-
./scripts/bundle build
118+
pnpm build
119119
120120
# 快速构建并推送
121121
- name: Push Docker Image

docs/develop-skill/code-style/engineering-lint.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,6 @@ pnpm install lint-staged -D
132132

133133
在项目根目录中新建`.lintstagedrc.js`文件
134134

135-
@[code js](~/.lintstagedrc.js)
136-
137135
以上规则是:
138136

139137
- 对js、ts、md文件进行ci校验

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"prepare": "husky install",
1919
"dev": "vuepress dev docs",
2020
"build": "vuepress build docs --clean-temp --clean-cache",
21-
"build:proxy": "./scripts/bundle build_proxy",
21+
"build:proxy": "PROXY_DOMAIN=true vuepress build docs --clean-temp --clean-cache",
2222
"deploy:vercel": "vercel --prod",
2323
"clean": "find . -name \"node_modules\" -type d -exec rm -rf '{}' + "
2424
},
@@ -31,6 +31,8 @@
3131
"clean": "快速删除本地依赖"
3232
},
3333
"devDependencies": {
34+
"@142vip/common": "0.0.1-alpha.5",
35+
"@142vip/release-version": "0.0.1-alpha.2",
3436
"@antfu/eslint-config": "^2.24.0",
3537
"@commitlint/cli": "^18.6.1",
3638
"@commitlint/config-conventional": "^18.6.3",
@@ -47,7 +49,6 @@
4749
"markdownlint-cli": "^0.37.0",
4850
"markmap-cli": "^0.15.8",
4951
"mermaid": "^10.9.1",
50-
"@142vip/release-version": "0.0.1-alpha.2",
5152
"reveal.js": "^5.1.0",
5253
"shelljs": "^0.8.5",
5354
"typescript": "^5.5.4",

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/bundle

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
*
44
* 将应用程序打包成可部署的包、文件、镜像
55
* 例如:
6-
* - ./scripts/bundle build 基础部署打包
7-
* - ./scripts/bundle build_proxy 用于三方平台部署打包
86
* - ./scripts/bundle image 构建容器镜像
97
* - ./scripts/bundle image_faster 本地build,快速构建容器镜像
108
* - ./scripts/bundle xxx 其他参数,默认执行build命令
@@ -98,12 +96,6 @@ async function getBuildImageScript({ containerBuild, preBuild, needProxy = false
9896
* 支持的脚本命令
9997
*/
10098
const SupportScripts = {
101-
build: 'vuepress build docs',
102-
build_proxy: 'PROXY_DOMAIN=true vuepress build docs',
103-
image: getBuildImageScript({
104-
containerBuild: true,
105-
needProxy: false
106-
}),
10799
image_proxy: getBuildImageScript({
108100
containerBuild: true,
109101
needProxy: true
@@ -127,16 +119,6 @@ async function getScriptCommand() {
127119
name: 'color',
128120
message: 'What script will you want to run ',
129121
choices: [
130-
{
131-
message: 'build',
132-
name: SupportScripts.build,
133-
value: '#00ffff'
134-
},
135-
{
136-
message: 'build for fixing proxy',
137-
name: SupportScripts.build_proxy,
138-
value: '#000000'
139-
},
140122
{
141123
message: 'build to docker image',
142124
name: SupportScripts.image,
@@ -170,6 +152,5 @@ async function getScriptCommand() {
170152
}catch (e) {
171153
console.log('异常信息:',e)
172154
}
173-
174155
})()
175156

scripts/dev

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)