70 lines
2.6 KiB
JSON
70 lines
2.6 KiB
JSON
{
|
|
"name": "usrspace-browser-addon",
|
|
"description": "WebExtension for the Hacker-/Maker-Space /usr/space",
|
|
"version": "0.9.2",
|
|
"dependencies": {
|
|
"webextension-polyfill": "^0.10.0"
|
|
},
|
|
"devDependencies": {
|
|
"@commitlint/cli": "^17.7.1",
|
|
"@commitlint/config-conventional": "^17.7.0",
|
|
"@commitlint/cz-commitlint": "^17.7.1",
|
|
"@types/firefox-webext-browser": "^111.0.1",
|
|
"commitizen": "^4.3.0",
|
|
"git-cliff": "^1.3.0",
|
|
"husky": "^8.0.3",
|
|
"stylelint": "^15.10.3",
|
|
"stylelint-config-standard": "^34.0.0",
|
|
"stylelint-plugin-defensive-css": "^0.8.1",
|
|
"stylelint-plugin-logical-css": "^0.13.2",
|
|
"web-ext": "^7.6.2"
|
|
},
|
|
"overrides": {
|
|
"web-ext@^7.6.2": {
|
|
"addons-linter": "^6.12.0"
|
|
}
|
|
},
|
|
"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]#import '\\./browser-polyfill\\.js';#\" src/*.js",
|
|
"uninject-browser-polyfill": "sed -i -r \"s#import '\\./browser-polyfill\\.js';#// \\[INJECT-BROWSER-POLYFILL]#\" src/*.js",
|
|
"copy-version": "sed -i 's/^\t\"version\": \".*\",$/\t\"version\": \"'$(rg '^\t\"version\": \"(.+)\",$' -r '$1' < package.json)'\",/' src/manifest.json",
|
|
"update-changelog": "npm exec git-cliff > CHANGELOG.md",
|
|
"lint": "npm run lint:web-ext && npm run lint:css",
|
|
"lint:web-ext": "web-ext lint -w",
|
|
"lint:css": "stylelint \"src/*.css\"",
|
|
"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 && npm run update-changelog && git add CHANGELOG.md src/manifest.json",
|
|
"postversion": "npm run build:firefox",
|
|
"prepare": "husky install",
|
|
"commit": "git-cz"
|
|
},
|
|
"config": {
|
|
"commitizen": {
|
|
"path": "@commitlint/cz-commitlint"
|
|
}
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://gitea.usrspace.at/XimeX/usrspace-browser-addon"
|
|
},
|
|
"keywords": [
|
|
"/usr/space"
|
|
],
|
|
"author": "Thomas Rupprecht",
|
|
"license": "MIT"
|
|
}
|