summaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2024-02-23 06:18:56 -0500
committerGitHub <noreply@github.com>2024-02-23 11:18:56 +0000
commit8078e0ec7279916e56bdc8bab88ee7f1e1594425 (patch)
treea817e8aa6d8a8f3647e341c45a3cca5eebe44811 /package.json
parent62ac615450ef8b96fa9dd90b8b4e7fe486cc77a6 (diff)
Package scripts update (#714)
* Update license-report commands * Rename build-libs * Update test-lint-js * Rename test-lint-json * Update test-lint-css * Rename test-lint-html * Update test-ts * Update test-code * Update test-build * Rename * Test JSON types * Distinguish JS tests from JSON tests * Add bench test * Test markdown * Add fast test option * Rename test:code * Describe scripts * Add test-build action * Add test:static-analysis * Update CI * Fix path * Fix missing type definition
Diffstat (limited to 'package.json')
-rw-r--r--package.json40
1 files changed, 23 insertions, 17 deletions
diff --git a/package.json b/package.json
index 715977f8..2012bc89 100644
--- a/package.json
+++ b/package.json
@@ -12,23 +12,29 @@
"scripts": {
"bench": "vitest bench",
"build": "node ./dev/bin/build.js",
- "build-libs": "node ./dev/bin/build-libs.js",
- "test": "npm run test-lint-js && npm run test-ts && npm run test-lint-css && npm run test-lint-html && npm run test-code && npm run test-json && npm run test-build",
- "test-lint-js": "npx eslint .",
- "test-lint-json": "npx eslint **/*.json",
- "test-lint-css": "npx stylelint \"ext/**/*.css\" \"test/**/*.css\" \"dev/**/*.css\"",
- "test-lint-html": "npx html-validate \"ext/**/*.html\" \"test/**/*.html\" \"dev/**/*.html\"",
- "test-ts": "npm run test-ts-main && npm run test-ts-dev && npm run test-ts-test",
- "test-ts-main": "npx tsc --noEmit --project jsconfig.json",
- "test-ts-dev": "npx tsc --noEmit --project dev/jsconfig.json",
- "test-ts-test": "npx tsc --noEmit --project test/jsconfig.json",
- "test-code": "vitest run",
- "test-code-write": "vitest run --config test/data/vitest.write.config.json",
- "test-options-update": "vitest run --config test/data/vitest.options.config.json",
- "test-json": "vitest run --config test/data/vitest.json.config.json",
- "test-build": "node ./dev/bin/build.js --dryRun --all",
- "license-report": "license-report --output=html --only=prod --fields=name --fields=installedVersion --fields=licenseType --fields=link --html.cssFile=dev/data/legal-npm.css > ext/legal-npm.html",
- "license-report-markdown": "license-report --output=markdown --only=prod --fields=name --fields=installedVersion --fields=licenseType --fields=link",
+ "build:libs": "node ./dev/bin/build-libs.js",
+ "test": "npm run test:js && npm run test:ts && npm run test:css && npm run test:html && npm run test:unit && npm run test:json && npm run test:md && npm run test:build",
+ "test:fast": "npm run test:js && npm run test:ts && npm run test:unit && npm run test:json:format",
+ "test:static-analysis": "npm run test:js && npm run test:ts && npm run test:css && npm run test:html && npm run test:json && npm run test:md",
+ "test:js": "npx eslint . --ignore-pattern **/*.json",
+ "test:json": "npm run test:json:format && npm run test:json:types",
+ "test:json:format": "npx eslint **/*.json",
+ "test:json:types": "vitest run --config test/data/vitest.json.config.json",
+ "test:css": "npx stylelint \"ext/**/*.css\" \"test/**/*.css\" \"dev/**/*.css\"",
+ "test:html": "npx html-validate \"ext/**/*.html\" \"test/**/*.html\" \"dev/**/*.html\"",
+ "test:md": "prettier . --check",
+ "test:md:write": "prettier . --write",
+ "test:ts": "npm run test:ts:main && npm run test:ts:dev && npm run test:ts:test && npm run test:ts:bench",
+ "test:ts:main": "npx tsc --noEmit --project jsconfig.json",
+ "test:ts:dev": "npx tsc --noEmit --project dev/jsconfig.json",
+ "test:ts:test": "npx tsc --noEmit --project test/jsconfig.json",
+ "test:ts:bench": "npx tsc --noEmit --project benches/jsconfig.json",
+ "test:unit": "vitest run",
+ "test:unit:write": "vitest run --config test/data/vitest.write.config.json",
+ "test:unit:options": "vitest run --config test/data/vitest.options.config.json",
+ "test:build": "node ./dev/bin/build.js --dryRun --all",
+ "license-report:html": "license-report --output=html --only=prod --fields=name --fields=installedVersion --fields=licenseType --fields=link --html.cssFile=dev/data/legal-npm.css > ext/legal-npm.html",
+ "license-report:markdown": "license-report --output=markdown --only=prod --fields=name --fields=installedVersion --fields=licenseType --fields=link",
"prepare": "husky install"
},
"repository": {