Skip to content

Commit

Permalink
chore: update repo config
Browse files Browse the repository at this point in the history
  • Loading branch information
moonrailgun committed Feb 19, 2023
1 parent b6add42 commit 11fe624
Show file tree
Hide file tree
Showing 11 changed files with 30 additions and 25 deletions.
4 changes: 3 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ website
page
client/desktop
client/desktop-old
client/app
client/mobile
apps
server/admin-next
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ module.exports = {
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-var-requires': 'off',
'react/prop-types': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/ban-types': 'off',
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off',
},
};
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ client/locales
.vercel
.DS_Store

# yalc
.yalc
yalc.lock

Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

pnpm lint-staged
npx lint-staged
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# https://npmmirror.com/
registry = https://registry.npmmirror.com
strict-peer-dependencies = false
strict-peer-dependencies = false # some dependency is not fit tailchat, tailchat's dependency is complex, every peer dependencies problem should check with manual.
2 changes: 1 addition & 1 deletion .release-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"publish": false
},
"hooks": {
"after:bump": "echo 更新版本成功"
"after:bump": "echo Version Upgrade Success. checkout more in CHANGELOG"
},
"plugins": {
"@release-it/conventional-changelog": {
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ RUN pnpm run build
# web static service port
EXPOSE 3000

# Start server
# Start server, ENV var is necessary
CMD ["pnpm", "start:service"]
16 changes: 8 additions & 8 deletions commitlint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
* document: https://commitlint.js.org/#/reference-configuration
*
* https://github.com/angular/angular/blob/master/CONTRIBUTING.md#type
* feat:新功能(feature)
* fix:修补bug
* docs:文档(documentation)
* style: 格式(不影响代码运行的变动)
* refactor:重构(即不是新增功能,也不是修改bug的代码变动)
* perf:性能优化
* test:增加测试
* chore:构建过程或辅助工具的变动
* feat:new feature 新功能(feature)
* fix:bug fix 修补bug
* docs:document 文档(documentation)
* style:style(Changes that do not affect code execution) 格式(不影响代码运行的变动)
* refactor:Refactoring (i.e., code changes that are not new features or bug fixes) 重构(即不是新增功能,也不是修改bug的代码变动)
* perf:performance optimization 性能优化
* test:add test case 增加测试
* chore:Changes to the build process or accessibility tools 构建过程或辅助工具的变动
*/

module.exports = {
Expand Down
21 changes: 11 additions & 10 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "3.3"

services:
# 应用网关
# Gateway
service-gateway:
build:
context: .
Expand All @@ -21,7 +21,7 @@ services:
networks:
- internal

# 用户服务
# User Service
service-user:
build:
context: .
Expand All @@ -36,7 +36,7 @@ services:
networks:
- internal

# 群组服务
# Group Service
service-group:
build:
context: .
Expand All @@ -51,7 +51,7 @@ services:
networks:
- internal

# 聊天服务
# Chat Service
service-chat:
build:
context: .
Expand All @@ -66,7 +66,7 @@ services:
networks:
- internal

# 文件服务 / 插件注册中心 / 配置服务
# File Service / Plugin Registry / Configuration Service
service-file:
build:
context: .
Expand All @@ -82,6 +82,7 @@ services:
networks:
- internal

# Open Platform
service-openapi:
build:
context: .
Expand All @@ -103,7 +104,7 @@ services:
networks:
- internal

# 插件服务(所有插件)
# Plugin Service (All Plugins)
service-all-plugins:
build:
context: .
Expand All @@ -119,7 +120,7 @@ services:
networks:
- internal

# 数据库
# Database
mongo:
image: mongo:4
restart: on-failure
Expand All @@ -128,14 +129,14 @@ services:
networks:
- internal

# 数据缓存与中转通讯
# Data cache and Transporter
redis:
image: redis:alpine
restart: on-failure
networks:
- internal

# 存储服务
# Persist Storage
minio:
image: minio/minio
restart: on-failure
Expand All @@ -148,7 +149,7 @@ services:
- storage:/data
command: minio server /data --console-address ":9001"

# 路由转发
# Router
traefik:
image: traefik:v2.1
restart: unless-stopped
Expand Down
2 changes: 1 addition & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ packages:
- 'client/packages/**'
- 'server'
- 'server/admin'
- 'server/admin-next'
- 'server/admin-next' # wait for delete
- 'server/packages/**'
- 'server/plugins/**'
- 'server/test/demo/**'
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"esModuleInterop": true,
"isolatedModules": true,
"strict": true,
"pretty": true,
"importsNotUsedAsValues": "error",
"experimentalDecorators": true,
}
Expand Down

0 comments on commit 11fe624

Please sign in to comment.