@lark-apaas/coding-template-nestjs-react-fullstack 0.1.0-alpha.4 → 0.1.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/template/.env
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
# Application
|
|
2
2
|
# Server Configuration (NestJS)
|
|
3
3
|
SUDA_DATABASE_URL=
|
|
4
|
+
# 后端 NestJS 监听端口(被 scripts/dev.js 和 server/main.ts 读取,默认 3000)
|
|
5
|
+
# SERVER_PORT=3000
|
|
4
6
|
|
|
5
7
|
# Client Configuration
|
|
8
|
+
# 前端 dev server (Vite/Rspack) 监听端口(被 scripts/dev.js 读取,默认 8080;
|
|
9
|
+
# 本地开发需改端口时取消注释,例如 8001)
|
|
10
|
+
# CLIENT_DEV_PORT=8080
|
|
6
11
|
|
|
7
12
|
# Logger
|
|
8
13
|
LOG_DIR=./logs
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
trigger:
|
|
3
|
-
manual:
|
|
4
|
-
change:
|
|
5
|
-
types: [create, push, restore]
|
|
6
|
-
notification:
|
|
7
|
-
when: failure
|
|
8
|
-
jobs:
|
|
9
|
-
run_all:
|
|
10
|
-
runs-on:
|
|
11
|
-
env: online
|
|
12
|
-
spec: m1.2xlarge
|
|
13
|
-
name: CI Check
|
|
14
|
-
timeout: 30
|
|
15
|
-
image: hub.byted.org/compile/toutiao.compile_nodejs.v24:226b14276e1aa1db07ccc1e6d6055e8c
|
|
16
|
-
envs:
|
|
17
|
-
CI: 'true'
|
|
18
|
-
NODE_OPTIONS: '--max-old-space-size=8192'
|
|
19
|
-
steps:
|
|
20
|
-
- id: Checkout
|
|
21
|
-
uses: actions/checkout
|
|
22
|
-
inputs:
|
|
23
|
-
depth: 1
|
|
24
|
-
- name: Install dependencies
|
|
25
|
-
commands:
|
|
26
|
-
- npm config set registry=https://registry.npmmirror.com
|
|
27
|
-
- npm install --no-package-lock
|
|
28
|
-
- name: ESLint (应用模式)
|
|
29
|
-
parallel-with-next-step: true
|
|
30
|
-
commands:
|
|
31
|
-
- npm run eslint
|
|
32
|
-
- name: TypeScript Check
|
|
33
|
-
commands:
|
|
34
|
-
- npm run type:check
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
name: Code Review
|
|
2
|
-
trigger:
|
|
3
|
-
manual:
|
|
4
|
-
change:
|
|
5
|
-
branches: ['master']
|
|
6
|
-
types: [create, push]
|
|
7
|
-
jobs:
|
|
8
|
-
run_cr:
|
|
9
|
-
runs-on:
|
|
10
|
-
env: online
|
|
11
|
-
name: Coco Code Review
|
|
12
|
-
if: '${{ Event.Change.IsPreSubmit == false }}'
|
|
13
|
-
image: hub.byted.org/base/lbpe-code-review:latest
|
|
14
|
-
timeout: 30
|
|
15
|
-
envs:
|
|
16
|
-
MR_SOURCE_BRANCH: ${{Event.Change.Source.Branch}}
|
|
17
|
-
MR_TARGET_BRANCH: ${{Event.Change.Target.Branch}}
|
|
18
|
-
steps:
|
|
19
|
-
- name: Code Review
|
|
20
|
-
commands:
|
|
21
|
-
- mr-review ${{Event.Change.URL}}
|