generated from NodeFactoryIo/node-ts-starter
-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
97 lines (97 loc) · 3.55 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
"name": "nodejs-ts-starter",
"description": "Starter project for developing with NodeJs (Typescript) as backend server",
"version": "1.0.0",
"contributors": [
"Marin Petrunić <[email protected]>",
"Belma Gutlić <[email protected]>"
],
"engines": {
"node": "14.x"
},
"license": "MIT",
"scripts": {
"start:dev": "npx task dev",
"db:migration:new": "yarn run typeorm-ts migration:create -n ",
"db:migration:generate": "npx task npm typeorm-ts migration:generate -n ",
"db:entity:new": "yarn run typeorm-ts entity:create -n ",
"db:subscriber:new": "yarn run typeorm-ts subscriber:create -n ",
"db:migrate": "npx task npm typeorm-ts migration:run",
"db:seed": "npx task npm seeder seed",
"db:revert": "npx task npm typeorm-ts migration:revert",
"lint": "yarn run lint:style && yarn run lint:types",
"lint:style": "eslint --color --ext .ts src/ test/",
"lint:types": "tsc --noEmit --pretty",
"test": "yarn run test:unit",
"test:unit": "NODE_ENV=test nyc --all --include \"src/**/*.ts\" mocha -r ts-node/register \"test/unit/**/*.spec.ts\"",
"test:unit:ci": "NODE_ENV=test nyc --reporter=lcov --all --include \"src/**/*.ts\" mocha -r ts-node/register \"test/unit/**/*.spec.ts\"",
"test:e2e": "SERVER_PORT=0 mocha --timeout 30000 -r ts-node/register -r dotenv/config \"test/e2e/**/*.spec.ts\"",
"prepare": "env-prompt -d .env.sample && task build",
"init": "mkdir dist",
"prebuild": "yarn run clean && yarn run init",
"build": "tsc -p tsconfig.build.json --sourceMap --outDir dist",
"build:docker": "yarn run task build",
"clean": "rm -rf dist",
"task": "ts-node ./tasksfile.ts",
"typeorm-ts": "ts-node ./node_modules/typeorm/cli.js",
"seeder": "ts-node ./node_modules/typeorm-seeding/dist/cli.js",
"start:server": "node --inspect=0.0.0.0:56745 -r ts-node/register -r dotenv/config src/index.ts",
"nodemon": "cross-env NODE_ENV=development ./node_modules/nodemon/bin/nodemon.js"
},
"dependencies": {
"fastify": "^3.29.4",
"fastify-compress": "^3.5.0",
"fastify-cors": "^6.0.1",
"fastify-env": "^2.1.1",
"fastify-formbody": "^5.0.0",
"fastify-healthcheck": "^3.1.0",
"fastify-helmet": "^5.3.1",
"fastify-metrics": "^7.2.1",
"fastify-sensible": "^3.1.1",
"fastify-swagger": "^4.7.0",
"node-cleanup": "^2.1.2",
"pg": "^8.6.0",
"pg-native": "^3.0.0",
"pino": "^6.11.3",
"pino-multi-stream": "^5.3.0",
"pino-pretty": "^5.0.1",
"typeorm": "^0.2.32",
"typeorm-seeding": "^1.6.1"
},
"devDependencies": {
"@types/chai": "^4.2.14",
"@types/faker": "^5.1.5",
"@types/mocha": "^8.2.0",
"@types/node": "^14.14.22",
"@types/node-cleanup": "^2.1.1",
"@types/pino": "^6.3.8",
"@types/pino-multi-stream": "^5.1.1",
"@types/pino-pretty": "^4.7.0",
"@types/sinon": "^9.0.10",
"@types/supertest": "^2.0.10",
"@typescript-eslint/eslint-plugin": "^4.14.0",
"@typescript-eslint/parser": "^4.14.0",
"chai": "^4.2.0",
"coveralls": "^3.1.0",
"cross-env": "^7.0.3",
"dotenv": "^8.2.0",
"env-prompt": "^1.2.3",
"eslint": "^7.20.0",
"eslint-config-prettier": "^7.2.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.3.1",
"mocha": "^8.2.1",
"nodemon": "^2.0.7",
"nyc": "^15.1.0",
"prettier": "^2.2.1",
"sinon": "^9.2.3",
"supertest": "^6.1.1",
"tasksfile": "5.1.1",
"ts-node": "^9.1.1",
"typescript": "^4.1.3",
"typescript-eslint-parser": "^22.0.0"
},
"resolutions": {
"lodash": "4.17.20"
}
}