Skip to content

Commit 8e50abf

Browse files
author
chufan
committed
feat: ci流程优化,修复部分脚本异常
1 parent 871d031 commit 8e50abf

File tree

14 files changed

+174
-218
lines changed

14 files changed

+174
-218
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,3 @@ docs/.vuepress/dist/
9595
.tern-port
9696
/docs/.vuepress/.temp/
9797
/.husky/
98-
/.husky/

.npmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
shamefully-hoist=true
22
registry=https://registry.npmmirror.com
33
## 锁定node版本
4-
engine-strict = true
4+
## engine-strict = true

Dockerfile

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
11
#
22
# - 功能: 构建JavaScriptCollection镜像
3-
# - 用法: docker build -f Dockerfile --build-arg APP_VERSION=0.0.1 -t JavaScriptCollection-0.0.1 .
3+
# - 用法: docker build -f Dockerfile --build-arg APP_VERSION=0.0.1 -build-arg CONTAINER_BUILD=true -t JavaScriptCollection-0.0.1 .
4+
# - 参数:
5+
# APP_VERSION: 版本
6+
# CONTAINER_BUILD: 采用容器构建
47
#
5-
## 注意:vite构建需要支持node14以上,安装node16较为稳妥
8+
# 注意:vite构建需要支持node14以上,安装node16较为稳妥
69
FROM registry.cn-hangzhou.aliyuncs.com/142vip/node:16.12.0-alpine AS build_base
710

8-
RUN mkdir -p /apps
11+
ARG CONTAINER_BUILD
912
## 确定工作空间 /apps
1013
WORKDIR /apps
1114
COPY . .
1215

13-
## 安装依赖
14-
RUN npm i pnpm@6 -g && pnpm i -D && pnpm build
16+
RUN echo $CONTAINER_BUILD
17+
18+
## 基于容器自动构建
19+
RUN if [ "$CONTAINER_BUILD" = "true" ]; then \
20+
npm i pnpm@7 -g && pnpm i -D && pnpm build; \
21+
fi;
22+
1523

1624
FROM registry.cn-hangzhou.aliyuncs.com/142vip/nginx:1.23.0-alpine
1725
ARG APP_VERSION

Faster.Dockerfile

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

Readme.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,17 @@ Nestjs框架推崇typescript语法,并且友好的兼容express框架,因此
607607

608608
**以下排名不分先后! 还木有收到赞助,哈哈哈,先留坑**
609609

610+
## 贡献
611+
612+
感谢向仓库提交mr的所有开发者
613+
614+
[![contributors](https://contrib.rocks/image?repo=142vip/JavaScriptCollection)](https://github.com/142vip/JavaScriptCollection/graphs/contributors)
615+
616+
## 趋势
617+
618+
<div style="text-align: center" align="center">
619+
<img alt="Star History" src="https://api.star-history.com/svg?repos=142vip/JavaScriptCollection&type=Date" >
620+
</div>
610621

611622

612623

code/algorithm/getNumberOfK.js

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

code/node/typescript/demo-1.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,31 @@ export default {
77
}
88

99
// 布尔类型
10-
const isSuccess:boolean=true
10+
const isSuccess:boolean = true
1111
console.log(isSuccess)
1212

1313
// number类型
14-
const a:number=123
14+
const a:number = 123
1515
console.log(a)
1616

1717
// string类型
18-
const name="chufan"
18+
const name = 'chufan'
1919
console.log(name)
2020

2121
// 模板字符串
22-
const sister:string=`hello,${name}`
22+
const sister:string = `hello,${name}`
2323
console.log(sister)
2424

2525

26-
/* 数组*/
27-
const list:number[]=[1,2,3,4]
28-
const arrayList:Array<number>=[1,2,3,4]
29-
console.log(list,arrayList)
26+
/* 数组 */
27+
const list:number[] = [1, 2, 3, 4]
28+
const arrayList:Array<number> = [1, 2, 3, 4]
29+
console.log(list, arrayList)
3030

31-
const tupleResult:[string,number]=['chufan',23]
31+
const tupleResult:[string, number] = ['chufan', 23]
3232
console.log(tupleResult)
3333

34-
/*枚举*/
34+
/* 枚举 */
3535
enum COLOR{
3636
RED=0,
3737
GREEN=1,
@@ -42,15 +42,15 @@ enum NAME{
4242
liSi='liSi'
4343
}
4444

45-
console.log(COLOR.BLUE,NAME.zhangSan)
45+
console.log(COLOR.BLUE, NAME.zhangSan)
4646

4747

48-
/*void*/
48+
/* void */
4949
// 函数返回值为空
50-
function testVoid(a:number):void{
50+
function testVoid(a:number):void {
5151
console.log(a)
5252
}
53-
const aVoid:void=null
54-
const bVoid:void=undefined
55-
console.log(aVoid,bVoid)
53+
const aVoid:void = null
54+
const bVoid:void = undefined
55+
console.log(aVoid, bVoid)
5656

0 commit comments

Comments
 (0)