fangs/package.json

80 lines
2.1 KiB
JSON
Raw Normal View History

2022-03-14 09:58:47 +00:00
{
"private": true,
"scripts": {
"start": "vite build -m development --watch",
2022-03-23 12:48:20 +00:00
"start:chromium": "VITE_BROWSER=chromium pnpm start",
2022-03-14 09:58:47 +00:00
"clean": "trash build web-ext-artifacts",
2022-03-23 12:48:20 +00:00
"build": "pnpm clean && pnpm build:chromium && pnpm build:firefox && pnpm zip-source",
"build:chromium": "VITE_BROWSER=chromium vite build && web-ext build -n fangs-chromium-{version}.zip -s build/chromium",
"build:firefox": "VITE_BROWSER=firefox vite build && web-ext build -n fangs-firefox-{version}.zip -s build/firefox",
2022-03-14 09:58:47 +00:00
"zip-source": "git archive --format zip --output web-ext-artifacts/fangs-source.zip HEAD",
"test": "xo && stylelint 'source/**/*.scss' && tsc && c8 ava"
},
"dependencies": {
2022-10-03 16:19:27 +00:00
"@holllo/preact-components": "^0.2.3",
"htm": "^3.1.1",
2022-03-14 09:58:47 +00:00
"modern-normalize": "^1.1.0",
"preact": "^10.11.0",
"webextension-polyfill": "^0.10.0"
2022-03-14 09:58:47 +00:00
},
"devDependencies": {
"@preact/preset-vite": "^2.4.0",
"@types/babel__core": "^7.1.19",
"@types/webextension-polyfill": "^0.9.1",
"ava": "^4.3.3",
"c8": "^7.12.0",
"postcss": "^8.4.16",
"sass": "^1.55.0",
"stylelint": "^14.12.1",
"stylelint-config-standard-scss": "^5.0.0",
2022-03-14 09:58:47 +00:00
"trash-cli": "^5.0.0",
"ts-node": "^10.9.1",
"typescript": "^4.8.3",
"vite": "^3.1.3",
"vite-plugin-web-extension": "^1.4.4",
"web-ext": "^7.2.0",
"xo": "^0.52.3"
2022-03-14 09:58:47 +00:00
},
"ava": {
"extensions": [
"ts"
],
"files": [
"tests/**/*.test.ts"
],
"require": [
"ts-node/register"
],
"snapshotDir": "tests/snapshots"
},
"c8": {
"include": [
"source",
"tests"
],
"reportDir": "coverage",
"reporter": [
"text",
"html"
]
},
"xo": {
"overrides": [
{
"files": "tests/**/*.test.ts",
"rules": {
"@typescript-eslint/triple-slash-reference": "off",
2022-03-14 09:58:47 +00:00
"import/extensions": "off",
"no-await-in-loop": "off"
}
}
],
"prettier": true,
"rules": {
"@typescript-eslint/consistent-type-definitions": "off",
"n/file-extension-in-import": "off"
},
2022-03-14 09:58:47 +00:00
"space": true
}
}