GhostText/package.json
2024-07-15 14:35:23 +07:00

60 lines
1.4 KiB
JSON

{
"private": true,
"scripts": {
"build": "parcel build source/manifest.json --dist-dir distribution --no-cache --no-source-maps",
"lint": "xo",
"pack:safari": "xcodebuild -project 'safari/GhostText.xcodeproj'",
"pre:build": "rm -rf distribution && node pre-build.mjs",
"pre:watch": "npm run pre:build",
"prepare:safari": "bash safari/prepare-release.sh",
"start:safari": "open 'safari/build/Release/GhostText.app'",
"test": "xo && npm run build",
"watch": "parcel watch source/manifest.json --dist-dir distribution --no-cache --no-hmr"
},
"browserslist": [
"Chrome >= 100",
"Firefox >= 100",
"Safari >= 14"
],
"xo": {
"envs": [
"browser",
"webextensions"
],
"ignores": [
"source/humane-ghosttext.js"
],
"rules": {
"no-alert": "off"
}
},
"dependencies": {
"one-event": "^4.2.0",
"webext-base-css": "^1.4.4",
"webext-options-sync": "^4.2.2",
"webext-permission-toggle": "^5.0.2"
},
"devDependencies": {
"@codemirror/view": "^6.28.2",
"@parcel/config-webextension": "^2.12.1-canary.3290",
"@types/chrome": "^0.0.268",
"dot-json": "^1.3.0",
"parcel": "^2.0.0-canary.1665",
"xo": "^0.58.0"
},
"engines": {
"node": ">=20"
},
"@parcel/resolver-default": {
"packageExports": true
},
"webExt": {
"sourceDir": "distribution",
"run": {
"startUrl": [
"https://ghosttext.fregante.com/test/"
]
}
}
}