Skip to content

Commit

Permalink
Add test, compile and test:coverage command for windows development.
Browse files Browse the repository at this point in the history
  • Loading branch information
efabris committed May 21, 2020
1 parent a4541d3 commit 91ad23c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
"description": "Automatically validate API requests and responses with OpenAPI 3 and Express.",
"main": "dist/index.js",
"scripts": {
"compile:windows": "rmdir dist /s /q & tsc",
"compile": "rm -rf dist/ && tsc",
"test": "TS_NODE_FILES=true mocha -r source-map-support/register -r ts-node/register --files --recursive test/**/*.spec.ts",
"test:windows": "set TS_NODE_FILES=true & mocha -r source-map-support/register -r ts-node/register --files --recursive test/**/*.spec.ts",
"test:coverage": "TS_NODE_FILES=true nyc mocha -r source-map-support/register -r ts-node/register --recursive test/**/*.spec.ts",
"test:coverage:windows": "set TS_NODE_FILES=true & nyc mocha -r source-map-support/register -r ts-node/register --recursive test/**/*.spec.ts",
"coveralls": "cat coverage/lcov.info | coveralls -v",
"codacy": "cat coverage/lcov.info | codacy-coverage"
},
Expand Down Expand Up @@ -68,4 +71,4 @@
"tsc": "^1.20150623.0",
"typescript": "^3.8.3"
}
}
}

0 comments on commit 91ad23c

Please sign in to comment.