From 2a8feaa454ef6ab76a3dad0eef2b22f4bec23d0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Sun, 26 Nov 2017 17:54:58 -0500 Subject: [PATCH] Parallelize `npm test` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After this, tests run in ~7s locally vs. ~14s without. ¯\_(ツ)_/¯ One caveat is that coloring must be forced now. Hope this looks okay on Travis. --- package.json | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 72c68f58..d158ed0e 100644 --- a/package.json +++ b/package.json @@ -18,11 +18,10 @@ "build": "npm-run-all build:*", "build:webpack": "webpack", "watch": "webpack --watch", - "test": "npm-run-all -c test:* lint", - "test:mocha": "mocha", - "lint": "npm-run-all -c lint:*", - "lint:js": "eslint . --report-unused-disable-directives", - "lint:css": "stylelint \"client/**/*.css\"" + "test": "npm-run-all --aggregate-output --parallel --continue-on-error test:* lint:*", + "test:mocha": "mocha --colors", + "lint:js": "eslint . --report-unused-disable-directives --color", + "lint:css": "stylelint --color \"client/**/*.css\"" }, "keywords": [ "lounge",