Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit d543d2b

Browse files
djonathascardososilva-fabio
authored andcommitted
test: added GTS scripts
1 parent 4adaa33 commit d543d2b

2 files changed

Lines changed: 15 additions & 9 deletions

File tree

packages/opencensus-core/package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@
88
"scripts": {
99
"build": "node_modules/.bin/tsc --declaration",
1010
"test": "nyc --reporter=html --reporter=text mocha 'build/test/**/*.js'",
11-
"clean": "rimraf build/*"
11+
"clean": "rimraf build/*",
12+
"check": "gts check",
13+
"compile": "tsc -p .",
14+
"fix": "gts fix",
15+
"prepare": "npm run compile",
16+
"pretest": "npm run compile",
17+
"posttest": "npm run check"
1218
},
1319
"keywords": [
1420
"opencensus",
@@ -40,11 +46,11 @@
4046
"@types/semver": "^5.5.0",
4147
"@types/shimmer": "^1.0.1",
4248
"@types/uuid": "^3.4.3",
43-
"gts": "^0.5.1",
49+
"gts": "^0.5.4",
4450
"mocha": "^5.0.4",
4551
"ncp": "^2.0.0",
4652
"ts-node": "^4.0.0",
47-
"typescript": "^2.7.2",
53+
"typescript": "~2.6.1",
4854
"nyc": "11.6.0"
4955
},
5056
"dependencies": {

packages/opencensus-core/tsconfig.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"extends": "./node_modules/gts/tsconfig-google.json",
23
"compilerOptions": {
34
"rootDir": ".",
45
"outDir": "build",
@@ -13,12 +14,11 @@
1314
"target": "es6",
1415
"sourceMap": false
1516
},
17+
"include": [
18+
"src/*.ts",
19+
"test/*.ts",
20+
],
1621
"exclude": [
1722
"node_modules"
18-
],
19-
"include": [
20-
"src/**/*.ts",
21-
"test/**/*.ts"
2223
]
23-
24-
}
24+
}

0 commit comments

Comments
 (0)