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 1/2] 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", From b25884c5bd9887916d947896e62f51c3c68aa30e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Sun, 26 Nov 2017 17:57:14 -0500 Subject: [PATCH 2/2] Make stylelint report unncessary disables From the man: ``` --report-needless-disables, --rd Report stylelint-disable comments that are not blocking a lint warning. If you provide the argument "error", the process will exit with code 2 if needless disables are found. ``` --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d158ed0e..f33dccce 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "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\"" + "lint:css": "stylelint --color --report-needless-disables=error \"client/**/*.css\"" }, "keywords": [ "lounge",