Skip to content

Commit 0fa10da

Browse files
authored
Merge pull request #27 from mmdapl/next
feat: 一些优化
2 parents 789f911 + 0221cfd commit 0fa10da

File tree

7 files changed

+22
-6
lines changed

7 files changed

+22
-6
lines changed

Readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -786,9 +786,11 @@ Nestjs框架推崇typescript语法,并且友好的兼容express框架,因此
786786
<table style="border:none;cell-padding:0; cell-spacing:0;border-collapse:collapse;" border="0">
787787
<img src="https://cdn.staticaly.com/gh/142vip/cdn_service@main/media/fairy-sister-450x450.jpg"
788788
width="250px"
789+
style="margin: 10px"
789790
title="欢迎关注公众号:Rong姐姐好可爱" alt="关注公众号"/>
790791
<img src="https://cdn.staticaly.com/gh/142vip/cdn_service@main/media/chu-fan-443-650x650.jpg"
791792
width="250px"
793+
style="margin: 10px"
792794
title="欢迎添加微信:chufan443 " alt="联系作者"/>
793795
</table>
794796
</div>

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/quick-start.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ headerDepth:4
99
<table style="border:none;cell-padding:0; cell-spacing:0;border-collapse:collapse;" border="0">
1010
<img src="https://cdn.staticaly.com/gh/142vip/cdn_service@main/media/fairy-sister-450x450.jpg"
1111
width="250px"
12+
style="margin: 10px"
1213
title="欢迎关注公众号:Rong姐姐好可爱" alt="关注公众号"/>
1314
<img src="https://cdn.staticaly.com/gh/142vip/cdn_service@main/media/chu-fan-443-650x650.jpg"
1415
width="250px"
16+
style="margin: 10px"
1517
title="欢迎添加微信:chufan443 " alt="联系作者"/>
1618
</table>
1719
</div>

docs/readme.md

Lines changed: 2 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

@@ -158,9 +157,11 @@ yarn run dev
158157
<table style="border:none;cell-padding:0; cell-spacing:0;border-collapse:collapse;" border="0">
159158
<img src="https://cdn.staticaly.com/gh/142vip/cdn_service@main/media/fairy-sister-450x450.jpg"
160159
width="250px"
160+
style="margin: 10px"
161161
title="欢迎关注公众号:Rong姐姐好可爱" alt="关注公众号"/>
162162
<img src="https://cdn.staticaly.com/gh/142vip/cdn_service@main/media/chu-fan-443-650x650.jpg"
163163
width="250px"
164+
style="margin: 10px"
164165
title="欢迎添加微信:chufan443 " alt="联系作者"/>
165166
</table>
166167
</div>

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)