This commit is contained in:
Fran Jurmanović
2023-10-02 21:33:08 +02:00
parent c2ab9c9ba8
commit 9a9a4f2ced
7 changed files with 50 additions and 2188 deletions

20
.eslintrc.json Normal file
View File

@@ -0,0 +1,20 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
}
}

View File

@@ -1,6 +1,4 @@
{
"tabWidth": 2,
"useTabs": true,
"printWidth": 100
"tabWidth": 1,
"useTabs": true
}

BIN
bun.lockb Normal file

Binary file not shown.

View File

@@ -1,5 +1,5 @@
# Use Node 16 alpine as parent image
FROM node:16-alpine
# Use oven/bun as parent image
FROM oven/bun:latest
# Change the working directory on the Docker image to /app
WORKDIR /app
@@ -8,11 +8,10 @@ WORKDIR /app
COPY . .
# Install dependencies
RUN npm install
RUN npm run build
RUN bun install
# Expose application port
# EXPOSE 3000
EXPOSE 3000
# Start the application
CMD npm start
CMD bun start

2166
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,33 +1,34 @@
{
"name": "scheduled",
"version": "0.0.1",
"main": "app.js",
"main": "src/app.ts",
"scripts": {
"start": "node dist/app.js",
"start": "bun src/app.ts",
"dev": "nodemon app.ts",
"build": "tsc --build",
"deploy:dev": "npm start --develop",
"deploy:testing": "npm start --testing",
"deploy:production": "npm start --production"
"build": "tsc --build"
},
"author": "Fran Jurmanović <fjurma12@outlook.com>",
"license": "MIT",
"dependencies": {
"@types/node": "^14.14.31",
"axios": "^0.26.0",
"body-parser": "^1.20.2",
"cheerio": "^1.0.0-rc.10",
"cron": "^3.0.0",
"discord.js": "^12.5.1",
"dotenv": "^8.2.0",
"node-cron": "^3.0.0",
"pg": "^8.5.1",
"puppeteer": "^13.5.1",
"ts-node": "^9.1.1",
"express": "^4.18.2",
"express-basic-auth": "^1.2.1",
"typescript": "^4.1.5"
},
"devDependencies": {
"@types/express": "^4.17.18",
"@types/node-cron": "^3.0.1",
"@types/pg": "^7.14.10",
"@types/ws": "^7.4.0",
"@typescript-eslint/eslint-plugin": "^6.7.4",
"@typescript-eslint/parser": "^6.7.4",
"eslint": "^8.50.0",
"prettier": "^2.2.1"
}
}

View File

@@ -5,6 +5,16 @@
"strict": true,
"outDir": "dist",
"sourceMap": true,
"resolveJsonModule": true
}
"resolveJsonModule": true,
"esModuleInterop": true,
"baseUrl": "./src/",
"paths": {
"@common": ["common"],
"@constants": ["constants"],
"@controllers": ["controllers"],
"@core": ["core"],
"@modules": ["modules"],
"@models": ["models"],
}
},
}