ProToots/package.json
2023-07-28 21:54:57 +02:00

51 lines
1.6 KiB
JSON

{
"name": "protoots",
"scripts": {
"watch:firefox": "cross-env TARGET=firefox node scripts/watch.mjs",
"watch:chrome": "cross-env TARGET=chrome node scripts/watch.mjs",
"build:firefox": "cross-env TARGET=firefox node scripts/build.mjs",
"build:chrome": "cross-env TARGET=chrome node scripts/build.mjs",
"start": "run-p -r watch:firefox webext:firefox",
"start:chrome": "run-p -r watch:chrome webext:chrome",
"format": "prettier --write --ignore-path .gitignore .",
"archive": "git archive --format zip main -o protoots_source.zip",
"package": "run-s build:firefox package:firefox build:chrome package:chrome",
"package:firefox": "web-ext build --filename protoots-firefox.zip --overwrite-dest",
"package:chrome": "web-ext build --filename protoots-chrome.zip --overwrite-dest",
"webext:firefox": "web-ext run",
"webext:chrome": "web-ext run --target chromium",
"lint": "eslint src/",
"test": "uvu tests/"
},
"devDependencies": {
"@sprout2000/esbuild-copy-plugin": "1.1.8",
"cross-env": "^7.0.3",
"esbuild": "0.17.19",
"eslint": "^8.42.0",
"eslint-config-prettier": "^8.8.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.8",
"uvu": "^0.5.6",
"web-ext": "^7.6.2"
},
"prettier": {
"endOfLine": "lf",
"printWidth": 100,
"useTabs": true,
"trailingComma": "all"
},
"type": "module",
"dependencies": {
"sanitize-html": "^2.11.0",
"webextension-polyfill": "^0.10.0"
},
"webExt": {
"sourceDir": "dist/",
"run": {
"firefoxProfile": ".firefox-profile/",
"chromiumProfile": ".chromium-profile/",
"keepProfileChanges": true,
"profileCreateIfMissing": true
}
}
}