Skip to content

Commit

Permalink
chore: move website and guide out of packages
Browse files Browse the repository at this point in the history
  • Loading branch information
iCrawl committed Oct 9, 2022
1 parent 0a9d57b commit 3ed668e
Show file tree
Hide file tree
Showing 175 changed files with 429 additions and 488 deletions.
19 changes: 10 additions & 9 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
apps:guide:
- apps/guide/*
- apps/guide/**/*
apps:website:
- apps/website/*
- apps/website/**/*

packages:builders:
- packages/builders/*
- packages/builders/**/*
Expand All @@ -10,9 +17,6 @@ packages:discord.js:
packages:docgen:
- packages/docgen/*
- packages/docgen/**/*
packages:guide:
- packages/guide/*
- packages/guide/**/*
packages:proxy:
- packages/proxy/*
- packages/proxy/**/*
Expand All @@ -22,18 +26,15 @@ packages:proxy-container:
packages:rest:
- packages/rest/*
- packages/rest/**/*
packages/ui:
- packages:ui/*
- packages:ui/**/*
packages:util:
- packages/util/*
- packages/util/**/*
packages:voice:
- packages/voice/*
- packages/voice/**/*
packages:website:
- packages/website/*
- packages/website/**/*
packages/web-components:
- packages:web-components/*
- packages:web-components/**/*
packages:ws:
- packages/ws/*
- packages/ws/**/*
12 changes: 6 additions & 6 deletions .github/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
color: '5663e9'
- name: api support
color: '5663e9'
- name: apps:guide
color: fbca04
- name: apps:website
color: fbca04
- name: backlog
color: 7ef7ef
- name: blocked
Expand Down Expand Up @@ -54,22 +58,18 @@
color: fbca04
- name: packages:docgen
color: fbca04
- name: packages:guide
color: fbca04
- name: packages:proxy
color: fbca04
- name: packages:proxy-container
color: fbca04
- name: packages:rest
color: fbca04
- name: packages:ui
color: fbca04
- name: packages:util
color: fbca04
- name: packages:voice
color: fbca04
- name: packages:website
color: fbca04
- name: packages:web-components
color: fbca04
- name: packages:ws
color: fbca04
- name: performance
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/npm-auto-deprecate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ jobs:
run: yarn --immutable

- name: Deprecate versions
run: 'yarn npm-deprecate --name "*dev*" --package @discordjs/builders @discordjs/collection discord.js @discordjs/proxy @discordjs/rest @discordjs/util @discordjs/voice'
run: 'yarn npm-deprecate --name "*dev*" --package @discordjs/builders @discordjs/collection discord.js @discordjs/proxy @discordjs/rest @discordjs/util @discordjs/voice @discordjs/ws'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/pr-triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:

- name: Automatically assign reviewers
if: github.event.action == 'opened'
uses: kentaro-m/auto-assign-action@v1.2.1
uses: kentaro-m/auto-assign-action@v1.2.3
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
NEXT_PUBLIC_LOCAL_DEV: true
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -35,6 +34,9 @@ jobs:
- name: Tests
run: yarn test

- name: Docs
run: yarn docs

- name: Upload Coverage
if: github.repository_owner == 'discordjs'
uses: ./packages/actions/src/uploadCoverage
2 changes: 1 addition & 1 deletion .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"*": "prettier --ignore-unknown --write",
"{src/**,__tests__/**}.{mjs,js,cjs,ts,tsx,astro}": "eslint --ext .mjs,.js,.cjs,.ts,.tsx,.astro --fix",
"src/**.ts": "vitest related --run --config ./vitest.config.ts"
"src/**.ts": "vitest related --run --config ../../vitest.config.ts"
}
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"eslint.workingDirectories": [{ "pattern": "./packages/*" }],
"eslint.workingDirectories": [{ "pattern": "./apps/*" }, { "pattern": "./packages/*" }],
"eslint.validate": ["javascript", "javascriptreact", "astro", "typescript", "typescriptreact"],
"prettier.documentSelectors": ["**/*.astro"],
"editor.defaultFormatter": "esbenp.prettier-vscode",
Expand All @@ -11,6 +11,6 @@
"files.associations": {
"*.mdx": "markdown"
},
"unocss.root": "./packages/web-components",
"unocss.root": "./packages/ui",
"typescript.tsdk": "node_modules/typescript/lib"
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ If you don't understand something in the documentation, you are experiencing pro
nudge in the right direction, please don't hesitate to join our official [discord.js Server][discord].

[website]: https://discord.js.org/
[website-source]: https://github.com/discordjs/discord.js/tree/main/packages/website
[website-source]: https://github.com/discordjs/discord.js/tree/main/apps/website
[documentation]: https://discord.js.org/#/docs
[guide]: https://discordjs.guide/
[guide-source]: https://github.com/discordjs/guide
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions packages/guide/README.md → apps/guide/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ If you don't understand something in the documentation, you are experiencing pro
nudge in the right direction, please don't hesitate to join our official [discord.js Server][discord].

[website]: https://discord.js.org/
[website-source]: https://github.com/discordjs/discord.js/tree/main/packages/website
[website-source]: https://github.com/discordjs/discord.js/tree/main/apps/website
[documentation]: https://discord.js.org/
[guide]: https://discordjs.guide/
[guide-source]: https://github.com/discordjs/guide
[guide-update]: https://discordjs.guide/additional-info/changes-in-v14.html
[discord]: https://discord.gg/djs
[discord-api]: https://discord.gg/discord-api
[source]: https://github.com/discordjs/discord.js/tree/main/packages/guide
[source]: https://github.com/discordjs/discord.js/tree/main/apps/guide
[related-libs]: https://discord.com/developers/docs/topics/community-resources#libraries
[contributing]: https://github.com/discordjs/discord.js/blob/main/.github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default defineConfig({
throttle: 3,
}),
Unocss({
configFile: fileURLToPath(new URL('../ui/unocss.config.ts', import.meta.url)),
configFile: fileURLToPath(new URL('../../packages/ui/unocss.config.ts', import.meta.url)),
}),
critters(),
compress(),
Expand Down
8 changes: 4 additions & 4 deletions packages/guide/package.json → apps/guide/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,16 @@
"@types/react": "^17.0.50",
"@types/react-dom": "^17.0.17",
"@types/react-syntax-highlighter": "^15.5.5",
"@unocss/cli": "^0.45.28",
"@unocss/reset": "^0.45.28",
"@unocss/cli": "^0.45.29",
"@unocss/reset": "^0.45.29",
"@vitejs/plugin-react": "^2.1.0",
"@vitest/coverage-c8": "^0.24.0",
"astro": "^1.4.6",
"astro-compress": "^1.0.11",
"astro-critters": "^1.0.5",
"cross-env": "^7.0.3",
"eslint": "^8.25.0",
"eslint-config-neon": "^0.1.35",
"eslint-config-neon": "^0.1.37",
"happy-dom": "^7.4.0",
"hast-util-to-string": "^2.0.0",
"hastscript": "^7.0.2",
Expand All @@ -78,7 +78,7 @@
"rehype-autolink-headings": "^6.1.1",
"rehype-slug": "^5.0.1",
"typescript": "^4.8.4",
"unocss": "^0.45.28",
"unocss": "^0.45.29",
"vercel": "^28.4.8",
"vitest": "^0.24.0"
},
Expand Down
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions packages/website/README.md → apps/website/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ If you don't understand something in the documentation, you are experiencing pro
nudge in the right direction, please don't hesitate to join our official [discord.js Server][discord].

[website]: https://discord.js.org/
[website-source]: https://github.com/discordjs/discord.js/tree/main/packages/website
[website-source]: https://github.com/discordjs/discord.js/tree/main/apps/website
[documentation]: https://discord.js.org/
[guide]: https://discordjs.guide/
[guide-source]: https://github.com/discordjs/guide
[guide-update]: https://discordjs.guide/additional-info/changes-in-v14.html
[discord]: https://discord.gg/djs
[discord-api]: https://discord.gg/discord-api
[source]: https://github.com/discordjs/discord.js/tree/main/packages/website
[source]: https://github.com/discordjs/discord.js/tree/main/apps/website
[related-libs]: https://discord.com/developers/docs/topics/community-resources#libraries
[contributing]: https://github.com/discordjs/discord.js/blob/main/.github/CONTRIBUTING.md
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions packages/website/package.json → apps/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"dev": "yarn run --top-level docs && concurrently 'yarn dev:css' 'yarn dev:next'",
"dev:next": "next dev",
"dev:css": "yarn generate:css --watch",
"generate:css": "unocss 'src/**/*.tsx' '../ui/src/lib/components/**/*.tsx' --out-file ./src/styles/unocss.css --config ../ui/unocss.config.ts",
"generate:css": "unocss 'src/**/*.tsx' '../../packages/ui/src/lib/components/**/*.tsx' --out-file ./src/styles/unocss.css --config ../../packages/ui/unocss.config.ts",
"lint": "prettier --check . && cross-env TIMING=1 eslint src --ext .mjs,.js,.cjs,.ts,.tsx",
"format": "prettier --write . && cross-env TIMING=1 eslint src --ext .mjs,.js,.cjs,.ts,.tsx --fix"
},
Expand Down Expand Up @@ -75,19 +75,19 @@
"@types/react": "^18.0.21",
"@types/react-dom": "^18.0.6",
"@types/react-syntax-highlighter": "^15.5.5",
"@unocss/cli": "^0.45.28",
"@unocss/reset": "^0.45.28",
"@unocss/cli": "^0.45.29",
"@unocss/reset": "^0.45.29",
"@vitejs/plugin-react": "^2.1.0",
"@vitest/coverage-c8": "^0.24.0",
"concurrently": "^7.4.0",
"cross-env": "^7.0.3",
"eslint": "^8.25.0",
"eslint-config-neon": "^0.1.35",
"eslint-config-neon": "^0.1.37",
"happy-dom": "^7.4.0",
"prettier": "^2.7.1",
"prettier-plugin-tailwindcss": "^0.1.13",
"typescript": "^4.8.4",
"unocss": "^0.45.28",
"unocss": "^0.45.29",
"vercel": "^28.4.8",
"vitest": "^0.24.0"
},
Expand Down
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"node": ">=16.9.0"
},
"workspaces": [
"apps/*",
"packages/*"
],
"packageManager": "yarn@3.2.4"
Expand Down
2 changes: 1 addition & 1 deletion packages/actions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ If you don't understand something in the documentation, you are experiencing pro
nudge in the right direction, please don't hesitate to join our official [discord.js Server][discord].

[website]: https://discord.js.org/
[website-source]: https://github.com/discordjs/discord.js/tree/main/packages/website
[website-source]: https://github.com/discordjs/discord.js/tree/main/apps/website
[documentation]: https://discord.js.org/#/docs
[guide]: https://discordjs.guide/
[guide-source]: https://github.com/discordjs/guide
Expand Down
2 changes: 1 addition & 1 deletion packages/actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@vitest/coverage-c8": "^0.24.0",
"cross-env": "^7.0.3",
"eslint": "^8.25.0",
"eslint-config-neon": "^0.1.35",
"eslint-config-neon": "^0.1.37",
"prettier": "^2.7.1",
"tsup": "^6.2.3",
"typescript": "^4.8.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/api-extractor-utils/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ If you don't understand something in the documentation, you are experiencing pro
nudge in the right direction, please don't hesitate to join our official [discord.js Server][discord].

[website]: https://discord.js.org/
[website-source]: https://github.com/discordjs/discord.js/tree/main/packages/website
[website-source]: https://github.com/discordjs/discord.js/tree/main/apps/website
[documentation]: https://discord.js.org/#/docs
[guide]: https://discordjs.guide/
[guide-source]: https://github.com/discordjs/guide
Expand Down
2 changes: 1 addition & 1 deletion packages/api-extractor-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@types/node": "^16.11.64",
"cross-env": "^7.0.3",
"eslint": "^8.25.0",
"eslint-config-neon": "^0.1.35",
"eslint-config-neon": "^0.1.37",
"prettier": "^2.7.1",
"tsup": "^6.2.3",
"typescript": "^4.8.4"
Expand Down
2 changes: 1 addition & 1 deletion packages/builders/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ nudge in the right direction, please don't hesitate to join our official [discor

[example]: https://github.com/discordjs/discord.js/blob/main/packages/builders/docs/examples/Slash%20Command%20Builders.md
[website]: https://discord.js.org/
[website-source]: https://github.com/discordjs/discord.js/tree/main/packages/website
[website-source]: https://github.com/discordjs/discord.js/tree/main/apps/website
[documentation]: https://discord.js.org/#/docs/builders
[guide]: https://discordjs.guide/
[guide-source]: https://github.com/discordjs/guide
Expand Down
2 changes: 1 addition & 1 deletion packages/builders/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"downlevel-dts": "^0.10.1",
"esbuild-plugin-version-injector": "^1.0.0",
"eslint": "^8.25.0",
"eslint-config-neon": "^0.1.35",
"eslint-config-neon": "^0.1.37",
"prettier": "^2.7.1",
"tsup": "^6.2.3",
"typescript": "^4.8.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/collection/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ If you don't understand something in the documentation, you are experiencing pro
nudge in the right direction, please don't hesitate to join our official [discord.js Server][discord].

[website]: https://discord.js.org/
[website-source]: https://github.com/discordjs/discord.js/tree/main/packages/website
[website-source]: https://github.com/discordjs/discord.js/tree/main/apps/website
[documentation]: https://discord.js.org/#/docs/collection
[guide]: https://discordjs.guide/
[guide-source]: https://github.com/discordjs/guide
Expand Down
2 changes: 1 addition & 1 deletion packages/collection/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"downlevel-dts": "^0.10.1",
"esbuild-plugin-version-injector": "^1.0.0",
"eslint": "^8.25.0",
"eslint-config-neon": "^0.1.35",
"eslint-config-neon": "^0.1.37",
"prettier": "^2.7.1",
"tsup": "^6.2.3",
"typescript": "^4.8.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/discord.js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ If you don't understand something in the documentation, you are experiencing pro
nudge in the right direction, please don't hesitate to join our official [discord.js Server][discord].

[website]: https://discord.js.org/
[website-source]: https://github.com/discordjs/discord.js/tree/main/packages/website
[website-source]: https://github.com/discordjs/discord.js/tree/main/apps/website
[documentation]: https://discord.js.org/#/docs
[guide]: https://discordjs.guide/
[guide-source]: https://github.com/discordjs/guide
Expand Down
2 changes: 1 addition & 1 deletion packages/docgen/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ If you don't understand something in the documentation, you are experiencing pro
nudge in the right direction, please don't hesitate to join our official [discord.js Server][discord].

[website]: https://discord.js.org/
[website-source]: https://github.com/discordjs/discord.js/tree/main/packages/website
[website-source]: https://github.com/discordjs/discord.js/tree/main/apps/website
[documentation]: https://discord.js.org/
[guide]: https://discordjs.guide/
[guide-source]: https://github.com/discordjs/guide
Expand Down
2 changes: 1 addition & 1 deletion packages/docgen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"@types/node": "^16.11.64",
"cross-env": "^7.0.3",
"eslint": "^8.25.0",
"eslint-config-neon": "^0.1.35",
"eslint-config-neon": "^0.1.37",
"prettier": "^2.7.1",
"tsup": "^6.2.3",
"typescript": "^4.8.4"
Expand Down
2 changes: 1 addition & 1 deletion packages/proxy-container/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ If you don't understand something in the documentation, you are experiencing pro
nudge in the right direction, please don't hesitate to join our official [discord.js Server][discord].

[website]: https://discord.js.org/
[website-source]: https://github.com/discordjs/discord.js/tree/main/packages/website
[website-source]: https://github.com/discordjs/discord.js/tree/main/apps/website
[documentation]: https://discord.js.org/
[guide]: https://discordjs.guide/
[guide-source]: https://github.com/discordjs/guide
Expand Down
2 changes: 1 addition & 1 deletion packages/proxy-container/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"@types/node": "^16.11.64",
"cross-env": "^7.0.3",
"eslint": "^8.25.0",
"eslint-config-neon": "^0.1.35",
"eslint-config-neon": "^0.1.37",
"prettier": "^2.7.1",
"tsup": "^6.2.3",
"typescript": "^4.8.4"
Expand Down
2 changes: 1 addition & 1 deletion packages/proxy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ If you don't understand something in the documentation, you are experiencing pro
nudge in the right direction, please don't hesitate to join our official [discord.js Server][discord].

[website]: https://discord.js.org/
[website-source]: https://github.com/discordjs/discord.js/tree/main/packages/website
[website-source]: https://github.com/discordjs/discord.js/tree/main/apps/website
[documentation]: https://discord.js.org/#/docs/proxy
[guide]: https://discordjs.guide/
[guide-source]: https://github.com/discordjs/guide
Expand Down
2 changes: 1 addition & 1 deletion packages/proxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"cross-env": "^7.0.3",
"downlevel-dts": "^0.10.1",
"eslint": "^8.25.0",
"eslint-config-neon": "^0.1.35",
"eslint-config-neon": "^0.1.37",
"prettier": "^2.7.1",
"supertest": "^6.3.0",
"tsup": "^6.2.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/rest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ If you don't understand something in the documentation, you are experiencing pro
nudge in the right direction, please don't hesitate to join our official [discord.js Server][discord].

[website]: https://discord.js.org/
[website-source]: https://github.com/discordjs/discord.js/tree/main/packages/website
[website-source]: https://github.com/discordjs/discord.js/tree/main/apps/website
[documentation]: https://discord.js.org/#/docs/rest
[guide]: https://discordjs.guide/
[guide-source]: https://github.com/discordjs/guide
Expand Down

2 comments on commit 3ed668e

@vercel
Copy link

@vercel vercel bot commented on 3ed668e Oct 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 3ed668e Oct 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.