2021-09-22 21:17:51 +02:00
|
|
|
{
|
2022-12-24 02:31:56 +01:00
|
|
|
"name": "usrspace-browser-addon",
|
|
|
|
"description": "WebExtension for the Hacker-/Maker-Space /usr/space",
|
2023-05-24 22:05:39 +02:00
|
|
|
"version": "0.9.2",
|
2022-12-24 02:31:56 +01:00
|
|
|
"dependencies": {
|
|
|
|
"webextension-polyfill": "^0.10.0"
|
|
|
|
},
|
|
|
|
"devDependencies": {
|
2023-05-24 22:47:36 +02:00
|
|
|
"@commitlint/cli": "^17.6.3",
|
|
|
|
"@commitlint/config-conventional": "^17.6.3",
|
|
|
|
"@commitlint/cz-commitlint": "^17.5.0",
|
2023-04-12 20:43:08 +02:00
|
|
|
"@types/firefox-webext-browser": "^111.0.1",
|
2023-05-24 22:47:36 +02:00
|
|
|
"commitizen": "^4.3.0",
|
2023-05-15 20:59:20 +02:00
|
|
|
"git-cliff": "^1.2.0",
|
2023-03-20 17:00:46 +01:00
|
|
|
"husky": "^8.0.3",
|
2023-04-26 00:14:38 +02:00
|
|
|
"web-ext": "^7.6.2"
|
2022-12-24 02:31:56 +01:00
|
|
|
},
|
2022-12-24 11:36:37 +01:00
|
|
|
"scripts": {
|
2022-12-24 13:37:50 +01:00
|
|
|
"copy-browser-polyfill": "cp node_modules/webextension-polyfill/dist/browser-polyfill.js src/browser-polyfill.js",
|
2023-05-25 08:07:37 +02:00
|
|
|
"inject-browser-polyfill": "sed -i -r \"s#// \\[INJECT-BROWSER-POLYFILL]#import '\\./browser-polyfill\\.js';#\" src/*.js",
|
|
|
|
"uninject-browser-polyfill": "sed -i -r \"s#import '\\./browser-polyfill\\.js';#// \\[INJECT-BROWSER-POLYFILL]#\" src/*.js",
|
2022-12-25 17:22:46 +01:00
|
|
|
"copy-version": "sed -i 's/^\t\"version\": \".*\",$/\t\"version\": \"'$(rg '^\t\"version\": \"(.+)\",$' -r '$1' < package.json)'\",/' src/manifest.json",
|
2023-02-04 02:50:44 +01:00
|
|
|
"update-changelog": "npm exec git-cliff > CHANGELOG.md",
|
2023-01-05 16:40:11 +01:00
|
|
|
"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",
|
2022-12-25 01:52:02 +01:00
|
|
|
"prebuild": "cp LICENSE.txt src/",
|
2023-01-05 18:40:19 +01:00
|
|
|
"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",
|
2022-12-25 01:52:02 +01:00
|
|
|
"postbuild": "rm src/LICENSE.txt",
|
2023-01-05 18:40:19 +01:00
|
|
|
"postbuild:firefox": "npm run postbuild",
|
|
|
|
"postbuild:chromium": "npm run postbuild && npm run uninject-browser-polyfill",
|
2022-12-24 13:05:23 +01:00
|
|
|
"postinstall": "npm run copy-browser-polyfill",
|
2023-05-25 00:09:11 +02:00
|
|
|
"preversion": "npm run lint && npm test",
|
|
|
|
"version": "npm run copy-version && npm run update-changelog && git add CHANGELOG.md src/manifest.json",
|
2023-02-03 22:50:18 +01:00
|
|
|
"postversion": "npm run build:firefox",
|
2023-05-24 22:47:36 +02:00
|
|
|
"prepare": "husky install",
|
|
|
|
"commit": "git-cz"
|
|
|
|
},
|
|
|
|
"config": {
|
|
|
|
"commitizen": {
|
|
|
|
"path": "@commitlint/cz-commitlint"
|
|
|
|
}
|
2022-12-24 11:36:37 +01:00
|
|
|
},
|
2022-12-24 02:31:56 +01:00
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "https://gitea.usrspace.at/XimeX/usrspace-browser-addon"
|
|
|
|
},
|
|
|
|
"keywords": [
|
|
|
|
"/usr/space"
|
|
|
|
],
|
|
|
|
"author": "Thomas Rupprecht",
|
|
|
|
"license": "MIT"
|
2021-09-22 21:17:51 +02:00
|
|
|
}
|