(Init): Added shit
This commit is contained in:
51
deno.json
51
deno.json
@@ -1,34 +1,57 @@
|
||||
{
|
||||
"workspace": [
|
||||
"./crates/shared",
|
||||
"./crates/core",
|
||||
"./crates/bot"
|
||||
],
|
||||
"compilerOptions": {
|
||||
"strict": true,
|
||||
"lib": ["deno.window", "esnext"],
|
||||
"lib": ["deno.window", "deno.unstable", "esnext"],
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"noImplicitReturns": true
|
||||
"noImplicitReturns": true,
|
||||
"noUncheckedIndexedAccess": false
|
||||
},
|
||||
"imports": {
|
||||
"discord.js": "npm:discord.js@^14.14.1",
|
||||
"@discordjs/rest": "npm:@discordjs/rest@^2.2.0",
|
||||
"@toml-tools/parser": "npm:@toml-tools/parser@^1.0.0"
|
||||
"zod": "npm:zod@^3.23.8",
|
||||
"kysely": "npm:kysely@^0.27.4",
|
||||
"@db/sqlite": "jsr:@db/sqlite@^0.12.0",
|
||||
"@std/toml": "jsr:@std/toml@^1.0.2",
|
||||
"@std/path": "jsr:@std/path@^1.0.8",
|
||||
"@std/fs": "jsr:@std/fs@^1.0.6",
|
||||
"@std/ulid": "jsr:@std/ulid@^1.0.0",
|
||||
"@std/fmt": "jsr:@std/fmt@^1.0.3"
|
||||
},
|
||||
"tasks": {
|
||||
"start": "deno run --allow-net --allow-read --allow-write --allow-env --allow-ffi --unstable-ffi --env src/index.ts",
|
||||
"dev": "deno run --watch --allow-net --allow-read --allow-write --allow-env --allow-ffi --unstable-ffi --env src/index.ts",
|
||||
"check": "deno check src/index.ts",
|
||||
"lint": "deno lint",
|
||||
"fmt": "deno fmt"
|
||||
"check": "deno check crates/shared/mod.ts crates/core/src/main.ts crates/bot/src/main.ts",
|
||||
"lint": "deno lint crates/",
|
||||
"fmt": "deno fmt crates/",
|
||||
"fmt:check": "deno fmt --check crates/",
|
||||
|
||||
"core:start": "deno run --allow-read=./config.toml,./data,./logs --allow-write=./data,./logs --allow-net=127.0.0.1:8787,0.0.0.0:8787 --allow-env --allow-ffi --unstable-kv --unstable-cron --env-file=.env crates/core/src/main.ts",
|
||||
"core:dev": "deno run --watch --allow-read=./config.toml,./data,./logs --allow-write=./data,./logs --allow-net=127.0.0.1:8787,0.0.0.0:8787 --allow-env --allow-ffi --unstable-kv --unstable-cron --env-file=.env crates/core/src/main.ts",
|
||||
|
||||
"bot:start": "deno run --allow-read=./config.toml,./logs --allow-write=./logs --allow-env --env-file=.env crates/bot/src/main.ts",
|
||||
"bot:dev": "deno run --watch --allow-read=./config.toml,./logs --allow-write=./logs --allow-env --env-file=.env crates/bot/src/main.ts"
|
||||
},
|
||||
"fmt": {
|
||||
"useTabs": false,
|
||||
"lineWidth": 100,
|
||||
"indentWidth": 2,
|
||||
"singleQuote": true,
|
||||
"proseWrap": "preserve"
|
||||
"singleQuote": false,
|
||||
"proseWrap": "preserve",
|
||||
"exclude": ["src/", "data/", "logs/"]
|
||||
},
|
||||
"lint": {
|
||||
"rules": {
|
||||
"tags": ["recommended"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"exclude": ["src/", "data/", "logs/"]
|
||||
},
|
||||
"exclude": [
|
||||
"src/",
|
||||
"data/",
|
||||
"logs/"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user