Skip to content

Commit

Permalink
chore(global): yarn + typescript setup galore
Browse files Browse the repository at this point in the history
  • Loading branch information
ajhalili2006 committed Dec 18, 2024
1 parent 306809f commit 8928fc9
Show file tree
Hide file tree
Showing 11 changed files with 3,922 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
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
11 changes: 11 additions & 0 deletions .env.development
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="
9 changes: 9 additions & 0 deletions .env.production
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="
4 changes: 4 additions & 0 deletions .gitattributes
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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,7 @@ dist
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

.env.keys
# Sentry Config File
.sentryclirc
1 change: 1 addition & 0 deletions .wakatime-project
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hcb-explorer-discord
934 changes: 934 additions & 0 deletions .yarn/releases/yarn-4.5.3.cjs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions .yarnrc.yml
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
32 changes: 32 additions & 0 deletions package.json
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"
}
}
27 changes: 27 additions & 0 deletions tsconfig.json
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": "/"
}
}
Loading

0 comments on commit 8928fc9

Please sign in to comment.