CI: Separate platform-independent linter tasks

Run these before platform-specific build/testing tasks
This commit is contained in:
Lovell Fuller
2025-09-18 12:51:22 +01:00
parent ee437832e2
commit a0af662d78
2 changed files with 37 additions and 26 deletions

View File

@@ -94,12 +94,14 @@
"scripts": {
"install": "node install/check.js",
"clean": "rm -rf src/build/ .nyc_output/ coverage/ test/fixtures/output.*",
"test": "npm run test-lint && npm run test-unit && npm run test-licensing && npm run test-types",
"test-lint": "semistandard && cpplint",
"test-unit": "nyc --reporter=lcov --reporter=text --check-coverage --branches=100 mocha",
"test-licensing": "license-checker --production --summary --onlyAllow=\"Apache-2.0;BSD;ISC;LGPL-3.0-or-later;MIT\"",
"test": "npm run lint && npm run test-unit",
"lint": "npm run lint-cpp && npm run lint-js && npm run lint-licensing && npm run lint-types",
"lint-cpp": "cpplint",
"lint-js": "semistandard",
"lint-licensing": "license-checker --production --summary --onlyAllow=\"Apache-2.0;BSD;ISC;LGPL-3.0-or-later;MIT\"",
"lint-types": "tsd",
"test-leak": "./test/leak/leak.sh",
"test-types": "tsd",
"test-unit": "nyc --reporter=lcov --reporter=text --check-coverage --branches=100 mocha",
"package-from-local-build": "node npm/from-local-build.js",
"package-release-notes": "node npm/release-notes.js",
"docs-build": "node docs/build.mjs",