diff options
author | Darius Jahandarie <djahandarie@gmail.com> | 2023-11-08 03:11:35 +0900 |
---|---|---|
committer | Darius Jahandarie <djahandarie@gmail.com> | 2023-11-08 03:23:17 +0900 |
commit | 0f4d36938fd0d844f548aa5a7f7e7842df8dfb41 (patch) | |
tree | 5b6be3620a557d0b9177047003f6d742d9d2a32d /package.json | |
parent | ef79eab44bfd000792c610b968b5ceefd41e76a0 (diff) |
Switch to vitest for ESM support; other fixes
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/package.json b/package.json index 5224a963..1a6ebf84 100644 --- a/package.json +++ b/package.json @@ -5,16 +5,16 @@ "directories": { "test": "test" }, + "type": "module", "scripts": { - "postinstall": "node ./dev/patch-dependencies.js", - "build": "node ./dev/build.js", - "test": "npm run test-lint && npm run test-lint-css && npm run test-lint-html && npm run test-code && npm run test-manifest && npm run test-build", - "test-lint": "npx eslint . && node ./dev/lint/global-declarations.js && node ./dev/lint/html-scripts.js", + "build": "node ./dev/bin/build.js", + "build-libs": "node ./dev/bin/build-libs.js", + "test": "npm run test-lint-js && npm run test-lint-css && npm run test-lint-html && npm run test-code && npm run test-build", + "test-lint-js": "npx eslint .", "test-lint-css": "npx stylelint \"ext/**/*.css\" \"test/**/*.css\" \"dev/**/*.css\"", "test-lint-html": "npx html-validate \"ext/**/*.html\" \"test/**/*.html\" \"dev/**/*.html\"", - "test-code": "node ./test/test-all.js ./test --skip ./test/test-manifest.js", - "test-manifest": "node ./test/test-manifest.js", - "test-build": "node ./dev/build.js --dry-run --all" + "test-code": "vitest run", + "test-build": "node ./dev/bin/build.js --dry-run --all" }, "repository": { "type": "git", @@ -37,9 +37,9 @@ "devDependencies": { "@playwright/test": "^1.39.0", "@types/node": "^20.8.10", + "@vitest/coverage-v8": "^0.34.6", "@zip.js/zip.js": "^2.7.30", "ajv": "^8.12.0", - "browserify": "^17.0.0", "css": "^3.0.0", "dexie": "^3.2.4", "dexie-export-import": "^4.0.7", @@ -49,6 +49,7 @@ "eslint-plugin-jsdoc": "^46.8.2", "eslint-plugin-jsonc": "^2.10.0", "eslint-plugin-no-unsanitized": "^4.0.1", + "eslint-plugin-vitest": "^0.3.9", "fake-indexeddb": "^5.0.1", "handlebars": "^4.7.8", "html-validate": "^8.7.0", @@ -57,6 +58,7 @@ "parse5": "^7.1.2", "stylelint": "^15.11.0", "stylelint-config-recommended": "^13.0.0", + "vitest": "^0.34.6", "wanakana": "^5.2.0" } } |