NodeJS TypeScript Setup (#1)

* bot can login to discord

* changed node and npm to iron lts

* added typescript runnables

* more dev scripts

* readme update on scripts

* event handling skeleton

* fixed compiler target issue
This commit is contained in:
Kevin Dang
2023-12-22 11:22:16 -08:00
committed by GitHub
parent f4af329d44
commit c9dfd3671d
14 changed files with 1614 additions and 126 deletions

31
package.json Normal file
View File

@@ -0,0 +1,31 @@
{
"name": "discord-ollama",
"version": "0.0.1",
"description": "Ollama Integration into discord",
"main": "dist/index.js",
"exports": "./dist/index.js",
"scripts": {
"dev-tsx": "tsx watch src/index.ts",
"dev-mon": "nodemon --config nodemon.json src/index.ts",
"build": "tsc",
"prod": "node .",
"start": "npm run build && npm run prod"
},
"author": "Kevin Dang",
"license": "ISC",
"dependencies": {
"discord.js": "^14.14.1",
"dotenv": "^16.3.1"
},
"devDependencies": {
"@types/node": "^20.10.5",
"nodemon": "^3.0.2",
"ts-node": "^10.9.2",
"tsx": "^4.6.2",
"typescript": "^5.3.3"
},
"type": "module",
"engines": {
"node": ">=16.0.0"
}
}