-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
158 lines (158 loc) · 6.3 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
{
"name": "bp-nestjs",
"version": "0.1.0",
"description": "Full back-end boilerplate based on NestJS and MikroORM. Written in TypeScript.",
"author": {
"name": "Etienne Bechara",
"email": "[email protected]"
},
"repository": {
"type": "git",
"url": "https://github.com/etienne-bechara/bp-nestjs"
},
"license": "MIT",
"engines": {
"node": ">=14.0.0",
"npm": ">=6.0.0"
},
"scripts": {
"==== Build & Run ====": "",
"build": "nest build",
"dev": "npm start",
"start": "tsnd --exit-child --transpile-only --watch *.env --inspect=0.0.0.0:9229 ./source/core/main.ts",
"start:dist": "node ./source/core/main.js || node ./build/source/core/main.js",
"start:docker": "npm run build && docker build -t bp-nestjs build && docker run -it -p 8080:8080 bp-nestjs",
"==== Lint & Test ====": "",
"index": "barrelsby -D -q -l all -e \\.spec\\.ts$ -d ./source && rimraf index.ts",
"lint": "eslint **/*.ts",
"lint:fix": "eslint **/*.ts --fix",
"test": "jest --verbose --forceExit --passWithNoTests",
"test:watch": "jest --verbose --watch",
"test:coverage": "jest --coverage --passWithNoTests",
"==== Package Update ====": "",
"update:patch": "ncu -u --semverLevel minor && npm i && npm audit fix",
"update:minor": "ncu -u --semverLevel major && npm i && npm audit fix",
"update:major": "ncu -u && npm i && npm audit fix --force",
"==== Boilerplate Config ====": "",
"boilerplate:setup": "npm i && ncp .env.schema .env && npm run boilerplate:rename && npm run boilerplate:update",
"boilerplate:rename": "git remote rename origin boilerplate && git remote set-url --push boilerplate no_push && git checkout -b master",
"boilerplate:update": "git fetch boilerplate && git merge boilerplate/main",
"==== Boilerplate Removal ====": "",
"uninstall:orm": "npm un @mikro-orm/core @mikro-orm/mysql @mikro-orm/nestjs @mikro-orm/cli && rimraf source/core/orm && rimraf migration && rimraf template/crud",
"uninstall:redis": "npm un ioredis @types/ioredis && rimraf source/core/redis",
"uninstall:sentry": "npm un @sentry/node && rimraf source/core/sentry",
"==== Template Generation ====": "",
"template:api": "ts-node ./template/template.cli -t api",
"template:bare": "ts-node ./template/template.cli -t bare",
"template:crud": "ts-node ./template/template.cli -t crud",
"==== Migration Create ====": "",
"migration:create:local": "npm run migration:set:local && mikro-orm migration:create",
"migration:create:dev": "npm run migration:set:dev && mikro-orm migration:create",
"migration:create:stg": "npm run migration:set:stg && mikro-orm migration:create",
"migration:create:prd": "npm run migration:set:prd && mikro-orm migration:create",
"==== Migration Dump ====": "",
"migration:dump:local": "npm run migration:set:local && mikro-orm schema:update --dump",
"migration:dump:dev": "npm run migration:set:dev && mikro-orm schema:update --dump",
"migration:dump:stg": "npm run migration:set:stg && mikro-orm schema:update --dump",
"migration:dump:prd": "npm run migration:set:prd && mikro-orm schema:update --dump",
"==== Migration Sync ====": "",
"migration:sync:local": "npm run migration:dump:local && mikro-orm schema:update --run",
"migration:sync:dev": "npm run migration:dump:dev && mikro-orm schema:update --run",
"migration:sync:stg": "npm run migration:dump:stg && mikro-orm schema:update --run",
"migration:sync:prd": "npm run migration:dump:prd && mikro-orm schema:update --run",
"==== Migration Set ====": "",
"migration:set:local": "npm run build && ncp .env build/.env",
"migration:set:dev": "npm run build && ncp .env.development build/.env",
"migration:set:stg": "npm run build && ncp .env.staging build/.env",
"migration:set:prd": "npm run build && ncp .env.production build/.env",
"==== Migration Up ====": "",
"migration:up": "(mikro-orm -v && mikro-orm migration:up) || (echo ORM not installed, skipping migrations... && exit 0)"
},
"husky": {
"hooks": {
"pre-commit": "npm run index && git add ./\\*index.ts && lint-staged --allow-empty"
}
},
"lint-staged": {
"*.ts": "eslint --cache --fix"
},
"mikro-orm": {
"useTsNode": true,
"configPaths": [
"./build/source/core/orm/orm.config.migration.js"
]
},
"jest": {
"coverageDirectory": "../coverage",
"testEnvironment": "node",
"rootDir": "source",
"testRegex": ".spec.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
}
},
"dependencies": {
"@mikro-orm/core": "4.2.3",
"@mikro-orm/mysql": "4.2.3",
"@mikro-orm/nestjs": "4.2.0",
"@nestjs/common": "7.4.4",
"@nestjs/core": "7.4.4",
"@nestjs/platform-express": "7.4.4",
"@sentry/node": "5.27.2",
"axios": "0.21.0",
"chalk": "4.1.0",
"class-transformer": "0.3.1",
"class-validator": "0.12.2",
"clean-stack": "3.0.0",
"cycle": "1.0.3",
"dotenv": "8.2.0",
"flat": "5.0.2",
"globby": "11.0.1",
"ioredis": "4.19.1",
"jsonwebtoken": "8.5.1",
"moment": "2.29.1",
"qs": "6.9.4",
"reflect-metadata": "0.1.13",
"request-ip": "2.1.3",
"rxjs": "6.6.3",
"source-map-support": "0.5.19",
"uuid": "8.3.1"
},
"devDependencies": {
"@mikro-orm/cli": "4.2.3",
"@nestjs/cli": "7.5.1",
"@nestjs/testing": "7.4.4",
"@types/express": "4.17.8",
"@types/flat": "5.0.1",
"@types/fs-extra": "9.0.2",
"@types/ioredis": "4.17.6",
"@types/jest": "26.0.15",
"@types/jsonwebtoken": "8.5.0",
"@types/node": "14.14.6",
"@types/uuid": "8.3.0",
"@typescript-eslint/eslint-plugin": "4.6.0",
"@typescript-eslint/parser": "4.6.0",
"barrelsby": "2.2.0",
"change-case": "4.1.1",
"eslint": "7.12.1",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jest": "24.1.0",
"eslint-plugin-jsdoc": "30.7.3",
"eslint-plugin-more": "1.0.0",
"eslint-plugin-promise": "4.2.1",
"eslint-plugin-simple-import-sort": "5.0.3",
"eslint-plugin-unicorn": "23.0.0",
"eslint-plugin-unused-imports": "1.0.0",
"fs-extra": "9.0.1",
"husky": "4.3.0",
"jest": "26.6.1",
"lint-staged": "10.5.0",
"ncp": "2.0.0",
"npm-check-updates": "9.2.3",
"rimraf": "3.0.2",
"ts-jest": "26.4.3",
"ts-node-dev": "1.0.0",
"typescript": "4.0.5",
"yargs": "16.1.0"
}
}