Add package scripts for building/packaging

This commit is contained in:
nachtjasmin 2023-05-30 18:10:10 +02:00
parent b0ae9f9111
commit a452411009
No known key found for this signature in database
3 changed files with 1110 additions and 2 deletions

View file

@ -70,6 +70,7 @@ Alternatively you can download an unsigned version from the [releases page](http
## Developer setup
- Clone the repository
- [Install web-ext](https://extensionworkshop.com/documentation/develop/getting-started-with-web-ext/#installation-section) and [set it up](https://extensionworkshop.com/documentation/develop/getting-started-with-web-ext/#using-web-ext-section)
- Install the required dependencies using `npm install`
- Start the development workflow with `npm start`
- Mess around with with [protoots.js](/src/content_scripts/protoots.js)
- Trans rights!

1097
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -1,11 +1,18 @@
{
"name": "protoots",
"scripts": {
"format": "prettier --write --ignore-path .gitignore ."
"build:scripts": "node scripts/build.mjs",
"build:webext": "web-ext build --overwrite-dest",
"start": "run-p -l -r watch:**",
"watch:scripts": "node scripts/watch.mjs",
"watch:webext": "web-ext run --keep-profile-changes --profile-create-if-missing --firefox-profile=.cache/profile/",
"format": "prettier --write --ignore-path .gitignore .",
"package": "run-s -l build:**"
},
"devDependencies": {
"@sprout2000/esbuild-copy-plugin": "1.1.8",
"esbuild": "0.17.19",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.8",
"web-ext": "^7.6.2"
},
@ -14,5 +21,8 @@
"printWidth": 100,
"useTabs": true,
"trailingComma": "all"
},
"webExt": {
"sourceDir": "dist/"
}
}