GhostText/package.json
2023-03-16 20:48:23 +08:00

57 lines
1.3 KiB
JSON

{
"private": true,
"scripts": {
"pre:build": "rm -rf distribution && node pre-build.mjs",
"build": "parcel build source/manifest.json --dist-dir distribution --no-cache --no-source-maps",
"lint": "xo",
"pack:safari": "xcodebuild -project 'safari/GhostText.xcodeproj'",
"prepare:safari": "bash safari/prepare-release.sh",
"start:safari": "open 'safari/build/Release/GhostText.app'",
"test": "xo && npm run build",
"pre:watch": "npm run pre: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": "^3.0.0",
"webext-base-css": "^1.4.3",
"webext-options-sync": "^4.0.1",
"webextension-polyfill": "^0.10.0"
},
"devDependencies": {
"@codemirror/view": "^6.9.2",
"@parcel/config-webextension": "^2.8.3",
"dot-json": "^1.2.2",
"parcel": "^2.8.3",
"xo": "^0.53.1"
},
"engines": {
"node": ">=18",
"npm": ">=8"
},
"webExt": {
"sourceDir": "distribution",
"run": {
"startUrl": [
"https://ghosttext.fregante.com/test/"
]
}
}
}