package.json
TLDR
This package.json
file is used in the Demo Projects project and contains information related to the project's dependencies and scripts for development and production. It also specifies the target configurations for development and production builds.
Scripts
watchdev
This script uses Parcel to watch the manifest.json
file and rebuilds the project with the development target whenever changes are detected.
servedev
This script runs the web extension using web-ext
, serving the files from the dist/dev/
directory.
watchprod
This script uses Parcel to watch the manifest.json
file and rebuilds the project with the production target whenever changes are detected.
serveprod
This script runs the web extension using web-ext
, serving the files from the dist/prod/
directory.
build
This script builds the project with the production target using Parcel and then creates a distribution using web-ext
, generating the files in the dist/prod/
directory.
Dev Dependencies
-
@parcel/config-webextension
: version 2.0.0 -
@parcel/transformer-sass
: version 2.0.0 -
@types/react
: version 17.0.32 -
@types/react-dom
: version 17.0.10 -
parcel
: version 2.0.0 -
react
: version 17.0.2 -
react-dom
: version 17.0.2 -
typescript
: version 4.4.4 -
web-ext
: version 6.4.0 -
webextension-polyfill-ts
: version 0.26.0
{
"name": "focalboard-web-clipper",
"version": "0.0.0",
"targets": {
"dev": {
"sourceMap": {
"inline": true,
"inlineSources": true
}
},
"prod": {}
},
"scripts": {
"watchdev": "parcel watch manifest.json --target dev",
"servedev": "web-ext run -s dist/dev/",
"watchprod": "parcel watch manifest.json --target prod",
"serveprod": "web-ext run -s dist/prod/",
"build": "parcel build manifest.json --target prod && web-ext build -s dist/prod/"
},
"devDependencies": {
"@parcel/config-webextension": "^2.0.0",
"@parcel/transformer-sass": "^2.0.0",
"@types/react": "^17.0.32",
"@types/react-dom": "^17.0.10",
"parcel": "^2.0.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"typescript": "^4.4.4",
"web-ext": "^6.4.0",
"webextension-polyfill-ts": "^0.26.0"
}
}