Skip to content

Commit

Permalink
feat(deps): support for djs v14
Browse files Browse the repository at this point in the history
chore: pls

chore: missed u

refactor: upgrade to djs-14.5.0 (#473)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jeroen Claassens <jeroen.claassens@live.nl>
Co-authored-by: Jeroen Claassens <support@favware.tech>
Co-authored-by: A. Román <kyradiscord@gmail.com>
Co-authored-by: Hezekiah Hendry <hezekiah.hendry@gmail.com>
Co-authored-by: Kaname <56084970+kaname-png@users.noreply.github.com>

chore: cleanup imports
  • Loading branch information
vladfrangu committed Oct 7, 2022
1 parent d16a24d commit 4426301
Show file tree
Hide file tree
Showing 209 changed files with 4,354 additions and 1,871 deletions.
8 changes: 6 additions & 2 deletions .all-contributorsrc
Expand Up @@ -5,9 +5,11 @@
"repoHost": "https://github.com",
"files": [
"packages/async-queue/README.md",
"packages/cron/README.md",
"packages/decorators/README.md",
"packages/discord-utilities/README.md",
"packages/discord.js-utilities/README.md",
"packages/duration/README.md",
"packages/eslint-config/README.md",
"packages/event-iterator/README.md",
"packages/fetch/README.md",
Expand All @@ -19,6 +21,8 @@
"packages/snowflake/README.md",
"packages/stopwatch/README.md",
"packages/time-utilities/README.md",
"packages/timer-manager/README.md",
"packages/timestamp/README.md",
"packages/ts-config/README.md",
"packages/utilities/README.md",
"README.md"
Expand All @@ -36,7 +40,7 @@
},
{
"login": "kyranet",
"name": "Antonio Román",
"name": "Aura Román",
"avatar_url": "https://avatars0.githubusercontent.com/u/24852502?v=4",
"profile": "https://github.com/kyranet",
"contributions": ["code", "projectManagement", "review", "test"]
Expand Down Expand Up @@ -95,7 +99,7 @@
"name": "Hezekiah Hendry",
"avatar_url": "https://avatars3.githubusercontent.com/u/46537907?v=4",
"profile": "https://github.com/RealShadowNova",
"contributions": ["code"]
"contributions": ["code", "tool"]
},
{
"login": "Vetlix",
Expand Down
3 changes: 1 addition & 2 deletions .eslintignore
@@ -1,5 +1,4 @@
node_modules/
**/dist/
**/docs/
**/build/
**/*.d.ts
**/*.d.ts
8 changes: 6 additions & 2 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
@@ -1,3 +1,7 @@
/package/cron/**/*.ts @favna @kyranet @vladfrangu
/package/duration/**/*.ts @favna @kyranet @vladfrangu
/package/timer-manager/**/*.ts @favna @kyranet @vladfrangu
/package/timestamp/**/*.ts @favna @kyranet @vladfrangu
/packages/async-queue/**/*.ts @vladfrangu @kyranet @favna
/packages/decorators/**/*.ts @vladfrangu @kyranet @favna
/packages/discord-utilities/**/*.ts @favna
Expand All @@ -11,7 +15,7 @@
/packages/ratelimits/**/*.ts @kyranet @vladfrangu @favna
/packages/result/**/*.ts @kyranet @vladfrangu @favna
/packages/snowflake/**/*.ts @favna @vladfrangu @kyranet
/packages/stopwatch/**/*.ts @Stitch07 @kyranet @vladfrangu
/packages/time-utilities/**/*.ts @favna @Stitch07 @kyranet @vladfrangu
/packages/stopwatch/**/*.ts @kyranet @vladfrangu
/packages/time-utilities/**/*.ts @favna @kyranet @vladfrangu
/packages/ts-config/**/*.ts @favna
/packages/utilities/**/*.ts @favna @kyranet @vladfrangu
8 changes: 8 additions & 0 deletions .github/labels.yml
Expand Up @@ -40,12 +40,16 @@
color: '24853c'
- name: packages:async-queue
color: 'fbca04'
- name: packages:cron
color: 'fbca04'
- name: packages:decorators
color: 'fbca04'
- name: packages:discord-utilities
color: 'fbca04'
- name: packages:discord.js-utilities
color: 'fbca04'
- name: packages:duration
color: 'fbca04'
- name: packages:eslint-config
color: 'fbca04'
- name: packages:event-iterator
Expand All @@ -70,6 +74,10 @@
color: 'fbca04'
- name: packages:time-utilities
color: 'fbca04'
- name: packages:timer-manager
color: 'fbca04'
- name: packages:timestamp
color: 'fbca04'
- name: packages:ts-config
color: 'fbca04'
- name: packages:utilities
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto-deprecate.yml
Expand Up @@ -16,7 +16,7 @@ jobs:
with:
node-version: 16
cache: yarn
registry-url: https://registry.npmjs.org/
registry-url: https://registry.yarnpkg.org/
- name: Install Dependencies
run: yarn --immutable
- name: Build Dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto-updater.yml
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Install Dependencies
run: yarn --immutable
- name: Build packages for script
run: yarn turbo run build --filter=@sapphire/time-utilities --filter=@sapphire/fetch --filter=@sapphire/prettier-config
run: yarn turbo run build --filter=@sapphire/timestamp --filter=@sapphire/fetch --filter=@sapphire/prettier-config
- name: Run updater
run: node --experimental-json-modules scripts/twemoji-regex-updater.mjs
- name: Run prettier on the code
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Expand Up @@ -19,10 +19,10 @@ jobs:
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3

- name: Initialize CodeQL
uses: github/codeql-action/init@f5d217be74900c6ac8fbbe53f3c10376ba4e64da # tag=v2
uses: github/codeql-action/init@86f3159a697a097a813ad9bfa0002412d97690a4 # tag=v2

- name: Autobuild
uses: github/codeql-action/autobuild@f5d217be74900c6ac8fbbe53f3c10376ba4e64da # tag=v2
uses: github/codeql-action/autobuild@86f3159a697a097a813ad9bfa0002412d97690a4 # tag=v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@f5d217be74900c6ac8fbbe53f3c10376ba4e64da # tag=v2
uses: github/codeql-action/analyze@86f3159a697a097a813ad9bfa0002412d97690a4 # tag=v2
33 changes: 25 additions & 8 deletions .github/workflows/continuous-integration.yml
Expand Up @@ -21,11 +21,11 @@ jobs:
with:
node-version: 16
cache: yarn
registry-url: https://registry.npmjs.org/
registry-url: https://registry.yarnpkg.org/
- name: Install Dependencies
run: yarn --immutable
- name: Build ESLint, Prettier and Utilities
run: yarn turbo run build --filter=@sapphire/eslint-config --filter=@sapphire/prettier-config --filter=@sapphire/utilities --no-deps
run: yarn turbo run build --filter=@sapphire/eslint-config --filter=@sapphire/prettier-config --filter=@sapphire/utilities --filter=@sapphire/duration --no-deps
- name: Run ESLint
run: yarn lint --fix=false

Expand All @@ -38,16 +38,16 @@ jobs:
steps:
- name: Checkout Project
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
- name: Use Node.js v{{ matrix.version }}
- name: Use Node.js v{{ matrix.node }}
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # tag=v3
with:
node-version: ${{ matrix.version }}
node-version: ${{ matrix.node }}
cache: yarn
registry-url: https://registry.npmjs.org/
registry-url: https://registry.yarnpkg.org/
- name: Install Dependencies
run: yarn --immutable
- name: Build test dependencies
run: yarn turbo run build --filter=@sapphire/async-queue --filter=@sapphire/*utilities --filter=@sapphire/ratelimits --filter=@sapphire/fetch --filter=@sapphire/result --filter=@sapphire/lexure --no-deps
run: yarn turbo run build --filter=@sapphire/async-queue --filter=@sapphire/*utilities --filter=@sapphire/duration --filter=@sapphire/fetch --filter=@sapphire/lexure --filter=@sapphire/ratelimits --filter=@sapphire/result --filter=@sapphire/timer-manager --no-deps
- name: Run tests
run: yarn test
- name: Store code coverage report
Expand All @@ -70,12 +70,29 @@ jobs:
with:
node-version: 16
cache: yarn
registry-url: https://registry.npmjs.org/
registry-url: https://registry.yarnpkg.org/
- name: Install Dependencies
run: yarn --immutable
- name: Compile Projects
run: yarn build

docs:
name: Generate Documentation
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
- name: Use Node.js v16
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # tag=v3
with:
node-version: 16
cache: yarn
registry-url: https://registry.yarnpkg.org/
- name: Install Dependencies
run: yarn --immutable
- name: Generate Documentation
run: yarn docs

Upload_Coverage_Report:
name: Upload coverage report to codecov
needs: [Testing]
Expand All @@ -91,7 +108,7 @@ jobs:
name: coverage
path: coverage/
- name: Codecov Upload
uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # tag=v3
uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # tag=v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: coverage/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deprecate-on-merge.yml
Expand Up @@ -17,7 +17,7 @@ jobs:
with:
node-version: 16
cache: yarn
registry-url: https://registry.npmjs.org/
registry-url: https://registry.yarnpkg.org/
- name: Install Dependencies
run: yarn --immutable
- name: Build Dependencies
Expand Down
140 changes: 140 additions & 0 deletions .github/workflows/documentation.yml
@@ -0,0 +1,140 @@
name: Documentation

on:
push:
branches:
- main
tags:
- '**'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build:
name: Build Documentation
runs-on: ubuntu-latest

if: github.repository_owner == 'sapphiredev'
outputs:
NAME: ${{ steps.env.outputs.NAME }}
TYPE: ${{ steps.env.outputs.TYPE }}
SHA: ${{ steps.env.outputs.SHA }}
steps:
- name: Checkout Project
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
- name: Use Node.js v16
uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # tag=v3
with:
node-version: 16
cache: yarn
registry-url: https://registry.yarnpkg.org/
- name: Install Dependencies
run: yarn --immutable
- name: Build Packages
run: yarn build
- name: Build Documentation
run: yarn docs
- name: Upload Documentation Artifacts
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # tag=v3
with:
name: docs
path: packages/*/docs/api.json
- name: Set Output
id: env
run: |
echo "::set-output name=NAME::${GITHUB_REF_NAME}"
echo "::set-output name=TYPE::${GITHUB_REF_TYPE}"
echo "::set-output name=SHA::${GITHUB_SHA}"
upload:
name: Upload Documentation
needs: build
strategy:
max-parallel: 1
fail-fast: false
matrix:
package:
- async-queue
- cron
- decorators
- discord-utilities
- discord.js-utilities
- duration
- event-iterator
- fetch
- lexure
- phisherman
- ratelimits
- result
- snowflake
- stopwatch
- time-utilities
- timer-manager
- timestamp
- utilities
runs-on: ubuntu-latest
env:
NAME: ${{ needs.build.outputs.NAME }}
TYPE: ${{ needs.build.outputs.TYPE }}
SHA: ${{ needs.build.outputs.SHA }}
steps:
- name: Checkout Project
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
- name: Use Node.js v16
uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # tag=v3
with:
node-version: 16
cache: yarn
registry-url: https://registry.yarnpkg.org/
- name: Install Dependencies
run: yarn --immutable
- name: Download Documentation Artifacts
uses: actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741 # tag=v3
with:
name: docs
path: docs
- name: Checkout Documentation Project
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
with:
repository: 'sapphiredev/docs'
token: ${{ secrets.SKYRA_TOKEN }}
path: 'out'

- name: Extract Package and Semver
if: ${{ env.TYPE == 'tag' }}
id: extract-tag
uses: ./scripts/formatTag
with:
tag: ${{ env.NAME }}
- name: Move Documentation
if: ${{ env.TYPE == 'tag' && matrix.package == steps.extract-tag.outputs.package }}
env:
PACKAGE: ${{ steps.extract-tag.outputs.package }}
SEMVER: ${{ steps.extract-tag.outputs.semver }}
run: |
mkdir -p out/docs/utilities/${PACKAGE}
mv docs/${PACKAGE}/docs/api.json out/docs/utilities/${PACKAGE}/${SEMVER}.json
- name: Move Documentation
if: ${{ env.TYPE == 'branch' }}
env:
PACKAGE: ${{ matrix.package }}
run: |
mkdir -p out/docs/utilities/${PACKAGE}
mv docs/${PACKAGE}/docs/api.json out/docs/utilities/${PACKAGE}/${NAME}.json
- name: Commit & Push
env:
PACKAGE: ${{ steps.extract-tag.outputs.package || matrix.package }}
run: |
cd out
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git config rebase.autostash true
git config pull.rebase true
git add .
git commit -m "docs(${PACKAGE}): build for ${TYPE} ${NAME}: ${SHA}" || true
git pull
git push
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -17,7 +17,6 @@ node_modules/

# Build Artifacts
dist/
build/
docs/
test_out/
*.tsbuildinfo
Expand Down
6 changes: 5 additions & 1 deletion .npm-deprecaterc.yml
Expand Up @@ -2,18 +2,22 @@ name: '*next*'
verbose: true
package:
- '@sapphire/async-queue'
- '@sapphire/cron'
- '@sapphire/decorators'
- '@sapphire/discord-utilities'
- '@sapphire/discord.js-utilities'
- '@sapphire/duration'
- '@sapphire/eslint-config'
- '@sapphire/event-iterator'
- '@sapphire/fetch'
- '@sapphire/phisherman'
- '@sapphire/prettier-config'
- '@sapphire/ratelimits'
- '@sapphire/result'
- '@sapphire/snowflake'
- '@sapphire/stopwatch'
- '@sapphire/time-utilities'
- '@sapphire/timer-manager'
- '@sapphire/timestamp'
- '@sapphire/ts-config'
- '@sapphire/utilities'
- '@sapphire/phisherman'
1 change: 1 addition & 0 deletions .prettierignore
Expand Up @@ -2,3 +2,4 @@ CHANGELOG.md
.turbo
dist/
coverage/
.yarn/

0 comments on commit 4426301

Please sign in to comment.