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-09-13 21:51:09 +02:00
|
|
|
"version": "0.9.5",
|
2022-12-24 02:31:56 +01:00
|
|
|
"dependencies": {
|
|
|
|
"webextension-polyfill": "^0.10.0"
|
|
|
|
},
|
|
|
|
"devDependencies": {
|
2023-11-08 20:03:59 +01:00
|
|
|
"@commitlint/cli": "^18.2.0",
|
|
|
|
"@commitlint/config-conventional": "^18.1.0",
|
|
|
|
"@commitlint/cz-commitlint": "^18.2.0",
|
|
|
|
"@types/firefox-webext-browser": "^111.0.4",
|
2023-05-24 22:47:36 +02:00
|
|
|
"commitizen": "^4.3.0",
|
2023-11-08 20:03:59 +01:00
|
|
|
"dprint": "^0.42.5",
|
|
|
|
"eslint": "^8.53.0",
|
2023-09-25 20:20:21 +02:00
|
|
|
"eslint-plugin-jsdoc": "^46.8.2",
|
2023-09-08 01:00:20 +02:00
|
|
|
"eslint-plugin-no-unsanitized": "^4.0.2",
|
2023-11-08 20:03:59 +01:00
|
|
|
"eslint-plugin-unicorn": "^49.0.0",
|
|
|
|
"git-cliff": "^1.4.0",
|
2023-03-20 17:00:46 +01:00
|
|
|
"husky": "^8.0.3",
|
2023-10-23 19:50:12 +02:00
|
|
|
"stylelint": "^15.11.0",
|
2023-09-06 20:30:40 +02:00
|
|
|
"stylelint-config-standard": "^34.0.0",
|
2023-11-08 20:03:59 +01:00
|
|
|
"stylelint-plugin-defensive-css": "^0.10.2",
|
2023-09-06 20:30:40 +02:00
|
|
|
"stylelint-plugin-logical-css": "^0.13.2",
|
2023-09-28 16:15:44 +02:00
|
|
|
"web-ext": "^7.8.0"
|
2023-09-06 20:53:40 +02: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-09-08 01:00:20 +02:00
|
|
|
"lint": "npm run lint:web-ext && npm run lint:js && npm run lint:css",
|
2023-09-06 20:30:40 +02:00
|
|
|
"lint:web-ext": "web-ext lint -w",
|
2023-09-08 01:00:20 +02:00
|
|
|
"lint:js": "eslint .",
|
2023-09-06 20:30:40 +02:00
|
|
|
"lint:css": "stylelint \"src/*.css\"",
|
2023-10-23 20:41:55 +02:00
|
|
|
"fmt:check": "dprint check",
|
|
|
|
"fmt:update": "dprint config update",
|
2023-01-05 16:40:11 +01:00
|
|
|
"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",
|
2023-09-13 20:32:23 +02:00
|
|
|
"url": "https://git.usrspace.at/XimeX/usrspace-browser-addon"
|
2022-12-24 02:31:56 +01:00
|
|
|
},
|
|
|
|
"keywords": [
|
|
|
|
"/usr/space"
|
|
|
|
],
|
|
|
|
"author": "Thomas Rupprecht",
|
|
|
|
"license": "MIT"
|
2021-09-22 21:17:51 +02:00
|
|
|
}
|