-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
31 lines (31 loc) · 1.81 KB
/
package.json
File metadata and controls
31 lines (31 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
"devDependencies": {
"@types/firefox-webext-browser": "^120.0.3",
"@types/webextension-polyfill": "^0.12.4",
"copy-webpack-plugin": "^13.0.1",
"css-loader": "^7.1.2",
"mini-css-extract-plugin": "^2.9.4",
"style-loader": "^4.0.0",
"ts-loader": "^9.5.1",
"typescript": "^5.4.5",
"web-ext": "^8.9.0",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4"
},
"scripts": {
"web-ext:lint": "web-ext lint",
"web-ext:phone": "web-ext run -t firefox-android --firefox-apk org.mozilla.fenix",
"prebuild": "test -f filter-packs.json || cp filter-packs.sample.json filter-packs.json",
"build": "npm run build:chrome && npm run build:firefox",
"build:firefox": "TARGET_BROWSER=firefox npx webpack --config webpack.config.js",
"build:chrome": "TARGET_BROWSER=chrome npx webpack --config webpack.config.js",
"build:prod": "NODE_ENV=production npm run build",
"package": "npm run package:firefox",
"package:firefox": "npm run build:firefox && VERSION=$(node -p \"require('./dist/firefox/manifest.json').version\") && cd dist/firefox && zip -r \"../../releases/reddit-refine-addon-firefox-v$VERSION.zip\" . -x '*.DS_Store'",
"package:chrome": "npm run build:chrome && VERSION=$(node -p \"require('./dist/chrome/manifest.json').version\") && cd dist/chrome && zip -r \"../../releases/reddit-refine-addon-chrome-v$VERSION.zip\" . -x '*.DS_Store'",
"package:source": "VERSION=$(node -p \"require('./manifest.chrome.json').version\") && zip -r \"releases/reddit-refine-source-v$VERSION.zip\" README.md package.json package-lock.json src/ manifest.firefox.json manifest.chrome.json webpack.config.js tsconfig.json icons/ filter-packs.json -x '*.DS_Store' '**/node_modules/*' '**/.git/*' '**/dist/*' '**/releases/*'"
},
"dependencies": {
"webextension-polyfill": "^0.12.0"
}
}