-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
49 changed files
with
3,908 additions
and
3,280 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
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,7 @@ | ||
module.exports = { | ||
extends: ['@kbotdev/eslint-config'], | ||
parserOptions: { | ||
project: './tsconfig.eslint.json', | ||
tsconfigRootDir: __dirname | ||
} | ||
}; |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,6 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
"config:base", | ||
"group:allNonMajor" | ||
], | ||
"schedule": [ | ||
"before 10am on Saturday" | ||
], | ||
"labels": [ | ||
"dependencies" | ||
] | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": ["config:base", "group:allNonMajor"], | ||
"schedule": ["before 10am on Saturday"], | ||
"labels": ["dependencies"] | ||
} |
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ name: CD | |
on: | ||
push: | ||
tags: | ||
- '@kbotdev/*@[0-9]+.[0-9]+.[0-9]+' | ||
- "@kbotdev/*@[0-9]+.[0-9]+.[0-9]+" | ||
|
||
jobs: | ||
release: | ||
|
@@ -22,13 +22,13 @@ jobs: | |
- name: Create archive | ||
uses: thedoctor0/[email protected] | ||
with: | ||
type: 'zip' | ||
filename: 'release.zip' | ||
type: "zip" | ||
filename: "release.zip" | ||
|
||
- name: Create release | ||
uses: ncipollo/[email protected] | ||
with: | ||
artifacts: 'release.zip' | ||
artifacts: "release.zip" | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
publish: | ||
|
@@ -41,8 +41,12 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
include: | ||
- package: '@kbotdev/menus' | ||
folder: 'menus' | ||
- package: "@kbotdev/eslint-config" | ||
folder: "eslint-config" | ||
- package: "@kbotdev/prettier-config" | ||
folder: "prettier-config" | ||
- package: "@kbotdev/ts-config" | ||
folder: "ts-config" | ||
|
||
steps: | ||
- name: Check out Git repository | ||
|
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 |
---|---|---|
|
@@ -14,8 +14,8 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
check: | ||
name: Check | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
@@ -25,27 +25,7 @@ jobs: | |
- name: Set up NodeJS | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: yarn | ||
|
||
- name: Install dependencies | ||
run: yarn --immutable | ||
|
||
- name: Run lint | ||
run: yarn lint | ||
|
||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up NodeJS | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
node-version: 20 | ||
cache: yarn | ||
|
||
- name: Install dependencies | ||
|
@@ -54,72 +34,12 @@ jobs: | |
- name: Run build | ||
run: yarn build | ||
|
||
docs: | ||
name: Documentation | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up NodeJS | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: yarn | ||
|
||
- name: Install dependencies | ||
run: yarn --immutable | ||
|
||
- name: Generate documentation | ||
run: yarn docs | ||
|
||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
|
||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up NodeJS | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: yarn | ||
|
||
- name: Install dependencies | ||
run: yarn --immutable | ||
- name: Run lint | ||
run: yarn lint | ||
|
||
- name: Run tests | ||
run: yarn test | ||
|
||
# - name: Save coverage report | ||
# uses: actions/upload-artifact@v3 | ||
# with: | ||
# name: nodejs-coverage | ||
# path: coverage/ | ||
|
||
#coverage: | ||
# name: Coverage | ||
# needs: test | ||
# runs-on: ubuntu-latest | ||
|
||
# steps: | ||
# - name: Check out Git repository | ||
# uses: actions/checkout@v3 | ||
# with: | ||
# fetch-depth: 2 | ||
|
||
# - name: Download NodeJS Unit Test Coverage report | ||
# uses: actions/download-artifact@v3 | ||
# with: | ||
# name: nodejs-coverage | ||
# path: coverage/ | ||
|
||
# - name: Codecov upload | ||
# uses: codecov/[email protected] | ||
# with: | ||
|
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 |
---|---|---|
|
@@ -23,9 +23,6 @@ package-lock.json | |
## intellij ## | ||
.idea/ | ||
|
||
## VSCode ## | ||
.vscode | ||
|
||
## Logs ## | ||
logs | ||
*.log | ||
|
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,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
yarn commitlint --edit $1 |
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,4 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx lint-staged | ||
yarn lint-staged |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module.exports = { | ||
...require('@kbotdev/prettier-config'), | ||
overrides: [ | ||
{ | ||
files: '*.{yml,yaml}', | ||
options: { | ||
singleQuote: false, | ||
useTabs: false | ||
} | ||
} | ||
] | ||
}; |
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,9 @@ | ||
{ | ||
"typescript.tsdk": "node_modules/typescript/lib", | ||
"eslint.format.enable": true, | ||
"editor.formatOnSave": true, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"[typescript]": { | ||
"editor.defaultFormatter": "dbaeumer.vscode-eslint" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
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,46 +1,43 @@ | ||
{ | ||
"name": "@kbotdev/utilities", | ||
"private": true, | ||
"workspaces": [ | ||
"packages/*" | ||
], | ||
"scripts": { | ||
"build": "turbo run build --no-daemon", | ||
"test": "turbo run ci:test --no-daemon", | ||
"lint": "turbo run ci:lint --no-daemon", | ||
"format": "turbo run format --no-daemon", | ||
"docs": "turbo run docs --no-daemon" | ||
}, | ||
"devDependencies": { | ||
"@microsoft/tsdoc": "^0.14.2", | ||
"@sapphire/eslint-config": "^4.4.1", | ||
"@sapphire/framework": "^4.4.0", | ||
"@sapphire/prettier-config": "^1.4.5", | ||
"@sapphire/ts-config": "^3.3.4", | ||
"@types/node": "^18.15.11", | ||
"@typescript-eslint/eslint-plugin": "^5.58.0", | ||
"@typescript-eslint/parser": "^5.58.0", | ||
"@vitest/coverage-c8": "^0.30.1", | ||
"discord-api-types": "^0.37.38", | ||
"discord.js": "^14.9.0", | ||
"eslint": "^8.38.0", | ||
"eslint-config-prettier": "^8.8.0", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"husky": "^8.0.3", | ||
"lint-staged": "^13.2.1", | ||
"prettier": "^2.8.7", | ||
"tsup": "^6.7.0", | ||
"turbo": "^1.9.1", | ||
"typedoc": "^0.24.4", | ||
"typescript": "^4.9.5", | ||
"vitest": "^0.30.1" | ||
}, | ||
"lint-staged": { | ||
"*.{mjs,ts,js}": [ | ||
"eslint --fix --ext mjs,js,ts", | ||
"prettier --write --loglevel=warn \"{src,tests}/**/*.{js,ts,json}\"" | ||
] | ||
}, | ||
"prettier": "@sapphire/prettier-config", | ||
"packageManager": "[email protected]" | ||
"name": "@kbotdev/utilities", | ||
"private": true, | ||
"workspaces": [ | ||
"packages/*" | ||
], | ||
"scripts": { | ||
"update": "yarn upgrade-interactive", | ||
"build": "turbo run build", | ||
"test": "turbo run test", | ||
"lint": "turbo run lint", | ||
"format": "turbo run format" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^17.6.5", | ||
"@commitlint/config-conventional": "^17.6.5", | ||
"@kbotdev/eslint-config": "workspace:^", | ||
"@kbotdev/prettier-config": "workspace:^", | ||
"@kbotdev/ts-config": "workspace:^", | ||
"eslint": "^8.42.0", | ||
"husky": "^8.0.3", | ||
"lint-staged": "^13.2.2", | ||
"prettier": "^2.8.8", | ||
"turbo": "^1.10.2", | ||
"typescript": "^5.1.3", | ||
"vitest": "^0.32.0" | ||
}, | ||
"lint-staged": { | ||
"*.{mjs,cjs,js,ts}": [ | ||
"eslint --fix --ext js,ts", | ||
"prettier --write --loglevel=warn \"**/*.{mjs,cjs,js,ts}\"" | ||
], | ||
"*.{json,yml,yaml,md}": [ | ||
"prettier --write --loglevel=warn \"**/*.{json,yml,yaml,md}\"" | ||
] | ||
}, | ||
"commitlint": { | ||
"extends": [ | ||
"@commitlint/config-conventional" | ||
] | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
Oops, something went wrong.