forked from XimeX/usrspace-browser-addon
44 lines
1.8 KiB
JSON
44 lines
1.8 KiB
JSON
{
|
|
"name": "usrspace-browser-addon",
|
|
"description": "WebExtension for the Hacker-/Maker-Space /usr/space",
|
|
"version": "0.9.0",
|
|
"dependencies": {
|
|
"webextension-polyfill": "^0.10.0"
|
|
},
|
|
"devDependencies": {
|
|
"web-ext-types": "^3.2.1"
|
|
},
|
|
"scripts": {
|
|
"copy-browser-polyfill": "cp node_modules/webextension-polyfill/dist/browser-polyfill.js src/browser-polyfill.js",
|
|
"inject-browser-polyfill": "sed -i -r 's/(<!-- \\[INJECT-BROWSER-POLYFILL] -->).*/\\1<script type=\"module\" src=\"browser-polyfill.js\"><\\/script>/' src/*.html",
|
|
"uninject-browser-polyfill": "sed -i -r 's/(<!-- \\[INJECT-BROWSER-POLYFILL] -->).+/\\1/' src/*.html",
|
|
"copy-version": "sed -i 's/^\t\"version\": \".*\",$/\t\"version\": \"'$(rg '^\t\"version\": \"(.+)\",$' -r '$1' < package.json)'\",/' src/manifest.json",
|
|
"lint": "web-ext lint -w",
|
|
"test": "echo \"Error: no test specified\" && exit 0",
|
|
"watch:firefox": "web-ext run -t firefox-desktop",
|
|
"watch:firefox-android": "web-ext run -t firefox-android",
|
|
"watch:chromium": "web-ext run -t chromium",
|
|
"prebuild": "cp LICENSE.txt src/",
|
|
"prebuild:firefox": "npm run prebuild",
|
|
"prebuild:chromium": "npm run prebuild && npm run inject-browser-polyfill",
|
|
"build:firefox": "web-ext build -i browser-polyfill.js",
|
|
"build:chromium": "web-ext build",
|
|
"postbuild": "rm src/LICENSE.txt",
|
|
"postbuild:firefox": "npm run postbuild",
|
|
"postbuild:chromium": "npm run postbuild && npm run uninject-browser-polyfill",
|
|
"postinstall": "npm run copy-browser-polyfill",
|
|
"preversion": "npm run lint && npm test",
|
|
"version": "npm run copy-version && git add -u",
|
|
"postversion": "npm run build:firefox"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://gitea.usrspace.at/XimeX/usrspace-browser-addon"
|
|
},
|
|
"keywords": [
|
|
"/usr/space"
|
|
],
|
|
"author": "Thomas Rupprecht",
|
|
"license": "MIT"
|
|
}
|