Skip to content

Commit

Permalink
Update package.json to use c8
Browse files Browse the repository at this point in the history
  • Loading branch information
imbstack committed Jun 25, 2019
1 parent 4eb7f46 commit a84d667
Show file tree
Hide file tree
Showing 25 changed files with 50 additions and 50 deletions.
4 changes: 2 additions & 2 deletions libraries/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"description": "taskcluster-lib-api",
"license": "MPL-2.0",
"scripts": {
"coverage": "nyc npm test",
"coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts",
"coverage": "c8 yarn test",
"coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts",
"lint": "eslint src/*.js test/*.js",
"test": "mocha test/*_test.js"
},
Expand Down
4 changes: 2 additions & 2 deletions libraries/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"description": "taskcluster-lib-app",
"license": "MPL-2.0",
"scripts": {
"coverage": "nyc npm test",
"coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts",
"coverage": "c8 yarn test",
"coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts",
"lint": "eslint src/*.js test/*.js",
"test": "mocha test/*_test.js"
},
Expand Down
4 changes: 2 additions & 2 deletions libraries/azure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"description": "Azure SAS credential shim for Taskcluster.",
"license": "MPL-2.0",
"scripts": {
"coverage": "nyc npm test",
"coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts",
"coverage": "c8 yarn test",
"coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts",
"lint": "eslint src/*.js test/*.js",
"test": "mocha test/*_test.js"
},
Expand Down
4 changes: 2 additions & 2 deletions libraries/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"license": "MPL-2.0",
"main": "./src/index.js",
"scripts": {
"coverage": "nyc npm test",
"coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts",
"coverage": "c8 yarn test",
"coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts",
"lint": "eslint src/*.js test/*.js",
"test": "mocha test/*_test.js"
}
Expand Down
4 changes: 2 additions & 2 deletions libraries/iterate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"description": "A library to share iteration logic",
"main": "src/index.js",
"scripts": {
"coverage": "nyc npm test",
"coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts",
"coverage": "c8 yarn test",
"coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts",
"lint": "eslint src/*.js test/*.js",
"test": "mocha"
},
Expand Down
4 changes: 2 additions & 2 deletions libraries/loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"test": "test"
},
"scripts": {
"coverage": "nyc npm test",
"coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts",
"coverage": "c8 yarn test",
"coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts",
"test": "mocha test/*.js",
"lint": "eslint src/*.js test/*.js"
},
Expand Down
4 changes: 2 additions & 2 deletions libraries/monitor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"description": "Make it easy to hook up monitoring and metrics for taskcluster services.",
"license": "MPL-2.0",
"scripts": {
"coverage": "nyc npm test",
"coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts",
"coverage": "c8 yarn test",
"coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts",
"lint": "eslint src/*.js test/*.js",
"test": "mocha test/*_test.js"
},
Expand Down
4 changes: 2 additions & 2 deletions libraries/pulse/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"author": "Dustin J. Mitchell <dustin@mozilla.com>",
"license": "MPL-2.0",
"scripts": {
"coverage": "nyc npm test",
"coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts",
"coverage": "c8 yarn test",
"coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts",
"test": "mocha test/*_test.js",
"lint": "eslint src/*.js test/*.js"
}
Expand Down
4 changes: 2 additions & 2 deletions libraries/references/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"version": "14.1.0",
"main": "src/index.js",
"scripts": {
"coverage": "nyc npm test",
"coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts",
"coverage": "c8 yarn test",
"coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts",
"lint": "eslint src/*.js test/*.js",
"test": "mocha test/*_test.js"
},
Expand Down
4 changes: 2 additions & 2 deletions libraries/scopes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"description": "Scope checking utilities for Taskcluster",
"license": "MPL-2.0",
"scripts": {
"coverage": "nyc npm test",
"coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts",
"coverage": "c8 yarn test",
"coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts",
"lint": "eslint src/*.js test/*.js",
"test": "mocha test/*_test.js"
},
Expand Down
4 changes: 2 additions & 2 deletions libraries/testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"description": "taskcluster-lib-testing",
"license": "MPL-2.0",
"scripts": {
"coverage": "nyc npm test",
"coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts",
"coverage": "c8 yarn test",
"coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts",
"lint": "eslint src/*.js test/*.js",
"test": "mocha test/*_test.js"
},
Expand Down
4 changes: 2 additions & 2 deletions libraries/validate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"description": "Validate schemas for Taskcluster projects",
"license": "MPL-2.0",
"scripts": {
"coverage": "nyc npm test",
"coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts",
"coverage": "c8 yarn test",
"coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts",
"lint": "eslint src/*.js test/*.js",
"test": "mocha test/*_test.js"
},
Expand Down
4 changes: 2 additions & 2 deletions services/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"private": true,
"main": "node src/server production",
"scripts": {
"coverage": "nyc npm test",
"coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts",
"coverage": "c8 yarn test",
"coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts",
"test": "mocha test/*_test.js",
"test:cleanup": "mocha test/cleanup.js",
"lint": "eslint src/*.js test/*.js"
Expand Down
4 changes: 2 additions & 2 deletions services/built-in-workers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "14.1.0",
"private": true,
"scripts": {
"coverage": "nyc npm test",
"coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts",
"coverage": "c8 yarn test",
"coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts",
"test": "mocha test/*_test.js",
"lint": "eslint src/*.js test/*.js"
}
Expand Down
4 changes: 2 additions & 2 deletions services/github/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "14.1.0",
"private": true,
"scripts": {
"coverage": "nyc npm test",
"coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts",
"coverage": "c8 yarn test",
"coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts",
"lint": "eslint src/*.js test/*.js",
"test": "mocha test/*_test.js"
}
Expand Down
4 changes: 2 additions & 2 deletions services/hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "14.1.0",
"private": true,
"scripts": {
"coverage": "nyc npm test",
"coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts",
"coverage": "c8 yarn test",
"coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts",
"lint": "eslint src/*.js test/*.js",
"test": "mocha test/*_test.js"
},
Expand Down
4 changes: 2 additions & 2 deletions services/index/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"private": true,
"main": "./src/main.js",
"scripts": {
"coverage": "nyc npm test",
"coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts",
"coverage": "c8 yarn test",
"coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts",
"lint": "eslint src/*.js test/*.js",
"test": "mocha test/*_test.js"
}
Expand Down
4 changes: 2 additions & 2 deletions services/login/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"author": "Jonas Finnemann Jensen <jopsen@gmail.com>",
"license": "MPL-2.0",
"scripts": {
"coverage": "nyc npm test",
"coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts",
"coverage": "c8 yarn test",
"coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts",
"lint": "eslint src/*.js src/*/*.js test/*.js",
"test": "mocha test/*_test.js"
}
Expand Down
4 changes: 2 additions & 2 deletions services/notify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"description": "Collect all of the ways of notifying users into one place for other tc services.",
"license": "MPL-2.0",
"scripts": {
"coverage": "nyc npm test",
"coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts",
"coverage": "c8 yarn test",
"coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts",
"test": "mocha test/*_test.js",
"lint": "eslint src/*.js test/*.js"
}
Expand Down
4 changes: 2 additions & 2 deletions services/purge-cache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "14.1.0",
"private": true,
"scripts": {
"coverage": "nyc npm test",
"coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts",
"coverage": "c8 yarn test",
"coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts",
"test": "mocha test/*_test.js",
"lint": "eslint src/*.js test/*.js"
}
Expand Down
4 changes: 2 additions & 2 deletions services/queue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "14.1.0",
"private": true,
"scripts": {
"coverage": "nyc npm test",
"coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts",
"coverage": "c8 yarn test",
"coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts",
"test": "mocha test/*_test.js",
"lint": "eslint src/*.js test/*.js"
}
Expand Down
4 changes: 2 additions & 2 deletions services/secrets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "14.1.0",
"private": true,
"scripts": {
"coverage": "nyc npm test",
"coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts",
"coverage": "c8 yarn test",
"coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts",
"test": "mocha test/*_test.js",
"lint": "eslint src/*.js test/*.js"
}
Expand Down
4 changes: 2 additions & 2 deletions services/treeherder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "14.1.0",
"private": true,
"scripts": {
"coverage": "nyc npm test",
"coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts",
"coverage": "c8 yarn test",
"coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts",
"test": "mocha test/*_test.js",
"lint": "eslint src/*.js test/*.js"
}
Expand Down
4 changes: 2 additions & 2 deletions services/web-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"author": "Eli Perelman <eli@eliperelman.com>",
"license": "MPL-2.0",
"scripts": {
"coverage": "nyc npm test",
"coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts",
"coverage": "c8 yarn test",
"coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts",
"start": "NODE_ENV=development node src/main.js devServer",
"lint": "eslint --cache --format codeframe --ext mjs,js src test",
"test": "mocha test/*_test.js"
Expand Down
4 changes: 2 additions & 2 deletions services/worker-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"license": "MPL-2.0",
"private": true,
"scripts": {
"coverage": "nyc npm test",
"coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts",
"coverage": "c8 yarn test",
"coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts",
"lint": "eslint src/*.js test/*.js",
"fixlint": "eslint --fix src/*.js test/*.js",
"test": "mocha test/*_test.js"
Expand Down

0 comments on commit a84d667

Please sign in to comment.