-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathpackage.json
More file actions
70 lines (70 loc) · 3.19 KB
/
Copy pathpackage.json
File metadata and controls
70 lines (70 loc) · 3.19 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
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
{
"private": true,
"scripts": {
"build": "rm -rf distribution; NODE_NO_WARNINGS=1 parcel build",
"build:chrome": "rm -rf distribution; rm chrome.zip; NODE_NO_WARNINGS=1 parcel build --no-optimize --no-content-hash --no-source-maps --no-scope-hoist --no-cache --detailed-report 0 && jq 'del(.background.scripts)' distribution/manifest.json > distribution/manifest.tmp.json && mv distribution/manifest.tmp.json distribution/manifest.json && cd distribution && zip -r ../chrome.zip .",
"build:firefox": "rm -rf distribution; rm firefox.zip; NODE_NO_WARNINGS=1 parcel build --no-scope-hoist --no-source-maps && jq 'del(.background.service_worker)' distribution/manifest.json > distribution/manifest.tmp.json && mv distribution/manifest.tmp.json distribution/manifest.json && cd distribution && zip -r ../firefox.zip .",
"build:edge": "rm -rf distribution; rm edge.zip; NODE_NO_WARNINGS=1 parcel build --no-scope-hoist --no-source-maps && jq '.content_scripts |= map(del(.js | select(type == \"array\" and length == 0)) | del(.css | select(type == \"array\" and length == 0))) | del(.css | select(type == \"array\" and length == 0)) | del(.js | select(type == \"array\" and length == 0)) | del(.background.scripts)' distribution/manifest.json > distribution/manifest.tmp.json && mv distribution/manifest.tmp.json distribution/manifest.json && cd distribution && zip -r ../edge.zip .",
"lint": "run-p lint:*",
"lint-fix": "run-p 'lint:* -- --fix'",
"lint:css": "stylelint source/**/*.css",
"lint:js": "eslint source/**/*.js",
"test": "run-p lint:* build",
"watch": "NODE_NO_WARNINGS=1 parcel watch --no-hmr"
},
"browserslist": [
"last 1 Chrome version",
"last 1 Firefox version"
],
"stylelint": {
"extends": [
"stylelint-config-standard"
],
"rules": {
"selector-class-pattern": null,
"custom-property-pattern": null
}
},
"dependencies": {
"@codemirror/lang-yaml": "^6.1.2",
"@primer/octicons": "^19.15.2",
"codemirror": "^6.0.2",
"codemirror-json-schema": "^0.8.1",
"codemirror-json5": "^1.0.3",
"gh-lang-colors": "^0.1.11",
"webext-base-css": "^2.0.1",
"webext-options-sync": "^4.2.3",
"yaml": "^2.8.0"
},
"devDependencies": {
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.28.0",
"@parcel/config-webextension": "2.13.0",
"@parcel/resolver-default": "2.13.0",
"eslint": "^9.28.0",
"globals": "^16.2.0",
"npm-run-all2": "^7.0.1",
"parcel": "2.13.0",
"process": "^0.11.10",
"stylelint": "^16.6.1",
"stylelint-config-prettier": "^9.0.5",
"stylelint-config-standard": "^38.0.0"
},
"@parcel/resolver-default": {
"packageExports": true
},
"targets": {
"default": {
"source": "source/manifest.json",
"distDir": "./distribution"
}
},
"webExt": {
"sourceDir": "distribution",
"run": {
"startUrl": [
"https://github.com/fregante/browser-extension-template"
]
}
}
}