Skip to content

Commit aae917b

Browse files
authored
Merge pull request #512 from elthrasher/update-build-test-publish
updated dependencies
2 parents 2771c65 + bc71b6e commit aae917b

12 files changed

+2985
-5701
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ node_modules/
33
coverage/
44
npm-debug.log
55
.vscode/
6-
.idea/
6+
.idea/
7+
.nyc_output/

.mocharc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"require": "ts-node/register"
3+
}

.nycrc.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"all": true,
3+
"check-coverage": true,
4+
"exclude": [
5+
"**/*.d.ts",
6+
"src/decorator-options/**",
7+
"src/metadata/args/**",
8+
"src/metadata/types/**"
9+
],
10+
"extension": [".ts"],
11+
"include": ["src/**"],
12+
"reporter": ["html", "lcov", "text-summary"]
13+
}

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
language: node_js
22
node_js:
3-
- stable
3+
- 12
4+
- 10
45
- 8
5-
- 6
66

77
after_success:
8-
- bash <(curl -s https://codecov.io/bash)
8+
- bash <(curl -s https://codecov.io/bash)

README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ You can use routing-controllers with [express.js][1] or [koa.js][2].
7373

7474
1. Install module:
7575

76-
`npm install routing-controllers --save`
76+
`npm install routing-controllers`
7777

7878
2. `reflect-metadata` shim is required:
7979

80-
`npm install reflect-metadata --save`
80+
`npm install reflect-metadata`
8181

8282
and make sure to import it before you use routing-controllers:
8383

@@ -89,21 +89,27 @@ You can use routing-controllers with [express.js][1] or [koa.js][2].
8989

9090
**a. If you want to use routing-controllers with *express.js*, then install it and all required dependencies:**
9191

92-
`npm install express body-parser multer --save`
92+
`npm install express body-parser multer`
9393

9494
Optionally you can also install their typings:
9595

96-
`npm install @types/express @types/body-parser @types/multer --save`
96+
`npm install -D @types/express @types/body-parser @types/multer`
9797

9898
**b. If you want to use routing-controllers with *koa 2*, then install it and all required dependencies:**
9999

100-
`npm install koa koa-router koa-bodyparser koa-multer --save`
100+
`npm install koa koa-router koa-bodyparser koa-multer`
101101

102102
Optionally you can also install their typings:
103103

104-
`npm install @types/koa @types/koa-router @types/koa-bodyparser --save`
104+
`npm install -D @types/koa @types/koa-router @types/koa-bodyparser`
105105

106-
4. Its important to set these options in `tsconfig.json` file of your project:
106+
4. Install peer dependencies:
107+
108+
`npm install class-transformer class-validator`
109+
110+
In prior versions, these were direct dependencies, but now they are peer dependencies so you can choose when to upgrade and accept breaking changes.
111+
112+
5. Its important to set these options in `tsconfig.json` file of your project:
107113

108114
```json
109115
{

gulpfile.ts

Lines changed: 0 additions & 197 deletions
This file was deleted.

0 commit comments

Comments
 (0)