Skip to content

Commit

Permalink
Merge pull request #512 from elthrasher/update-build-test-publish
Browse files Browse the repository at this point in the history
updated dependencies
  • Loading branch information
jotamorais authored Sep 30, 2019
2 parents 2771c65 + bc71b6e commit aae917b
Show file tree
Hide file tree
Showing 12 changed files with 2,985 additions and 5,701 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ node_modules/
coverage/
npm-debug.log
.vscode/
.idea/
.idea/
.nyc_output/
3 changes: 3 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"require": "ts-node/register"
}
13 changes: 13 additions & 0 deletions .nycrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"all": true,
"check-coverage": true,
"exclude": [
"**/*.d.ts",
"src/decorator-options/**",
"src/metadata/args/**",
"src/metadata/types/**"
],
"extension": [".ts"],
"include": ["src/**"],
"reporter": ["html", "lcov", "text-summary"]
}
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
language: node_js
node_js:
- stable
- 12
- 10
- 8
- 6

after_success:
- bash <(curl -s https://codecov.io/bash)
- bash <(curl -s https://codecov.io/bash)
20 changes: 13 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ You can use routing-controllers with [express.js][1] or [koa.js][2].

1. Install module:

`npm install routing-controllers --save`
`npm install routing-controllers`

2. `reflect-metadata` shim is required:

`npm install reflect-metadata --save`
`npm install reflect-metadata`

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

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

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

`npm install express body-parser multer --save`
`npm install express body-parser multer`

Optionally you can also install their typings:

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

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

`npm install koa koa-router koa-bodyparser koa-multer --save`
`npm install koa koa-router koa-bodyparser koa-multer`

Optionally you can also install their typings:

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

4. Its important to set these options in `tsconfig.json` file of your project:
4. Install peer dependencies:

`npm install class-transformer class-validator`

In prior versions, these were direct dependencies, but now they are peer dependencies so you can choose when to upgrade and accept breaking changes.

5. Its important to set these options in `tsconfig.json` file of your project:

```json
{
Expand Down
197 changes: 0 additions & 197 deletions gulpfile.ts

This file was deleted.

Loading

0 comments on commit aae917b

Please sign in to comment.