From 91ad23cc5a0a62b2aeac2e88cd33c651d7a3e596 Mon Sep 17 00:00:00 2001 From: Enrico Fabris Date: Thu, 21 May 2020 16:45:02 +0200 Subject: [PATCH] Add test, compile and test:coverage command for windows development. --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 32dafeeb..c2c33a29 100644 --- a/package.json +++ b/package.json @@ -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" }, @@ -68,4 +71,4 @@ "tsc": "^1.20150623.0", "typescript": "^3.8.3" } -} +} \ No newline at end of file