-
Notifications
You must be signed in to change notification settings - Fork 42
/
package.json
61 lines (61 loc) · 2.37 KB
/
package.json
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
"name": "facebook_adblock",
"version": "1.9.14",
"description": "An open-source Ad Blocker for Facebook™",
"main": "src/main.js",
"scripts": {
"clean": "rm -rf dist/",
"prebuild": "mkdir -p dist/src",
"build:formatcode": "prettier --write \"src/**/*.js\"",
"build:js": "rollup -c",
"build:static": "cp static/* dist/src && npm run build:static:sed && echo \"manifest.json file:\" && cat dist/src/manifest.json",
"build:static:sed": "sed -i \"s/#VERSION#/$npm_package_version/g\" dist/src/manifest.json || sed -i '.bak' \"s/#VERSION#/$npm_package_version/g\" dist/src/manifest.json",
"build": "npm run build:formatcode && npm run build:js && npm run build:static",
"pretest": "npm run build",
"test:codestyle": "prettier --check \"src/**/*.js\"",
"test:webext": "web-ext lint --source-dir dist/src --artifacts-dir dist/",
"test": "npm run test:codestyle && npm run test:webext",
"prerelease": "npm run test",
"release:chrome": "cd dist && zip -r chrome.zip src",
"release:firefox": "web-ext build --source-dir dist/src --overwrite-dest --artifacts-dir dist/",
"release": "npm run release:chrome && npm run release:firefox",
"presign": "npm run release",
"sign": "web-ext sign --source-dir dist/src --artifacts-dir dist/ --id \"{d403ee9c-3bd2-41d3-b1e9-27698babf097}\"",
"watch": "npm run build:static && rollup -c -w"
},
"repository": {
"type": "git",
"url": "git+https://github.com/facebook-adblock/facebook_adblock.git"
},
"author": "tiratatp",
"license": "GPL-3.0-only",
"bugs": {
"url": "https://github.com/facebook-adblock/facebook_adblock/issues"
},
"homepage": "https://github.com/facebook-adblock/facebook_adblock",
"browserslist": [
"> 0.5% and chrome > 75",
"last 3 firefox versions",
"last 3 FirefoxAndroid versions",
"Firefox ESR"
],
"pre-commit": [
"test"
],
"devDependencies": {
"@babel/core": "^7.19.0",
"@babel/preset-env": "^7.19.0",
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-commonjs": "^22.0.2",
"@rollup/plugin-node-resolve": "^14.1.0",
"eslint": "^8.23.1",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"pre-commit": "^1.2.2",
"prettier": "^2.7.1",
"rollup": "^2.79.0",
"rollup-plugin-cleanup": "^3.2.1",
"web-ext": "^7.2.0"
}
}