2022-03-02 12:17:15 +00:00
|
|
|
{
|
|
|
|
"name": "web-ext-template",
|
|
|
|
"license": "Unlicense",
|
|
|
|
"repository": "https://github.com/Holllo/web-ext-template",
|
|
|
|
"private": true,
|
|
|
|
"scripts": {
|
|
|
|
"start": "vite build -m development --watch",
|
2022-03-23 20:52:22 +00:00
|
|
|
"start:chromium": "VITE_BROWSER=chromium pnpm start",
|
2022-03-02 12:17:15 +00:00
|
|
|
"clean": "trash build web-ext-artifacts",
|
2022-03-23 20:52:22 +00:00
|
|
|
"build": "pnpm clean && pnpm build:chromium && pnpm build:firefox && pnpm zip-source",
|
|
|
|
"build:chromium": "VITE_BROWSER=chromium vite build && web-ext build -n web-ext-template-chromium-{version}.zip -s build/chromium",
|
|
|
|
"build:firefox": "VITE_BROWSER=firefox vite build && web-ext build -n web-ext-template-firefox-{version}.zip -s build/firefox",
|
2022-03-02 12:17:15 +00:00
|
|
|
"zip-source": "git archive --format zip --output web-ext-artifacts/webextension_template-source.zip HEAD",
|
|
|
|
"test": "xo && stylelint 'source/**/*.scss' && tsc"
|
|
|
|
},
|
|
|
|
"dependencies": {
|
2022-09-07 15:48:46 +00:00
|
|
|
"htm": "^3.1.1",
|
2022-03-02 12:17:15 +00:00
|
|
|
"modern-normalize": "^1.1.0",
|
2022-09-07 15:48:46 +00:00
|
|
|
"preact": "^10.10.6",
|
|
|
|
"webextension-polyfill": "^0.10.0"
|
2022-03-02 12:17:15 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2022-09-07 15:48:46 +00:00
|
|
|
"@preact/preset-vite": "^2.3.1",
|
|
|
|
"@types/babel__core": "^7.1.19",
|
|
|
|
"@types/webextension-polyfill": "^0.9.0",
|
|
|
|
"postcss": "^8.4.16",
|
|
|
|
"sass": "^1.54.8",
|
|
|
|
"stylelint": "^14.11.0",
|
|
|
|
"stylelint-config-standard-scss": "^5.0.0",
|
2022-03-02 12:17:15 +00:00
|
|
|
"trash-cli": "^5.0.0",
|
2022-09-07 15:48:46 +00:00
|
|
|
"typescript": "^4.8.2",
|
|
|
|
"vite": "^3.1.0",
|
|
|
|
"vite-plugin-web-extension": "^1.4.4",
|
|
|
|
"web-ext": "^7.2.0",
|
|
|
|
"xo": "^0.52.3"
|
2022-03-02 12:17:15 +00:00
|
|
|
},
|
|
|
|
"xo": {
|
|
|
|
"prettier": true,
|
2022-09-07 15:48:46 +00:00
|
|
|
"rules": {
|
|
|
|
"@typescript-eslint/consistent-type-definitions": "off",
|
|
|
|
"@typescript-eslint/consistent-type-imports": "off",
|
|
|
|
"n/file-extension-in-import": "off"
|
|
|
|
},
|
2022-03-02 12:17:15 +00:00
|
|
|
"space": true
|
|
|
|
}
|
|
|
|
}
|