Setup turborepo (#2610)
* chore: BREAKING move to monorepo structure * chore: setup turborepo
7
.eslintrc.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"root": true,
|
||||
// This tells ESLint to load the config from the package `eslint-config-custom`
|
||||
"extends": [
|
||||
"discordeno"
|
||||
]
|
||||
}
|
||||
42
.gitignore
vendored
@@ -1,17 +1,33 @@
|
||||
# Allows quick testing of changes and keeps stuff like tokens private
|
||||
debug.ts
|
||||
./configs.ts
|
||||
.env
|
||||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
||||
|
||||
# npm stuff
|
||||
.npmignore
|
||||
npm/
|
||||
# dependencies
|
||||
node_modules
|
||||
.pnp
|
||||
.pnp.js
|
||||
|
||||
# MacOS is weird
|
||||
# testing
|
||||
coverage
|
||||
|
||||
# next.js
|
||||
.next/
|
||||
out/
|
||||
build
|
||||
|
||||
# misc
|
||||
.DS_Store
|
||||
*.pem
|
||||
|
||||
# benchmark db and output
|
||||
db
|
||||
db.tar.gz
|
||||
output.txt
|
||||
benchmarksResult
|
||||
# debug
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
.pnpm-debug.log*
|
||||
|
||||
# local env files
|
||||
.env.local
|
||||
.env.development.local
|
||||
.env.test.local
|
||||
.env.production.local
|
||||
|
||||
# turbo
|
||||
.turbo
|
||||
|
||||
0
site/.gitignore → apps/site/.gitignore
vendored
|
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
17
deno.json
@@ -1,17 +0,0 @@
|
||||
{
|
||||
"fmt": {
|
||||
"files": {
|
||||
"exclude": [
|
||||
"benchmarks/",
|
||||
"site/node_modules/",
|
||||
"site/build",
|
||||
"site/.docusaurus",
|
||||
"site/.cache-loader",
|
||||
"template/bigbot/node_modules"
|
||||
]
|
||||
},
|
||||
"options": {
|
||||
"lineWidth": 120
|
||||
}
|
||||
}
|
||||
}
|
||||
157
dnt.ts
@@ -1,157 +0,0 @@
|
||||
import { build } from "https://deno.land/x/dnt@0.30.0/mod.ts";
|
||||
|
||||
await Deno.remove("npm", { recursive: true }).catch((_) => {});
|
||||
|
||||
await build({
|
||||
shims: {
|
||||
deno: true,
|
||||
timers: true,
|
||||
blob: true,
|
||||
undici: true,
|
||||
custom: [
|
||||
{
|
||||
package: {
|
||||
name: "ws",
|
||||
version: "^8.4.0",
|
||||
},
|
||||
globalNames: [
|
||||
{
|
||||
name: "WebSocket",
|
||||
exportName: "default",
|
||||
},
|
||||
{ name: "CloseEvent", typeOnly: true },
|
||||
{ name: "MessageEvent", typeOnly: true },
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
entryPoints: [
|
||||
"./mod.ts",
|
||||
{
|
||||
name: "./rest",
|
||||
path: "rest/mod.ts",
|
||||
},
|
||||
{
|
||||
name: "./gateway",
|
||||
path: "gateway/mod.ts",
|
||||
},
|
||||
{
|
||||
name: "./types",
|
||||
path: "types/mod.ts",
|
||||
},
|
||||
{
|
||||
name: "./transformers",
|
||||
path: "transformers/mod.ts",
|
||||
},
|
||||
{
|
||||
name: "./packages",
|
||||
path: "packages/mod.ts",
|
||||
},
|
||||
{
|
||||
name: "./logger",
|
||||
path: "packages/logger/mod.ts",
|
||||
},
|
||||
{
|
||||
name: "./embeds",
|
||||
path: "packages/embeds/mod.ts",
|
||||
},
|
||||
{
|
||||
name: "./plugins",
|
||||
path: "plugins/mod.ts",
|
||||
},
|
||||
{
|
||||
name: "./cache-plugin",
|
||||
path: "plugins/cache/mod.ts",
|
||||
},
|
||||
{
|
||||
name: "./fileloader-plugin",
|
||||
path: "plugins/fileloader/mod.ts",
|
||||
},
|
||||
{
|
||||
name: "./helpers-plugin",
|
||||
path: "plugins/helpers/mod.ts",
|
||||
},
|
||||
{
|
||||
name: "./permissions-plugin",
|
||||
path: "plugins/permissions/mod.ts",
|
||||
},
|
||||
],
|
||||
outDir: "./npm",
|
||||
typeCheck: false,
|
||||
declaration: true,
|
||||
test: false,
|
||||
package: {
|
||||
name: "discordeno",
|
||||
version: Deno.args[0],
|
||||
description: "Discordeno is simplistic, easy-to-use, versatile while being efficient and lightweight.",
|
||||
keywords: [
|
||||
"javascript",
|
||||
"api",
|
||||
"library",
|
||||
"typescript",
|
||||
"discord",
|
||||
"discord-bot",
|
||||
"discord-api",
|
||||
"deno",
|
||||
"discordeno",
|
||||
],
|
||||
author: "Skillz4Killz",
|
||||
license: "Apache License 2.0",
|
||||
bugs: {
|
||||
url: "https://github.com/discordeno/discordeno/issues",
|
||||
},
|
||||
homepage: "https://discordeno.mod.land",
|
||||
repository: {
|
||||
type: "git",
|
||||
url: "https://github.com/discordeno/discordeno",
|
||||
},
|
||||
typesVersions: {
|
||||
"*": {
|
||||
"*": [
|
||||
"./types/mod.d.ts",
|
||||
],
|
||||
"rest": [
|
||||
"./types/rest/mod.d.ts",
|
||||
],
|
||||
"gateway": [
|
||||
"./types/gateway/mod.d.ts",
|
||||
],
|
||||
"types": [
|
||||
"./types/types/mod.d.ts",
|
||||
],
|
||||
"transformers": [
|
||||
"./types/transformers/mod.d.ts",
|
||||
],
|
||||
"packages": [
|
||||
"./types/packages/mod.d.ts",
|
||||
],
|
||||
"logger": [
|
||||
"./types/packages/logger/mod.d.ts",
|
||||
],
|
||||
"embeds": [
|
||||
"./types/packages/embeds/mod.d.ts",
|
||||
],
|
||||
"plugins": [
|
||||
"./types/plugins/mod.d.ts",
|
||||
],
|
||||
"cache-plugin": [
|
||||
"./types/plugins/cache/mod.d.ts",
|
||||
],
|
||||
"fileloader-plugin": [
|
||||
"./types/plugins/fileloader/mod.d.ts",
|
||||
],
|
||||
"helpers-plugin": [
|
||||
"./types/plugins/helpers/mod.d.ts",
|
||||
],
|
||||
"permissions-plugin": [
|
||||
"./types/plugins/permissions/mod.d.ts",
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
compilerOptions: { target: "ES2020" },
|
||||
});
|
||||
|
||||
// post build steps
|
||||
Deno.copyFileSync("LICENSE", "npm/LICENSE");
|
||||
Deno.copyFileSync("README.md", "npm/README.md");
|
||||