Skip to content

Commit

Permalink
refactor: bump eslint, discord.js to latest, dep update, improvements (
Browse files Browse the repository at this point in the history
…#1067)

* refactor: eslint

* refactor: update packages

* refactor: di

* refactor: docs

* refactor: improvement

* refactor: improvement

* refactor: workspace packages

* refactor: workflow

* refactor: workflow

* refactor: workflow

* refactor: dep

* chore: bump versions

* refactor: remove script

* refactor(discordx): context and integration type
  • Loading branch information
vijayymmeena authored Sep 3, 2024
1 parent c7c1759 commit b662036
Show file tree
Hide file tree
Showing 82 changed files with 16,388 additions and 30,050 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

47 changes: 0 additions & 47 deletions .eslintrc

This file was deleted.

17 changes: 11 additions & 6 deletions .github/workflows/build-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,21 @@ jobs:
with:
fetch-depth: 0

- uses: actions/setup-node@main
- name: Install pnpm
uses: pnpm/action-setup@master
with:
cache: "npm"
cache-dependency-path: docs/package-lock.json
node-version: "lts/*"
version: 9.9.0

- name: Install Node
uses: actions/setup-node@main
with:
node-version: 20
cache: "pnpm"

- name: Install dependencies for docs
run: npm ci
run: pnpm install
working-directory: ./docs

- name: Build docs
run: npm run build
run: pnpm run build
working-directory: ./docs
19 changes: 12 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,28 @@ jobs:
- name: check out code 🛎
uses: actions/checkout@main

- name: Install pnpm
uses: pnpm/action-setup@master
with:
version: 9.9.0

- name: Install Node
uses: actions/setup-node@main
with:
cache: "npm"
node-version: "lts/*"
node-version: 20
cache: "pnpm"

- name: Install dependencies
run: npm ci
run: pnpm install

- name: Build
run: npm run build
run: pnpm run build

- name: Run Tests
run: npm run test
run: pnpm run test

- name: Run prettier
run: npm run prettier
run: pnpm run prettier

- name: Run ESLint
run: npm run lint
run: pnpm run lint
18 changes: 13 additions & 5 deletions .github/workflows/publish-changeset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,30 @@ jobs:
- name: check out code 🛎
uses: actions/checkout@main

- name: Install pnpm
uses: pnpm/action-setup@master
with:
version: 9.9.0

- name: Install Node
uses: actions/setup-node@main
with:
cache: "npm"
node-version: "lts/*"
node-version: 20
cache: "pnpm"

- name: Install dependencies
run: npm ci
run: pnpm install

- name: Build
run: pnpm run build

- name: Create Release Pull Request
uses: changesets/action@v1
uses: changesets/action@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
with:
commit: "chore: release packages"
publish: npm run release
publish: pnpm publish -r
title: "chore: release packages"
25 changes: 13 additions & 12 deletions .github/workflows/publish-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,25 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: actions/setup-node@main
- name: check out code 🛎
uses: actions/checkout@main

- name: Install pnpm
uses: pnpm/action-setup@master
with:
cache: "npm"
node-version: "lts/*"
version: 9.9.0

- name: Install dependencies
run: npm ci
- name: Install Node
uses: actions/setup-node@main
with:
node-version: 20
cache: "pnpm"

- name: Build TypeDoc
run: npm run build:typedoc

- name: Install dependencies for docs
run: npm ci
working-directory: ./docs
run: pnpm run build:typedoc

- name: Build docs
run: npm run build
run: pnpm run build
working-directory: ./docs

- name: Add CNAME
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ build
.env.development.local
.env.test.local
.env.production.local
pnpm-lock.yaml

npm-debug.log*
yarn-debug.log*
Expand Down
3 changes: 0 additions & 3 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ module.exports = {
tagline: "Create a discord bot with TypeScript and Decorators!",
title: "discordx official documentation",
url: "https://discordx.js.org",
// eslint-disable-next-line sort-keys
themeConfig: {
algolia: {
apiKey: "d80ba8eaf70ddb3eb5371d44ebb0ba1a",
Expand Down Expand Up @@ -69,7 +68,6 @@ module.exports = {
theme: require("prism-react-renderer").themes.github,
},
},
// eslint-disable-next-line sort-keys
presets: [
[
"@docusaurus/preset-classic",
Expand All @@ -96,6 +94,5 @@ module.exports = {
},
],
],
// eslint-disable-next-line sort-keys
plugins: [],
};
Loading

0 comments on commit b662036

Please sign in to comment.