Skip to content

Commit 0221cfd

Browse files
author
Chu Fan
committed
feat: update
1 parent 384ecd3 commit 0221cfd

File tree

5 files changed

+16
-6
lines changed

5 files changed

+16
-6
lines changed

docs/.vuepress/config.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,19 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url))
99
// 用于区分base路径,是否nginx代理
1010
const PROXY_DOMAIN = process.env.PROXY_DOMAIN || false
1111

12-
1312
export default defineUserConfig({
1413
title: "凡是过往、皆为序章",
1514
description: "一本有趣的JavaScript合集",
1615
base: PROXY_DOMAIN ? "/JavaScriptCollection/" : "/",
1716
port: 5000,
1817
head: [
19-
["link", {rel: "icon", href: "/fight_favicon.ico"}],
18+
[
19+
"link", {rel: "icon", href: "/fight_favicon.ico"}
20+
],
2021
// vercel统计 相关配置
21-
['script', {type: 'text/javascript', src: '/_vercel/insights/script.js'}]
22+
[
23+
'script', {type: 'text/javascript', src: '/_vercel/insights/script.js'}
24+
]
2225
],
2326
markdown: {
2427
// todo 引入代码文件时的路径替换
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
# Github-CI
3+
4+
5+
当提交代码后需要做的事情
6+
7+
- 安装pnpm和相关依赖
8+
- 进行eslint代码校验
9+
- 执行build操作

docs/readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ features:
3333

3434

3535

36-
---
3736

3837
<BiliBili bvid="BV1rd4y1V7tB" />
3938

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"scripts": {
99
"prepare": "husky install && npx husky add .husky/pre-commit \"npm run lintfix\" && chmod +x .husky/pre-commit",
1010
"clean": "find . -name \"node_modules\" -type d -exec rm -rf '{}' + && rm -rf docs/.vuepress/dist",
11-
"commit": "git cz",
1211
"dev": "vuepress dev docs",
1312
"build": "vuepress build docs",
1413
"build-proxy": "PROXY_DOMAIN=true vuepress build docs",

scripts/build_image.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ run(){
3434
echo -e "${successLogger}---------------- shell ${projectName} start ---------------- "
3535
if [ "${isFaster}" == "faster" ];then
3636
## 本地构建、快速制作镜像
37-
npm run build-proxy && docker build -f Faster.Dockerfile --build-arg APP_VERSION="${version}" -t "${imageTagName}" .
37+
npm run build && docker build -f Faster.Dockerfile --build-arg APP_VERSION="${version}" -t "${imageTagName}" .
3838
else
3939
## ci流程构建
4040
docker build -f Dockerfile --build-arg APP_VERSION="${version}" -t "${imageTagName}" .

0 commit comments

Comments
 (0)