Szakdolgozat/backend/package.json
NorbiPeti aa6f3f51de
Fix backend production deploy and database connection
- Fixed database URL locally and in production
- Set separate DB user just to be safe
- Migrate DB schema on each launch
- Use node user during dev but use root during deploy
- Fix output of the dev container (tsc-watch --noClear)
2021-11-15 22:47:41 +01:00

72 lines
2.3 KiB
JSON

{
"name": "szakdolgozat-backend",
"version": "0.0.1",
"description": "Szakdolgozat backend",
"keywords": [
"loopback-application",
"loopback"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"engines": {
"node": ">=10.16"
},
"scripts": {
"build": "lb-tsc",
"build:watch": "lb-tsc --watch",
"lint": "npm run eslint && npm run prettier:check",
"lint:fix": "npm run eslint:fix && npm run prettier:fix",
"prettier:cli": "lb-prettier \"**/*.ts\" \"**/*.js\"",
"prettier:check": "npm run prettier:cli -- -l",
"prettier:fix": "npm run prettier:cli -- --write",
"eslint": "lb-eslint --report-unused-disable-directives .",
"eslint:fix": "npm run eslint -- --fix",
"pretest": "npm run rebuild",
"test": "lb-mocha --allow-console-logs \"dist/__tests__\"",
"posttest": "npm run lint",
"test:dev": "lb-mocha --allow-console-logs dist/__tests__/**/*.js && npm run posttest",
"docker:build": "docker build -t szakdolgozat-backend .",
"docker:run": "docker run -p 3000:3000 -d szakdolgozat-backend",
"premigrate": "npm run build",
"migrate": "node ./dist/migrate",
"preopenapi-spec": "npm run build",
"openapi-spec": "node ./dist/openapi-spec",
"prestart": "npm run rebuild",
"start": "node -r source-map-support/register .",
"start:watch": "tsc-watch --target es2017 --outDir ./dist --onSuccess \"node .\" --noClear",
"clean": "lb-clean dist *.tsbuildinfo .eslintcache",
"rebuild": "npm run clean && npm run build"
},
"repository": {
"type": "git",
"url": ""
},
"author": "NorbiPeti <szatmari.norbert.peter@gmail.com>",
"license": "",
"files": [
"README.md",
"dist",
"src",
"!*/__tests__"
],
"dependencies": {
"@loopback/boot": "^3.4.4",
"@loopback/core": "^2.18.0",
"@loopback/repository": "^3.7.3",
"@loopback/rest": "^10.1.0",
"@loopback/rest-explorer": "^3.3.4",
"@loopback/service-proxy": "^3.2.4",
"loopback-connector-mysql": "^5.4.4",
"tslib": "^2.0.0"
},
"devDependencies": {
"@loopback/build": "^7.0.2",
"@loopback/eslint-config": "^11.0.2",
"@loopback/testlab": "^3.4.4",
"@types/node": "^10.17.60",
"eslint": "^7.32.0",
"source-map-support": "^0.5.20",
"tsc-watch": "^4.5.0",
"typescript": "~4.4.4"
}
}