Skip to content
This repository has been archived by the owner on Nov 6, 2021. It is now read-only.

Commit

Permalink
fix: rework some internals
Browse files Browse the repository at this point in the history
- Switched from `node-fetch` to `@sapphire/fetch`
- Switched from Yarn v1 to Yarn v3
- Disabled dependabot and mergify, we're moving to renovate
- Fixed typedoc config
- Fixed compatibility with TypeScript 4.4 due to error type change
- Update CI actions
- Update API docs
  • Loading branch information
favna committed Oct 25, 2021
1 parent 6ce77e6 commit 08c5d52
Show file tree
Hide file tree
Showing 49 changed files with 14,614 additions and 11,775 deletions.
5 changes: 4 additions & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
* @favna @Immfranco
src/ @favna @Immfranco
__tests__/ @favna @Immfranco
.github/ @favna @Immfranco
docs/ @favna @Immfranco
7 changes: 0 additions & 7 deletions .github/dependabot.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/problemMatchers/eslint-stylish.json

This file was deleted.

22 changes: 22 additions & 0 deletions .github/problemMatchers/eslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"problemMatcher": [
{
"owner": "eslint-stylish",
"pattern": [
{
"regexp": "^([^\\s].*)$",
"file": 1
},
{
"regexp": "^\\s+(\\d+):(\\d+)\\s+(error|warning|info)\\s+(.*)\\s\\s+(.*)$",
"line": 1,
"column": 2,
"severity": 3,
"message": 4,
"code": 5,
"loop": true
}
]
}
]
}
53 changes: 14 additions & 39 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,43 +7,20 @@ on:
pull_request:

jobs:
pre_ci:
name: Prepare CI environment
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: '[Push] Get commit message'
if: github.event_name == 'push'
id: push_get_commit_message
run: echo ::set-output name=push_commit_message::$(git log --format=%B -n 1 HEAD)
- name: '[Pull Request] Get commit message'
if: github.event_name == 'pull_request'
id: pr_get_commit_message
run: echo ::set-output name=pr_commit_message::$(git log --format=%B -n 1 HEAD^2)
- name: Add problem matchers
run: |
echo "::add-matcher::.github/problemMatchers/tsc.json"
echo "::add-matcher::.github/problemMatchers/eslint-stylish.json"
outputs:
commit_message: $( [ -z "${{ steps.pr_get_commit_message.outputs.pr_commit_message }}" ] && echo "${{ steps.push_get_commit_message.outputs.push_commit_message }}" || echo "${{ steps.pr_get_commit_message.outputs.pr_commit_message }}" )

NodeLinting:
name: Running ESLint
runs-on: ubuntu-latest
if: "!contains(needs.pre_ci.outputs.commit_message, '[skip ci]')"
needs: pre_ci
steps:
- name: Checkout Project
uses: actions/checkout@v2
uses: actions/checkout@1e204e9a9253d643386038d443f96446fa156a97 # renovate: tag=v2
- name: Add problem matcher
run: echo "::add-matcher::.github/problemMatchers/eslint.json"
- name: Use Node.js v16
uses: actions/setup-node@v2
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c # renovate: tag=v2
with:
node-version: 16
- name: Restore CI Cache
uses: actions/cache@v2.1.5
uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 # renovate: tag=v2.1.6
id: cache-restore
with:
path: node_modules
Expand All @@ -57,41 +34,39 @@ jobs:
NodeBuilding:
name: Compile TypeScript
runs-on: ubuntu-latest
if: "!contains(needs.pre_ci.outputs.commit_message, '[skip ci]')"
needs: pre_ci
steps:
- name: Checkout Project
uses: actions/checkout@v2
uses: actions/checkout@1e204e9a9253d643386038d443f96446fa156a97 # renovate: tag=v2
- name: Add problem matcher
run: echo "::add-matcher::.github/problemMatchers/tsc.json"
- name: Use Node.js v16
uses: actions/setup-node@v2
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c # renovate: tag=v2
with:
node-version: 16
- name: Restore CI Cache
uses: actions/cache@v2.1.5
uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 # renovate: tag=v2.1.6
id: cache-restore
with:
path: node_modules
key: ${{ runner.os }}-16-${{ hashFiles('**/yarn.lock') }}
- name: Install Dependencies if Cache Miss
if: ${{ !steps.cache-restore.outputs.cache-hit }}
run: yarn --frozen-lockfile
- name: Compile TypeScript
- name: Build Code
run: yarn build

NodeTesting:
name: Unit Test
runs-on: ubuntu-latest
if: "!contains(needs.pre_ci.outputs.commit_message, '[skip ci]')"
needs: pre_ci
steps:
- name: Checkout Project
uses: actions/checkout@v2
uses: actions/checkout@1e204e9a9253d643386038d443f96446fa156a97 # renovate: tag=v2
- name: Use Node.js v16
uses: actions/setup-node@v2
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c # renovate: tag=v2
with:
node-version: 16
- name: Restore CI Cache
uses: actions/cache@v2.1.5
uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 # renovate: tag=v2.1.6
id: cache-restore
with:
path: node_modules
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ node_modules
.env.test.local
.env.production.local

# Yarn files
.yarn/install-state.gz
.yarn/build-state.yml

# Build Artifacts
dist/
*.zip
Expand Down
9 changes: 0 additions & 9 deletions .mergify.yml

This file was deleted.

363 changes: 363 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-typescript.cjs

Large diffs are not rendered by default.

631 changes: 631 additions & 0 deletions .yarn/releases/yarn-3.0.2.cjs

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
enableGlobalCache: true

nodeLinker: node-modules

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: '@yarnpkg/plugin-interactive-tools'
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
spec: '@yarnpkg/plugin-typescript'

yarnPath: .yarn/releases/yarn-3.0.2.cjs
1 change: 1 addition & 0 deletions docs/.nojekyll
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
Loading

0 comments on commit 08c5d52

Please sign in to comment.