-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(global): yarn + typescript setup galore
- Loading branch information
1 parent
306809f
commit 8928fc9
Showing
11 changed files
with
3,922 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
|
||
[*.{js,json,yml}] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#/-------------------[DOTENV_PUBLIC_KEY]--------------------/ | ||
#/ public-key encryption for .env files / | ||
#/ [how it works](https://dotenvx.com/encryption) / | ||
#/----------------------------------------------------------/ | ||
DOTENV_PUBLIC_KEY_DEVELOPMENT="03c54ef5c94ed89c7ba03d4560e4af440d1663d15bf29181c4fd46dca3db8a4374" | ||
|
||
# .env.development | ||
DISCORD_BOT_TOKEN="encrypted:BDn/ODeUJlzC8SORoRO/jcCDHlSf8eYHKJUjMh5X9oGCiKVu2awi+IePO3EDV8dRSY/E+4ySdHL7f3hQUSGYnUvVazO+xBqkEReyXmhuOsUnneC64mXiEO8gsF0S9x4WdqPkp4Svmq+ZXN6nAWMZ5n4hDHvoUZda/S7/UOX5yD6qckQ545ZFdB2EBmfzI6Z8ufZikLbGNxDF1GaqRz0JgVCCPtqjSZ6z5Q==" | ||
DISCORD_BOT_APP_ID="1318609571475886191" | ||
NODE_OPTIONS='--no-warnings --loader ts-node/esm' | ||
SENTRY_DSN="encrypted:BC3/HgYgo0kK7egnDEVEPaQXT/MPnyqPeQ9seWlAZv5NBLpC330qkzR9zDGM46QYB3LVjE6KHCPG+XMw1cteYb//XrbTx/uiXXvRjl6JvnHX+pHEcthtT/FLB5Hf7JFeXBZIXrKkfm3Qk0uXOPQh7YT2RqNGRcYtAwjfpnCslqcKyx0M8dfiO8oJE68t3woEuJ010MDcyduD8S/xZbmIzPv9RvWwahtjKZoaADNAXKEdvYBZEXk=" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#/-------------------[DOTENV_PUBLIC_KEY]--------------------/ | ||
#/ public-key encryption for .env files / | ||
#/ [how it works](https://dotenvx.com/encryption) / | ||
#/----------------------------------------------------------/ | ||
DOTENV_PUBLIC_KEY_PRODUCTION="031c733507101704b9bcd0a852a195c4728e64b09e75feca682a55ce482293b069" | ||
|
||
# .env.production | ||
DISCORD_BOT_TOKEN="encrypted:BIdbL44fnvHirm9WBI1O4kbWeW2u04T8LmyxFkqBG2QXqfiT1IKygaMg8vqZeNzFh6SiEBKJ2M0VLzQWda/eHecEcbiwEb8WPBm+bKD5SDZJCat/f9sHlZqSzuXS+9c82S/1MSDDI3xXunfkVPVoRqJJFTFUURneKVMU0WvJ/XBAwovrDuYvyBNheqAa089uqelRxwUFV8j90hAzKj85Hm2R9sJo2vrrXQ==" | ||
SENTRY_DSN="encrypted:BFB7eLx6B6fZLEvtHUPjs2zSqOdus655SwhQmOaO5WUl3z36OP6cfBk/iAbFnqbV+yQtn39l/D80dyZs4AjQNzqD1Tv2mg6jh1ZGHSJa5UUzf7dTSVVrTn0QwnY9oLhSIpDVWiMgFrxyR8dbDaoS6rmS76xcToXyLdfYRjp3XmBcQYkTCLsT70VXnNumsXl8YK7PvoM8Yz+BRcIDpBb4DiBPHa6+y7Fqifmsha01ceQV/pK3CbU=" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/.yarn/** linguist-vendored | ||
/.yarn/releases/* binary | ||
/.yarn/plugins/**/* binary | ||
/.pnp.* binary linguist-generated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,3 +128,7 @@ dist | |
.yarn/build-state.yml | ||
.yarn/install-state.gz | ||
.pnp.* | ||
|
||
.env.keys | ||
# Sentry Config File | ||
.sentryclirc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
hcb-explorer-discord |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
yarnPath: .yarn/releases/yarn-4.5.3.cjs | ||
nodeLinker: node-modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"name": "@recaptime-dev/hcb-explorer-discord", | ||
"license": "MPL-2.0", | ||
"packageManager": "[email protected]", | ||
"scripts": { | ||
"dev": "dotenvx run -f .env.development -- ts-node-dev --loader ts-node/esm --respawn src/index.ts", | ||
"dev:commands": "dotenvx run -f .env.development -- ts-node src/scripts/deploy-commands.ts", | ||
"build": "tsc --build && yarn sentry:sourcemaps", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"sentry:sourcemaps": "sentry-cli sourcemaps inject --org recaptime-dev --project hcb-explorer-discord ./dist && sentry-cli sourcemaps upload --org recaptime-dev --project hcb-explorer-discord ./dist" | ||
}, | ||
"dependencies": { | ||
"@dotenvx/dotenvx": "^1.31.0", | ||
"@hono/node-server": "^1.13.7", | ||
"@sentry/cli": "^2.39.1", | ||
"@sentry/node": "^8.46.0", | ||
"@sentry/profiling-node": "^8.46.0", | ||
"discord-api-types": "^0.37.111", | ||
"discord.js": "^14.16.3", | ||
"hono": "^4.6.14" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^22.10.2", | ||
"ts-node": "^10.9.2", | ||
"ts-node-dev": "^2.0.0", | ||
"typescript": "^5.7.2" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/recaptime-dev/hcb-explorer-discord.git" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "ES2022", | ||
"module": "NodeNext", | ||
|
||
"lib": [ | ||
"ES2022", | ||
"ESNext" | ||
], | ||
|
||
"outDir": "dist", | ||
"rootDir": "src", | ||
"strict": true, | ||
"noImplicitAny": true, | ||
"moduleResolution": "nodenext", | ||
"skipLibCheck": true, | ||
"resolveJsonModule": true, | ||
"resolvePackageJsonImports": true, | ||
"sourceMap": true, | ||
"inlineSources": true, | ||
|
||
// Set `sourceRoot` to "/" to strip the build path prefix | ||
// from generated source code references. | ||
// This improves issue grouping in Sentry. | ||
"sourceRoot": "/" | ||
} | ||
} |
Oops, something went wrong.