Skip to content

Commit

Permalink
重構程式碼並減少功能
Browse files Browse the repository at this point in the history
  • Loading branch information
igncp committed Feb 25, 2024
1 parent 6f87a7b commit 4e14b25
Show file tree
Hide file tree
Showing 203 changed files with 1,723 additions and 6,043 deletions.
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
mahjong.json
Dockerfile.service
.git
node_modules
.next
out
**/mahjong_db
**/node_modules
3 changes: 0 additions & 3 deletions .eslint-common.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,11 @@ module.exports = {
rules: {
...disabledRules,

"@typescript-eslint/member-ordering": 2,
"arrow-body-style": 2,
"no-else-return": 2,
"object-shorthand": 2,
"prefer-destructuring": 2,
"prefer-template": 2,
"react/jsx-sort-props": 2,
"sort-keys": [2, "asc", { caseSensitive: false, natural: true }],
"spaced-comment": 2,
},
settings: {
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Run checks
run: |
touch ./scripts/nix/without-android
touch ./scripts/nix/is-checks-ci
nix develop path:$(pwd) -c rustup install stable
nix develop path:$(pwd) -c bash -c 'cd scripts && bash src/main.sh check'
10 changes: 10 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ on:
- "main"
workflow_dispatch:
inputs:
deploySkip:
required: false
description: "Skip (web|service|front)"
default: ""
deployOnly:
required: false
description: "Only (web|service|front)"
default: ""

jobs:
build:
Expand All @@ -34,6 +42,8 @@ jobs:
nix develop path:$(pwd) -c rustup install stable
- name: Build docker image
env:
DEPLOY_ONLY: ${{ github.event.inputs.deployOnly }}
DEPLOY_SKIP: ${{ github.event.inputs.deploySkip }}
NEXT_PUBLIC_GITHUB_CLIENT_ID: 5b79179dd44f90e1a63a
NEXT_PUBLIC_SERVICE_URL: https://mahjong-rust.com/api
run: |
Expand Down
Loading

0 comments on commit 4e14b25

Please sign in to comment.