Skip to content

Commit

Permalink
fix: add verifications for bad translation mismatches (#795)
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno authored Apr 3, 2024
1 parent a5f7599 commit b2a4a4e
Show file tree
Hide file tree
Showing 22 changed files with 10,116 additions and 6,762 deletions.
9 changes: 9 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"presets": [
"@babel/preset-env"
],
"plugins": [
"@babel/plugin-transform-class-properties",
"@babel/plugin-transform-private-methods"
]
}
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export GAMES=UTIL,LOGGING,CODES,FUN,WARFRAME,DESTINY2,GIVEAWAYS,CUST_COMMANDS,ROOMS,BLOCK,CMD_MGMT,BOT_MGMT
export SKIP_INVALID_CMDS=false
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/resources/*.json
19 changes: 19 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
extends: '@wfcd/eslint-config/esm'
parser: '@babel/eslint-parser'
parserOptions:
sourceType: module
ecmaVersion: 6
ecmaFeatures:
modules: true
babelOptions:
plugins:
- '@babel/plugin-transform-class-properties'
- '@babel/plugin-transform-private-methods'
rules:
no-unsafe-optional-chaining: 'off'
no-constructor-return: 'off'
import/extensions:
- error
- ignorePackages
import/no-named-as-default: 'off'
import/no-named-as-default-member: 'off'
35 changes: 28 additions & 7 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,32 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
- package-ecosystem: npm
directory: "/"
schedule:
interval: "weekly"
day: "monday"
time: "00:00"
commit-message:
prefix: "ci"
labels:
- "Scope: Dependencies"
- "Type: Maintenance"
open-pull-requests-limit: 10
pull-request-branch-name:
separator: "-"
rebase-strategy: "auto"
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: "weekly"
day: "monday"
time: "00:00"
commit-message:
prefix: "ci"
labels:
- "Scope: Dependencies"
- "Type: Maintenance"
open-pull-requests-limit: 10
pull-request-branch-name:
separator: "-"
rebase-strategy: "auto"
4 changes: 3 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
with:
node-version-file: '.nvmrc'
- name: Install Dependencies
run: npm install
run: npm ci
- name: Run linters
run: npm run lint
- name: Run Tests
run: npm test
12 changes: 8 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ jobs:
persist-credentials: false
- uses: actions/setup-node@v3
with:
node-version: '14'
node-version-file: '.nvmrc'
- run: |
npm ci
npm run lint
npm test
- name: Semantic Release
uses: cycjimmy/[email protected]
env:
Expand Down Expand Up @@ -63,10 +67,10 @@ jobs:
DEPLOY_BRANCH: ${{ secrets.DEPLOY_BRANCH }}
- name: Stop Bot Process
if: ${{ steps.release.outputs.release == 'yes' }}
run: ssh bot 'source ~/.zshrc && cd ~/services/genesis-docker && { make -f docker.Makefile down_prod } || echo "Nothing to stop"'
run: ssh bot 'source ~/.zshrc && cd ${{ secrets.DEPLOY_DIR }} && { make -f docker.Makefile down_prod } || echo "Nothing to stop"'
- name: Update Containers
if: ${{ steps.release.outputs.release == 'yes' }}
run: ssh bot 'source ~/.zshrc && cd ~/services/genesis-docker && make -f docker.Makefile submod bot notifier'
run: ssh bot 'source ~/.zshrc && cd ${{ secrets.DEPLOY_DIR }} && make -f docker.Makefile submod bot notifier'
- name: Restart Containers
if: ${{ steps.release.outputs.release == 'yes' }}
run: ssh bot 'source ~/.zshrc && cd ~/services/genesis-docker && make -f docker.Makefile up_prod'
run: ssh bot 'source ~/.zshrc && cd ${{ secrets.DEPLOY_DIR }} && make -f docker.Makefile up_prod'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@ docker-compose.yaml

.cache/
.run
.eslintcache
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx --no -- commitlint --edit $1
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
9 changes: 9 additions & 0 deletions .lintstagedrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'*.js':
- eslint --cache --fix
- npm test
package*.json:
- prettier --write
- npm dedupe
- npx sort-package-json
'*.{json,yml,yaml},!package*.json':
- prettier --write
5 changes: 5 additions & 0 deletions .mocharc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
slow: 10000
timeout: 10000
spec: spec/**/*.spec.js
require:
- dotenv/config
18 changes: 18 additions & 0 deletions .releaserc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
plugins:
- '@semantic-release/commit-analyzer'
- - '@semantic-release/exec'
- successCmd: echo 'yes' >> .release
failCmd: echo 'no' >> .release
- '@semantic-release/release-notes-generator'
- - '@semantic-release/npm'
- npmPublish: false
- '@semantic-release/github'
- - '@semantic-release/changelog'
- assets:
- CHANGELOG.md
- - '@semantic-release/git'
- assets:
- package.json
- CHANGELOG.md
- '@eclass/semantic-release-sentry-releases'
branches: master
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default { extends: ['@commitlint/config-conventional'] };
Loading

0 comments on commit b2a4a4e

Please sign in to comment.