Skip to content
This repository was archived by the owner on Jun 9, 2020. It is now read-only.

Commit 9586b8f

Browse files
authored
fix(packages): Upgrade packages and dependencies (#166)
1 parent 3581d84 commit 9586b8f

5 files changed

Lines changed: 30 additions & 78 deletions

File tree

.travis.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,25 @@ stages:
99
notifications:
1010
email: false
1111

12-
env:
13-
- BUILD_LEADER_ID=4
14-
1512
jobs:
1613
include:
1714
- stage: test
18-
node_js: '8'
15+
node_js: '9'
1916
after_success:
2017
- npm install coveralls@^2.11.9 && cat ./coverage/lcov.info | coveralls
2118
- stage: test
22-
node_js: '7'
19+
node_js: '8'
2320
after_success:
2421
- npm install coveralls@^2.11.9 && cat ./coverage/lcov.info | coveralls
2522
- stage: deploy
26-
node_js: '8'
23+
node_js: '9'
2724
script: npm run typedoc
2825
deploy:
2926
provider: pages
3027
skip_cleanup: true
3128
github_token: $GH_TOKEN
3229
local_dir: ./docs
3330
- stage: deploy
34-
node_js: '8'
31+
node_js: '9'
3532
before_script: npm run build
36-
script: echo "Deploy with semantic release"
37-
after_success: npm run semantic-release
33+
script: npm run semantic-release

docs/index.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,8 @@ If you want to create a plugin for giuseppe, use the other yeoman generator @
172172

173173
## Changelog
174174

175-
The changelog is based on [keep a changelog](http://keepachangelog.com) and is located here:
176-
177-
[Changelog](https://github.com/smartive/giuseppe/blob/master/CHANGELOG.md)
175+
The changelog is generated by [semantic release](https://github.com/semantic-release/semantic-release) and is located under
176+
the [release section](https://github.com/smartive/giuseppe-version-plugin/releases).
178177

179178
## Licence
180179

package.json

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"semantic-release": "semantic-release"
1616
},
1717
"engines": {
18-
"node": ">=7",
18+
"node": ">=8",
1919
"npm": "*"
2020
},
2121
"repository": {
@@ -47,26 +47,27 @@
4747
},
4848
"homepage": "https://github.com/smartive/giuseppe#readme",
4949
"dependencies": {
50-
"@types/express": "^4.0.39",
51-
"@types/glob": "^5.0.33",
50+
"@types/express": "^4.11.0",
51+
"@types/glob": "^5.0.34",
5252
"@types/http-status": "^0.2.30",
53-
"@types/node": "^8.0.53",
53+
"@types/node": "^9.3.0",
5454
"express": "^4.16.2",
5555
"glob": "^7.1.2",
5656
"http-status": "^1.0.1",
5757
"reflect-metadata": "^0.1.10",
58-
"tslib": "^1.8.0"
58+
"tslib": "^1.8.1"
5959
},
6060
"devDependencies": {
61-
"@types/jest": "^22.0.0",
61+
"@smartive/tslint-config": "^2.0.0",
62+
"@types/jest": "^22.0.1",
6263
"del-cli": "^1.1.0",
63-
"jest": "^21.2.1",
64-
"ts-jest": "^22.0.0",
65-
"tslint": "^5.8.0",
64+
"jest": "^22.1.1",
65+
"semantic-release": "^12.2.2",
66+
"ts-jest": "^22.0.1",
67+
"tslint": "^5.9.1",
6668
"tslint-config-airbnb": "^5.4.2",
67-
"tsutils": "^2.12.2",
69+
"tsutils": "^2.18.0",
6870
"typedoc": "^0.9.0",
69-
"typescript": "^2.6.1",
70-
"semantic-release": "^9.0.0"
71+
"typescript": "^2.6.2"
7172
}
7273
}

src/routes/GiuseppeRoute.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,34 @@
1-
import { HttpMethod } from './RouteDefinition';
21
import { RequestHandler } from 'express';
32

3+
import { HttpMethod } from './RouteDefinition';
4+
45
/**
56
* Interface for a route definition. Contains all relevant data about a route.
6-
*
7+
*
78
* @export
89
* @interface GiuseppeRoute
910
*/
1011
export interface GiuseppeRoute {
1112
/**
1213
* ID of the route. Should be unique. When a duplicate is found during the initialization of giuseppe,
1314
* an error is thrown.
14-
*
15+
*
1516
* @type {string}
1617
* @memberof GiuseppeRoute
1718
*/
1819
id: string;
1920

2021
/**
2122
* Url of the route.
22-
*
23+
*
2324
* @type {string}
2425
* @memberof GiuseppeRoute
2526
*/
2627
url: string;
2728

2829
/**
2930
* Name of the route. This should represent the name of the function inside the controller.
30-
*
31+
*
3132
* @type {string}
3233
* @memberof GiuseppeRoute
3334
*/
@@ -36,15 +37,15 @@ export interface GiuseppeRoute {
3637
/**
3738
* The used http method. Can be one of the supported express js methods
3839
* (see the full list here: {@link https://expressjs.com/en/api.html#routing-methods|routing-methods})
39-
*
40+
*
4041
* @type {HttpMethod}
4142
* @memberof GiuseppeRoute
4243
*/
4344
method: HttpMethod;
4445

4546
/**
4647
* The function that is called for the route. This function is most likely a reference to a class method.
47-
*
48+
*
4849
* @type {Function}
4950
* @memberof GiuseppeRoute
5051
*/
@@ -53,7 +54,7 @@ export interface GiuseppeRoute {
5354
/**
5455
* A list of middlewares. All middlewares are concatenated with the ones of the controller and preceed the route
5556
* function. A typical error can be to forget to call "next();" inside the middleware function.
56-
*
57+
*
5758
* @type {RequestHandler[]}
5859
* @memberof GiuseppeRoute
5960
*/

tslint.json

Lines changed: 1 addition & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,17 @@
11
{
2-
"extends": "tslint-config-airbnb",
2+
"extends": "@smartive/tslint-config",
33
"rules": {
44
"function-name": false,
5-
"max-line-length": [
6-
true,
7-
125
8-
],
9-
"member-ordering": [
10-
true,
11-
{
12-
"order": [
13-
"public-static-field",
14-
"protected-static-field",
15-
"private-static-field",
16-
"public-instance-field",
17-
"protected-instance-field",
18-
"private-instance-field",
19-
"constructor",
20-
"public-static-method",
21-
"protected-static-method",
22-
"private-static-method",
23-
"public-instance-method",
24-
"protected-instance-method",
25-
"private-instance-method"
26-
]
27-
}
28-
],
29-
"no-increment-decrement": false,
30-
"no-trailing-whitespace": [
31-
true,
32-
"ignore-jsdoc",
33-
"ignore-template-strings"
34-
],
355
"ter-arrow-parens": [
366
true,
377
"as-needed"
388
],
39-
"no-boolean-literal-compare": false,
40-
"strict-boolean-expressions": false,
419
"ter-indent": [
4210
true,
4311
4,
4412
{
4513
"SwitchCase": 1
4614
}
47-
],
48-
"typedef": [
49-
true,
50-
"call-signature",
51-
"parameter",
52-
"property-declaration",
53-
"member-variable-declaration"
54-
],
55-
"variable-name": [
56-
true,
57-
"check-format",
58-
"ban-keywords",
59-
"allow-leading-underscore"
6015
]
6116
}
6217
}

0 commit comments

Comments
 (0)