-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
40 lines (40 loc) · 1.83 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
"name": "flos",
"version": "1.0.0",
"main": "./dist/server.js",
"scripts": {
"lint": "eslint src --ext ts && tsc --noEmit",
"format": "prettier --write .",
"clean": "rm -rf ./dist",
"prebuild": "npm run clean && npm run format && npm run lint",
"build": "tsc",
"dev": "tsc --watch",
"dbOut": "pg_dump --host=localhost --port=5432 --username=Emrecan --no-password --verbose --dbname=flos --format=plain --blobs --file=./dumps/db/db_dump.sql",
"prepareDevEnv": "npm run dbOut && cp -rf ./environments/dev/* ./ && npm run build",
"dbIn": "psql --host=rds-pg-flos.czggso0ksewe.eu-central-1.rds.amazonaws.com --port=5432 --username=Emrecan --dbname=postgres --command=\"DROP DATABASE IF EXISTS flos;\" && psql --host=rds-pg-flos.czggso0ksewe.eu-central-1.rds.amazonaws.com --port=5432 --username=Emrecan --dbname=postgres --command=\"CREATE DATABASE flos;\" && psql --host=rds-pg-flos.czggso0ksewe.eu-central-1.rds.amazonaws.com --port=5432 --username=Emrecan --dbname=flos --file=./dumps/db/db_dump.sql",
"prepareLiveEnv": "npm run dbIn && cp -rf ./environments/live/* ./ && npm run build",
"startDev": "npm run prepareDevEnv && node ./dist/server.js",
"startLive": "npm run prepareLiveEnv && pm2 start ./dist/server.js",
"stopLive": "pm2 stop ./dist/server.js"
},
"dependencies": {
"bcrypt": "^5.1.1",
"dotenv": "^16.3.1",
"express": "^4.18.2",
"jsonwebtoken": "^9.0.2",
"pg": "^8.11.3"
},
"devDependencies": {
"@types/bcrypt": "^5.0.2",
"@types/express": "^4.17.21",
"@types/jsonwebtoken": "^9.0.5",
"@types/node": "^20.10.4",
"@types/pg": "^8.10.9",
"@typescript-eslint/eslint-plugin": "^6.14.0",
"@typescript-eslint/parser": "^6.14.0",
"eslint": "^8.55.0",
"eslint-config-prettier": "^9.1.0",
"prettier": "^3.1.1",
"typescript": "^5.3.3"
}
}