-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: jestによるテストができるように。誕生日コマンドの挙動を改善 (#309)
* feat: jestによるテストができるように変更 * feat: birthdayコマンドの挙動を改善
- Loading branch information
Showing
20 changed files
with
3,006 additions
and
727 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"ignores": [ | ||
"@types/node", | ||
"run-z", | ||
"@types/jest", | ||
"typescript-json-schema" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Auto add reviewer | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- reopened | ||
branches: | ||
- main | ||
- master | ||
|
||
jobs: | ||
add-reviewer: | ||
name: Add reviewer | ||
uses: book000/templates/.github/workflows/reusable-add-reviewer.yml@master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,3 +38,4 @@ jobs: | |
secrets: | ||
DOCKER_USERNAME: ${{ github.actor }} | ||
DOCKER_PASSWORD: ${{ secrets.GITHUB_TOKEN }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Node.js でビルド・テストを実行する。バージョンは .node-version に記載されているものを利用する | ||
|
||
name: Node CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
pull_request: | ||
branches: | ||
- main | ||
- master | ||
|
||
jobs: | ||
node-ci: | ||
name: Node CI | ||
uses: book000/templates/.github/workflows/reusable-nodejs-ci-pnpm.yml@master |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,36 @@ | ||
{ | ||
"name": "jaotan.ts", | ||
"version": "0.0.0", | ||
"description": "jaotan.ts", | ||
"description": "jao Gamers Club Official Discord Bot for TypeScript", | ||
"homepage": "https://github.com/jaoafa/jaotan.ts", | ||
"bugs": { | ||
"url": "https://github.com/jaoafa/jaotan.ts/issues" | ||
}, | ||
"license": "MIT", | ||
"author": "jao Community", | ||
"private": true, | ||
"main": "dist/main.js", | ||
"repository": "[email protected]:jaoafa/jaotan.ts.git", | ||
"repository": { | ||
"type": "git", | ||
"url": "[email protected]:jaoafa/jaotan.ts.git" | ||
}, | ||
"scripts": { | ||
"preinstall": "npx only-allow pnpm", | ||
"clean": "rimraf dist output", | ||
"compile": "tsc -p .", | ||
"dev": "tsx watch ./src/main.ts", | ||
"fix": "run-s fix:prettier fix:eslint", | ||
"fix:eslint": "eslint . --ext ts,tsx --fix", | ||
"fix:prettier": "prettier --write src", | ||
"lint": "run-p -c lint:prettier lint:eslint lint:tsc", | ||
"lint:eslint": "eslint . --ext ts,tsx", | ||
"lint:prettier": "prettier --check src", | ||
"lint:eslint": "eslint . --ext ts,tsx", | ||
"start": "tsx ./src/main.ts", | ||
"lint:tsc": "tsc", | ||
"start": "tsx ./src/main.ts" | ||
"fix": "run-z fix:prettier fix:eslint", | ||
"fix:eslint": "eslint . --ext ts,tsx --fix", | ||
"test": "jest --runInBand --passWithNoTests --detectOpenHandles --forceExit", | ||
"fix:prettier": "prettier --write src", | ||
"lint": "run-z lint:prettier,lint:eslint,lint:tsc", | ||
"generate-schema": "typescript-json-schema --required src/config.ts ConfigInterface -o schema/Configuration.json" | ||
}, | ||
"devDependencies": { | ||
"@book000/node-utils": "1.12.14", | ||
"@types/node": "20.8.7", | ||
"@types/jest": "29.5.11", | ||
"@types/node": "20.10.6", | ||
"@types/node-cron": "3.0.11", | ||
"@typescript-eslint/eslint-plugin": "6.17.0", | ||
"@typescript-eslint/parser": "6.17.0", | ||
|
@@ -38,16 +46,34 @@ | |
"eslint-plugin-promise": "6.1.1", | ||
"eslint-plugin-unicorn": "50.0.1", | ||
"node-cron": "3.0.3", | ||
"jest": "29.7.0", | ||
"jest-expect-message": "1.1.3", | ||
"prettier": "3.1.1", | ||
"run-z": "2.0.0", | ||
"ts-jest": "29.1.1", | ||
"tsx": "4.7.0", | ||
"typescript": "5.3.3", | ||
"yarn-run-all": "3.1.1" | ||
}, | ||
"engines": { | ||
"node": ">=18" | ||
"typescript-json-schema": "0.62.0" | ||
}, | ||
"volta": { | ||
"node": "18.19.0" | ||
"jest": { | ||
"moduleFileExtensions": [ | ||
"js", | ||
"ts" | ||
], | ||
"testMatch": [ | ||
"**/*.test.ts" | ||
], | ||
"transform": { | ||
"^.+\\.ts$": [ | ||
"ts-jest", | ||
{ | ||
"tsconfig": "tsconfig.json" | ||
} | ||
] | ||
}, | ||
"setupFilesAfterEnv": [ | ||
"jest-expect-message" | ||
] | ||
}, | ||
"packageManager": "[email protected]" | ||
} | ||
} |
Oops, something went wrong.