forked from tumpio/requestcontrol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
107 lines (107 loc) · 2.86 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
"name": "requestcontrol",
"license": "MPL-2.0",
"repository": {
"type": "git",
"value": "git+https://github.com/tumpio/requestcontrol.git"
},
"config": {
"ignore": "test/ coverage/ README* **/manual.wiki package*.json"
},
"scripts": {
"start": "web-ext run -i=$npm_package_config_ignore --bc --url about:debugging#addons",
"test": "jest",
"coverage": "codecov",
"lint": "eslint src/ test/ --ignore-pattern lib/tldts/*.js",
"lint-build": "npm run lint && addons-linter .releases/request_control-$(node -p \"require('./manifest.json').version\").zip",
"build-tldts": "cp -v node_modules/tldts-experimental/dist/index.esm.min.js lib/tldts/",
"build-lit": "cp -v node_modules/@ajusa/lit/src/lit.css src/options/lib/lit/",
"build-manual": "find ./_locales/ -iname \"manual.wiki\" -type f -exec sh -c 'pandoc \"$0\" --from=mediawiki --to=html --output \"${0%.wiki}.html\"' {} \\;",
"build": "web-ext build -i=$npm_package_config_ignore --overwrite-dest --artifacts-dir=.releases --verbose",
"deploy": "web-ext sign --api-key $JWT_ISSUER --api-secret $JWT_SECRET --channel=listed -i=$npm_package_config_ignore --artifacts-dir=.releases --verbose",
"prebuild": "npm run build-tldts && npm run build-lit && npm run build-manual",
"postinstall": "npm run prebuild"
},
"dependencies": {
"@ajusa/lit": "^1.1.0",
"tldts-experimental": "^5.5.0"
},
"devDependencies": {
"@babel/core": "latest",
"@babel/preset-env": "latest",
"@babel/register": "latest",
"addons-linter": "latest",
"babel-jest": "latest",
"codecov": "latest",
"eslint": "latest",
"eslint-plugin-jest": "latest",
"eslint-plugin-import": "latest",
"eslint-plugin-node": "latest",
"eslint-plugin-promise": "latest",
"eslint-plugin-standard": "latest",
"jest": "latest",
"web-ext": "latest"
},
"babel": {
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "current"
}
}
]
]
},
"jest": {
"coverageDirectory": "./coverage/",
"collectCoverage": true,
"collectCoverageFrom": [
"src/main/**/*"
],
"coverageReporters": [
"text-summary",
"lcov"
]
},
"eslintConfig": {
"extends": "eslint:recommended",
"env": {
"es6": true,
"browser": true,
"node": true,
"webextensions": true,
"jest": true
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2019
},
"plugins": [
"jest",
"import",
"node",
"promise",
"standard"
],
"rules": {
"indent": [
"warn",
4,
{
"SwitchCase": 1
}
],
"quotes": [
"warn",
"double"
],
"semi": [
"error",
"always"
],
"no-prototype-builtins": "off"
}
}
}