chore: update repo config

pull/90/head
moonrailgun 2 years ago
parent b6add42851
commit 11fe624e35

@ -6,4 +6,6 @@ website
page page
client/desktop client/desktop
client/desktop-old client/desktop-old
client/app client/mobile
apps
server/admin-next

@ -28,9 +28,9 @@ module.exports = {
'@typescript-eslint/explicit-module-boundary-types': 'off', '@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-empty-function': 'off', '@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-var-requires': 'off', '@typescript-eslint/no-var-requires': 'off',
'react/prop-types': 'off',
'@typescript-eslint/ban-ts-comment': 'off', '@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/ban-types': 'off', '@typescript-eslint/ban-types': 'off',
'react/react-in-jsx-scope': 'off', 'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off',
}, },
}; };

1
.gitignore vendored

@ -3,6 +3,7 @@ client/locales
.vercel .vercel
.DS_Store .DS_Store
# yalc
.yalc .yalc
yalc.lock yalc.lock

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
. "$(dirname "$0")/_/husky.sh" . "$(dirname "$0")/_/husky.sh"
pnpm lint-staged npx lint-staged

@ -1,3 +1,3 @@
# https://npmmirror.com/ # https://npmmirror.com/
registry = https://registry.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.

@ -9,7 +9,7 @@
"publish": false "publish": false
}, },
"hooks": { "hooks": {
"after:bump": "echo 更新版本成功" "after:bump": "echo Version Upgrade Success. checkout more in CHANGELOG"
}, },
"plugins": { "plugins": {
"@release-it/conventional-changelog": { "@release-it/conventional-changelog": {

@ -40,5 +40,5 @@ RUN pnpm run build
# web static service port # web static service port
EXPOSE 3000 EXPOSE 3000
# Start server # Start server, ENV var is necessary
CMD ["pnpm", "start:service"] CMD ["pnpm", "start:service"]

@ -2,14 +2,14 @@
* document: https://commitlint.js.org/#/reference-configuration * document: https://commitlint.js.org/#/reference-configuration
* *
* https://github.com/angular/angular/blob/master/CONTRIBUTING.md#type * https://github.com/angular/angular/blob/master/CONTRIBUTING.md#type
* feat新功能feature * featnew feature 新功能feature
* fix修补bug * fixbug fix 修补bug
* docs文档documentation * docsdocument 文档documentation
* style 格式不影响代码运行的变动 * stylestyle(Changes that do not affect code execution) 格式不影响代码运行的变动
* refactor重构即不是新增功能也不是修改bug的代码变动 * refactorRefactoring (i.e., code changes that are not new features or bug fixes) 重构即不是新增功能也不是修改bug的代码变动
* perf性能优化 * perfperformance optimization 性能优化
* test增加测试 * testadd test case 增加测试
* chore构建过程或辅助工具的变动 * choreChanges to the build process or accessibility tools 构建过程或辅助工具的变动
*/ */
module.exports = { module.exports = {

@ -1,7 +1,7 @@
version: "3.3" version: "3.3"
services: services:
# 应用网关 # Gateway
service-gateway: service-gateway:
build: build:
context: . context: .
@ -21,7 +21,7 @@ services:
networks: networks:
- internal - internal
# 用户服务 # User Service
service-user: service-user:
build: build:
context: . context: .
@ -36,7 +36,7 @@ services:
networks: networks:
- internal - internal
# 群组服务 # Group Service
service-group: service-group:
build: build:
context: . context: .
@ -51,7 +51,7 @@ services:
networks: networks:
- internal - internal
# 聊天服务 # Chat Service
service-chat: service-chat:
build: build:
context: . context: .
@ -66,7 +66,7 @@ services:
networks: networks:
- internal - internal
# 文件服务 / 插件注册中心 / 配置服务 # File Service / Plugin Registry / Configuration Service
service-file: service-file:
build: build:
context: . context: .
@ -82,6 +82,7 @@ services:
networks: networks:
- internal - internal
# Open Platform
service-openapi: service-openapi:
build: build:
context: . context: .
@ -103,7 +104,7 @@ services:
networks: networks:
- internal - internal
# 插件服务(所有插件) # Plugin Service (All Plugins)
service-all-plugins: service-all-plugins:
build: build:
context: . context: .
@ -119,7 +120,7 @@ services:
networks: networks:
- internal - internal
# 数据库 # Database
mongo: mongo:
image: mongo:4 image: mongo:4
restart: on-failure restart: on-failure
@ -128,14 +129,14 @@ services:
networks: networks:
- internal - internal
# 数据缓存与中转通讯 # Data cache and Transporter
redis: redis:
image: redis:alpine image: redis:alpine
restart: on-failure restart: on-failure
networks: networks:
- internal - internal
# 存储服务 # Persist Storage
minio: minio:
image: minio/minio image: minio/minio
restart: on-failure restart: on-failure
@ -148,7 +149,7 @@ services:
- storage:/data - storage:/data
command: minio server /data --console-address ":9001" command: minio server /data --console-address ":9001"
# 路由转发 # Router
traefik: traefik:
image: traefik:v2.1 image: traefik:v2.1
restart: unless-stopped restart: unless-stopped

@ -6,7 +6,7 @@ packages:
- 'client/packages/**' - 'client/packages/**'
- 'server' - 'server'
- 'server/admin' - 'server/admin'
- 'server/admin-next' - 'server/admin-next' # wait for delete
- 'server/packages/**' - 'server/packages/**'
- 'server/plugins/**' - 'server/plugins/**'
- 'server/test/demo/**' - 'server/test/demo/**'

@ -3,6 +3,7 @@
"esModuleInterop": true, "esModuleInterop": true,
"isolatedModules": true, "isolatedModules": true,
"strict": true, "strict": true,
"pretty": true,
"importsNotUsedAsValues": "error", "importsNotUsedAsValues": "error",
"experimentalDecorators": true, "experimentalDecorators": true,
} }

Loading…
Cancel
Save