-
Notifications
You must be signed in to change notification settings - Fork 36
/
package.json
93 lines (93 loc) · 2.75 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
{
"name": "moleculerjs-boilerplate",
"version": "1.0.0",
"description": "My Moleculer microservices project",
"scripts": {
"build": "tsc",
"dev": "ts-node -r tsconfig-paths/register ./node_modules/moleculer/bin/moleculer-runner.js --hot --repl --config moleculer.config.ts services/**/*.service.ts & npm run swagger",
"start": "TS_NODE_PROJECT=tsconfig.production.json node -r tsconfig-paths/register ./node_modules/moleculer/bin/moleculer-runner.js dist/services",
"cli": "pankod-cli add",
"test": "jest --coverage --runInBand",
"lint": "eslint -c .eslintrc.js --ext .ts {services,src,test}/**",
"format": "eslint -c .eslintrc.js --ext .ts --fix {services,src,test}/**",
"dc:up": "docker-compose up --build -d",
"dc:down": "docker-compose down",
"swagger": "swagger-jsdoc -d swagger/config.js -o swagger/swagger.json services/*.service.ts && node ./swagger/index.js",
"setup-db": "cp db.sqlite.example db.sqlite"
},
"pankod": {
"project": "moleculer"
},
"keywords": [
"microservices",
"moleculer",
"typescript",
"typeorm",
"swagger",
"eslint",
"jest",
"supertest"
],
"author": "Pankod <[email protected]>",
"devDependencies": {
"@pankod/pankod-cli": "^0.2.3",
"@types/jest": "^23.1.1",
"@types/node": "^10.12.12",
"@types/supertest": "^2.0.8",
"@typescript-eslint/eslint-plugin": "^1.9.0",
"@typescript-eslint/parser": "^1.9.0",
"eslint": "^5.16.0",
"eslint-config-prettier": "^4.3.0",
"eslint-plugin-prettier": "^3.1.0",
"jest": "^23.6.0",
"jest-cli": "^23.6.0",
"moleculer-repl": "^0.5.3",
"prettier": "^1.17.1",
"supertest": "^4.0.2",
"swagger-ui-express": "^4.0.2",
"ts-jest": "^23.10.5",
"ts-node": "^7.0.1",
"typescript": "^3.3.3333"
},
"dependencies": {
"cors": "^2.8.5",
"express": "^4.16.4",
"moleculer": "^0.14.5",
"moleculer-decorators": "^1.2.0",
"moleculer-web": "^0.8.0",
"nats": "^1.3.0",
"reflect-metadata": "^0.1.13",
"sqlite3": "^4.1.1",
"swagger-jsdoc": "^3.2.9",
"tsconfig-paths": "^3.8.0",
"typeorm": "^0.2.18"
},
"engines": {
"node": ">= 8.x.x"
},
"jest": {
"coverageDirectory": "<rootDir>/coverage",
"testEnvironment": "node",
"moduleFileExtensions": [
"ts",
"js"
],
"moduleNameMapper": {
"^@(Test)(.*)$": "<rootDir>/test/$2",
"@Entities/Connection": "<rootDir>/test/Config/Connection",
"^@([A-Z].*)$": "<rootDir>/src/$1"
},
"transform": {
"^.+\\.(ts)$": "ts-jest"
},
"testMatch": [
"**/*.spec.(ts)"
],
"setupTestFrameworkScriptFile": "<rootDir>/test/Config/mock.setup.ts",
"globals": {
"ts-jest": {
"tsConfig": "<rootDir>/tsconfig.json"
}
}
}
}