2021-03-09 14:04:16 +00:00
|
|
|
{
|
|
|
|
"name": "jwt-test",
|
|
|
|
"version": "1.0.0",
|
|
|
|
"description": "",
|
|
|
|
"main": "./server/index.js",
|
2021-03-18 10:13:52 +00:00
|
|
|
"watch": {
|
|
|
|
"run_server": {
|
|
|
|
"patterns": [
|
|
|
|
"src"
|
|
|
|
],
|
|
|
|
"extensions": "ts,html,scss",
|
|
|
|
"quiet": false
|
|
|
|
}
|
|
|
|
},
|
2021-03-09 14:04:16 +00:00
|
|
|
"scripts": {
|
|
|
|
"run:ts": "ts-node ./src/development.ts",
|
|
|
|
"clean": "rm -rf dist",
|
|
|
|
"prebuild": "rimraf ./server",
|
|
|
|
"test:js": "mocha test/**/*.js",
|
|
|
|
"test:ts": "mocha -r ts-node/register test/**/*.ts",
|
2021-03-18 10:13:52 +00:00
|
|
|
"lint": "eslint ./src --ext .ts",
|
2021-03-09 14:04:16 +00:00
|
|
|
"coverage": "nyc npm run test:js",
|
|
|
|
"build:js": "rollup -c rollup.config.js",
|
|
|
|
"compile:es": "tsc --declaration true --declarationMap true --module esnext --outDir './server/es'",
|
|
|
|
"compile:commonjs": "tsc --declaration true --declarationMap true --module commonjs --outDir './server/commonjs'",
|
|
|
|
"compile:ts": "tsc --outDir './server'",
|
2021-03-18 10:13:52 +00:00
|
|
|
"compile": "npm run prebuild && npm run compile:es && npm run compile:commonjs",
|
|
|
|
"run_server": "npm run run:ts",
|
2021-03-25 10:08:41 +00:00
|
|
|
"watch_server": "npm-watch run_server",
|
|
|
|
"docker:start": "cd ./db && docker-compose up -d --build",
|
|
|
|
"docker:stop": "cd ./db && docker-compose down",
|
|
|
|
"docker:cleanup": "cd ./db && docker-compose down -v --remove-orphans",
|
|
|
|
"docker:logs": "cd ./db && docker-compose logs -f",
|
|
|
|
"quick_start": "npm run docker:start && npm run watch_server"
|
2021-03-09 14:04:16 +00:00
|
|
|
},
|
|
|
|
"keywords": [],
|
|
|
|
"author": "",
|
|
|
|
"license": "ISC",
|
|
|
|
"dependencies": {
|
|
|
|
"@types/dotenv": "^8.2.0",
|
|
|
|
"@types/helmet": "^4.0.0",
|
|
|
|
"@types/joi": "^17.2.3",
|
|
|
|
"@types/sqlite3": "^3.1.7",
|
|
|
|
"cors": "^2.8.5",
|
|
|
|
"dotenv": "^8.2.0",
|
|
|
|
"express": "^4.17.1",
|
|
|
|
"express-session": "^1.17.1",
|
|
|
|
"fecha": "^4.2.0",
|
|
|
|
"helmet": "^4.4.1",
|
|
|
|
"joi": "^17.4.0",
|
|
|
|
"jsonfile": "^6.1.0",
|
|
|
|
"jsonwebtoken": "^8.5.1",
|
|
|
|
"lodash": "^4.17.21",
|
|
|
|
"log4js": "^6.3.0",
|
|
|
|
"mongoose": "^5.10.11",
|
|
|
|
"morgan": "^1.10.0",
|
2021-03-25 10:08:41 +00:00
|
|
|
"pg-promise": "^10.9.5",
|
2021-03-09 14:04:16 +00:00
|
|
|
"short-hash": "^1.0.0",
|
2021-03-25 10:08:41 +00:00
|
|
|
"sqlite3": "^5.0.2",
|
|
|
|
"ts-postgres": "^1.1.3"
|
2021-03-09 14:04:16 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
|
|
|
"@types/cors": "^2.8.10",
|
|
|
|
"@types/express": "^4.17.8",
|
2021-03-18 10:13:52 +00:00
|
|
|
"@types/express-serve-static-core": "^4.17.18",
|
2021-03-09 14:04:16 +00:00
|
|
|
"@types/express-session": "^1.17.0",
|
2021-03-25 10:08:41 +00:00
|
|
|
"@types/http-codes": "^1.0.1",
|
2021-03-09 14:04:16 +00:00
|
|
|
"@types/jsonwebtoken": "^8.5.0",
|
|
|
|
"@types/morgan": "^1.9.2",
|
2021-03-18 10:13:52 +00:00
|
|
|
"@typescript-eslint/eslint-plugin": "^4.18.0",
|
|
|
|
"@typescript-eslint/parser": "^4.18.0",
|
|
|
|
"eslint": "7.22.0",
|
2021-03-25 10:08:41 +00:00
|
|
|
"http-codes": "^1.0.0",
|
2021-03-09 14:04:16 +00:00
|
|
|
"prettier": "^2.2.1",
|
|
|
|
"rimraf": "^3.0.2",
|
|
|
|
"rollup": "^2.33.1",
|
|
|
|
"ts-node": "^9.0.0",
|
|
|
|
"typescript": "^4.0.5",
|
|
|
|
"typings": "^2.1.1"
|
|
|
|
}
|
|
|
|
}
|