From 02002bacef4900807c8c420e049534ab212eddfe Mon Sep 17 00:00:00 2001 From: Bryan Mishkin <698306+bmish@users.noreply.github.com> Date: Thu, 11 Nov 2021 09:31:47 -0500 Subject: [PATCH] test: use npm-run-all to run test and lint scripts --- package.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 9508dcb53a..db9b2824b5 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,11 @@ "node": ">=12" }, "scripts": { - "test": "xo && nyc ava && markdownlint '**/*.md'", + "lint": "npm-run-all --continue-on-error --aggregate-output --parallel lint:*", + "lint:md": "markdownlint '**/*.md'", + "lint:js": "xo", + "test": "npm-run-all --continue-on-error lint test:*", + "test:js": "nyc ava", "create-rule": "node ./scripts/create-rule.mjs && npm run generate-rules-table && npm run generate-usage-example", "run-rules-on-codebase": "node ./test/run-rules-on-codebase/lint.mjs", "integration": "node ./test/integration/test.mjs", @@ -73,6 +77,7 @@ "lodash-es": "4.17.21", "markdownlint-cli": "^0.29.0", "mem": "^9.0.1", + "npm-run-all": "^4.1.5", "nyc": "^15.1.0", "outdent": "^0.8.0", "typescript": "^4.4.2",