Pop-up dictionary browser extension for language learning. Successor to Yomichan. (PERSONAL FORK)
at lambda-fork/main 128 lines 6.0 kB view raw
1{ 2 "name": "yomitan", 3 "version": "0.0.0", 4 "description": "Japanese pop-up dictionary extension for Chrome and Firefox.", 5 "directories": { 6 "test": "test" 7 }, 8 "engines": { 9 "node": ">=22.0.0" 10 }, 11 "type": "module", 12 "scripts": { 13 "anki:css-json:write": "node ./dev/bin/generate-css-json.js --dryRun --all", 14 "bench": "vitest bench", 15 "build": "node ./dev/bin/build.js", 16 "build:libs": "node ./dev/bin/build-libs.js", 17 "build:serve:firefox-android": "node ./dev/bin/build.js --target firefox-android && web-ext run -s ./builds/yomitan-firefox-android", 18 "build:serve:kiwi-browser": "node ./dev/bin/build.js --target chrome-dev && adb shell mkdir -p /sdcard/yomitan && adb push ./builds/yomitan-chrome-dev.zip /sdcard/yomitan/yomitan-kiwi-browser.zip", 19 "//WARNING": "These are convenience functions for running from CLI but are NOT called from CI because they are not parallel. Make sure you update CI scripts if you update these.", 20 "test": "npm run test:js && npm run test:ts && npm run test:css && npm run test:html && npm run test:unit && npm run test:unit:options && npm run test:json && npm run test:md && npm run test:build", 21 "test:fast": "npm run test:js && npm run test:ts && npm run test:unit && npm run test:json:format", 22 "test:static-analysis": "npm run test:js && npm run test:ts && npm run test:css && npm run test:html && npm run test:md", 23 "test:ts": "npm run test:ts:main && npm run test:ts:dev && npm run test:ts:test && npm run test:ts:bench", 24 "//END-WARNING": "", 25 "test:js": "npx eslint . --ignore-pattern '**/*.json'", 26 "test:json": "npm run test:json:format && npm run test:json:types", 27 "test:json:format": "npx eslint '**/*.json'", 28 "test:json:types": "vitest run --config test/data/vitest.json.config.json", 29 "test:css": "npx stylelint \"ext/**/*.css\" \"test/**/*.css\" \"dev/**/*.css\"", 30 "test:html": "npx html-validate \"ext/**/*.html\" \"test/**/*.html\" \"dev/**/*.html\"", 31 "test:md": "prettier . --check", 32 "test:md:write": "prettier . --write", 33 "test:ts:main": "npx tsc --noEmit --project jsconfig.json", 34 "test:ts:dev": "npx tsc --noEmit --project dev/jsconfig.json", 35 "test:ts:test": "npx tsc --noEmit --project test/jsconfig.json", 36 "test:ts:bench": "npx tsc --noEmit --project benches/jsconfig.json", 37 "test:unit": "vitest run", 38 "test:unit:write": "vitest run --config test/data/vitest.write.config.json", 39 "test:unit:options": "vitest run --config test/data/vitest.options.config.json", 40 "test:build": "node ./dev/bin/build.js --dryRun --all", 41 "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", 42 "license-report:markdown": "license-report --output=markdown --only=prod --fields=name --fields=licenseType --fields=link", 43 "prepare": "husky" 44 }, 45 "repository": { 46 "type": "git", 47 "url": "git+https://github.com/yomidevs/yomitan.git" 48 }, 49 "license": "GPL-3.0-or-later", 50 "licenses": [ 51 { 52 "type": "GPL-3.0-or-later", 53 "url": "https://www.gnu.org/licenses/gpl-3.0.html" 54 } 55 ], 56 "bugs": { 57 "url": "https://github.com/yomidevs/yomitan/issues" 58 }, 59 "homepage": "https://github.com/yomidevs/yomitan/", 60 "webExt": { 61 "sourceDir": "ext" 62 }, 63 "devDependencies": { 64 "@codspeed/vitest-plugin": "^4.0.0", 65 "@eslint/compat": "^1.2.4", 66 "@eslint/eslintrc": "^3.2.0", 67 "@eslint/js": "^9.17.0", 68 "@playwright/test": "^1.49.1", 69 "@stylistic/eslint-plugin": "^2.12.1", 70 "@stylistic/stylelint-plugin": "^3.1.1", 71 "@types/assert": "^1.5.11", 72 "@types/browserify": "^12.0.40", 73 "@types/chrome": "^0.0.287", 74 "@types/css": "^0.0.38", 75 "@types/dom-webcodecs": "^0.1.13", 76 "@types/events": "^3.0.3", 77 "@types/firefox-webext-browser": "^120.0.4", 78 "@types/jsdom": "^21.1.7", 79 "@types/node": "22.10.2", 80 "@types/zip.js": "^2.0.33", 81 "@vitest/coverage-v8": "^3.0.9", 82 "@vitest/eslint-plugin": "^1.1.21", 83 "ajv": "^8.17.1", 84 "css": "^3.0.0", 85 "dotenv": "^16.4.7", 86 "esbuild": "^0.25.1", 87 "eslint": "^9.17.0", 88 "eslint-plugin-eslint-comments": "^3.2.0", 89 "eslint-plugin-header": "^3.1.1", 90 "eslint-plugin-import": "^2.31.0", 91 "eslint-plugin-jsdoc": "^50.6.1", 92 "eslint-plugin-jsonc": "^2.18.2", 93 "eslint-plugin-no-unsanitized": "^4.1.2", 94 "eslint-plugin-sonarjs": "^3.0.1", 95 "eslint-plugin-unicorn": "^56.0.1", 96 "eslint-plugin-unused-imports": "^4.1.4", 97 "fake-indexeddb": "^6.0.0", 98 "globals": "^15.14.0", 99 "handlebars": "^4.7.8", 100 "html-validate": "^9.1.0", 101 "husky": "^9.1.7", 102 "jsdom": "^25.0.1", 103 "jszip": "^3.10.1", 104 "license-report": "^6.7.1", 105 "lint-staged": "^15.3.0", 106 "prettier": "^3.4.2", 107 "stylelint": "^16.12.0", 108 "stylelint-config-recommended": "^14.0.1", 109 "ts-json-schema-generator": "^2.3.0", 110 "typescript": "^5.7.2", 111 "typescript-eslint": "^8.18.2", 112 "vitest": "^3.0.9" 113 }, 114 "dependencies": { 115 "@resvg/resvg-wasm": "^2.6.2", 116 "@zip.js/zip.js": "^2.7.54", 117 "dexie": "^4.0.10", 118 "dexie-export-import": "^4.1.4", 119 "hangul-js": "^0.2.6", 120 "kanji-processor": "^1.0.2", 121 "parse5": "^7.2.1", 122 "yomitan-handlebars": "git+https://github.com/yomidevs/yomitan-handlebars.git#12aff5e3550954d7d3a98a5917ff7d579f3cce25", 123 "linkedom": "^0.18.10" 124 }, 125 "lint-staged": { 126 "*.md": "prettier --write" 127 } 128}