-
Notifications
You must be signed in to change notification settings - Fork 325
/
package.json
206 lines (206 loc) · 8.61 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
{
"name": "ipfs-companion",
"version": "3.1.0",
"homepage": "https://github.com/ipfs-shipyard/ipfs-companion",
"license": "CC0-1.0",
"leadMaintainer": "Marcin Rataj <[email protected]>",
"repository": {
"type": "git",
"url": "https://github.com/ipfs-shipyard/ipfs-companion.git"
},
"type": "module",
"sideEffects": [
"*.css"
],
"scripts": {
"start": "run-s clean build test firefox",
"clean": "run-p clean:*",
"clean:build": "shx rm -rf build/*",
"clean:dist": "shx rm -rf add-on/dist",
"clean:ui-kit": "shx rm -rf add-on/ui-kit",
"clean:webui": "shx rm -rf add-on/webui",
"build": "run-s clean build:*",
"build:patch": "npx patch-package",
"build:copy": "run-s build:copy:*",
"build:copy:src": "shx mkdir -p add-on/dist && shx cp -R add-on/src/* add-on/dist",
"build:js": "run-s build:js:*",
"build:js:webpack": "webpack --mode production",
"build:minimize-dist": "shx rm -rf add-on/dist/lib add-on/dist/contentScripts",
"build:update-manifest": "cross-env ci/update-manifest.sh",
"build:bundle-all": "cross-env run-s bundle:chromium bundle:brave:$RELEASE_CHANNEL bundle:firefox:$RELEASE_CHANNEL",
"build:rename-artifacts": "node scripts/rename-artifacts.js",
"build:reset-manifest": "cross-env RELEASE_CHANNEL=stable ci/update-manifest.sh",
"precache:clean": "shx rm -rf add-on/dist/precache",
"bundle": "run-s bundle:*",
"bundle:chromium": "shx cat add-on/manifest.common.json add-on/manifest.chromium.json | json --deep-merge > add-on/manifest.json && web-ext build -a build/chromium && run-s build:rename-artifacts",
"bundle:firefox": "shx cat add-on/manifest.common.json add-on/manifest.firefox.json | json --deep-merge > add-on/manifest.json && web-ext build -a build/firefox/ && run-s build:rename-artifacts",
"bundle:firefox:": "npm run bundle:firefox",
"bundle:firefox:stable": "npm run bundle:firefox",
"bundle:firefox:beta": "npm run bundle:firefox",
"bundle:brave": "shx cat add-on/manifest.common.json add-on/manifest.chromium.json add-on/manifest.brave.json | json --deep-merge > add-on/manifest.json && web-ext build -a build/brave/ && run-s build:rename-artifacts",
"bundle:brave:": "npm run bundle:brave",
"bundle:brave:stable": "npm run bundle:brave",
"bundle:brave:beta": "npm run bundle:brave",
"watch": "npm-run-all build:copy --parallel watch:*",
"watch:js": "run-p watch:js:*",
"watch:js:webpack": "webpack --watch --mode development --devtool inline-source-map --config ./webpack.config.js",
"test": "run-s test:*",
"test:e2e": "mocha --timeout 300000 \"test/e2e/**/*.test.js\"",
"test:functional": "c8 mocha --timeout 5000 --file \"test/setup/mocha-setup.js\" \"test/functional/**/*.test.js\" \"test/functional/**/*.test.ts\"",
"lint": "run-s lint:*",
"test:functional_MV3": "cross-env TEST_MV3=true npm run test:functional",
"lint:standard": "ts-standard -v \"*.js\" \"add-on/src/**/*.js\" \"add-on/src/**/*.ts\" \"test/**/*.js\" \"scripts/**/*.js\"",
"lint:web-ext": "shx cat add-on/manifest.common.json add-on/manifest.chromium.json add-on/manifest.firefox-beta.json | json --deep-merge > add-on/manifest.json && web-ext lint --firefox-preview",
"fix:lint": "run-s fix:lint:*",
"fix:lint:standard": "ts-standard -v --fix \"*.js\" \"add-on/src/**/*.js\" \"add-on/src/**/*.ts\" \"test/**/*.js\" \"scripts/**/*.js\"",
"precommit": "run-s lint:standard",
"prepush": "run-s clean build lint test",
"chromium": "run-s bundle:chromium && web-ext run --no-reload --target chromium",
"firefox": "run-s bundle:firefox && web-ext run --no-reload --url about:debugging --verbose",
"firefox:nightly": "cross-env PATH=\"./firefox:$PATH\" run-s get-firefox-nightly firefox",
"get-firefox-nightly": "shx test -e ./firefox/firefox || get-firefox -b nightly -e",
"changelog": "npx conventional-changelog-cli -p angular -i CHANGELOG.md -s",
"ci": "run-s ci:*",
"ci:install": "npm ci --prefer-offline --no-audit --progress=false",
"ci:build": "npm run build",
"ci:build:stable": "RELEASE_CHANNEL=stable npm run ci:build",
"ci:build:beta": "RELEASE_CHANNEL=beta npm run ci:build",
"ci:test": "npm test",
"ci:lint": "npm run lint",
"beta-build": "docker rmi -f ipfs-companion-beta-build && docker build -t ipfs-companion-beta-build --build-arg USER_ID=$(id -u ${USER}) --build-arg GROUP_ID=$(id -g ${USER}) . && mkdir -p build && docker run --rm --net=host -v $(pwd)/build:/home/node/app/build ipfs-companion-beta-build npm run ci:build:beta",
"release-build": "docker rmi -f ipfs-companion-release-build && docker build -t ipfs-companion-release-build --build-arg USER_ID=$(id -u ${USER}) --build-arg GROUP_ID=$(id -g ${USER}) . && mkdir -p build && docker run --rm --net=host -v $(pwd)/build:/home/node/app/build ipfs-companion-release-build npm run ci:build:stable",
"dev-build": "npm ci && cross-env NODE_ENV='development' npm run build",
"yarn-build": "npm run dev-build",
"compose:e2e:prepare": "docker compose --file docker-compose.e2e.yml pull && docker compose --file docker-compose.e2e.yml build",
"compose:e2e:up": "docker compose --file docker-compose.e2e.yml up --remove-orphans --detach kubo chromium firefox",
"compose:e2e:test": "docker compose --file docker-compose.e2e.yml run e2e npm run test:e2e",
"compose:e2e:down": "docker compose --file docker-compose.e2e.yml down"
},
"private": true,
"preferGlobal": false,
"c8": {
"all": true,
"src": [
"add-on/src/"
],
"reporter": [
"text"
],
"include": [
"add-on/src/**"
]
},
"devDependencies": {
"@babel/core": "7.20.2",
"@babel/plugin-proposal-class-properties": "7.18.6",
"@babel/preset-env": "7.20.2",
"@istanbuljs/esm-loader-hook": "0.2.0",
"@types/chai": "^4.3.4",
"@types/debug": "^4.1.7",
"@types/mocha": "^10.0.1",
"@types/selenium-webdriver": "^4.1.13",
"@types/webextension-polyfill": "^0.10.0",
"abort-controller": "3.0.0",
"babel-loader": "9.1.0",
"babel-plugin-syntax-async-generators": "6.13.0",
"bufferutil": "^4.0.7",
"c8": "7.12.0",
"chai": "4.3.7",
"countly-sdk-web": "23.2.2",
"cross-env": "7.0.3",
"css-loader": "6.7.2",
"download-cli": "1.1.1",
"exponential-backoff": "^3.1.0",
"fast-hash-code": "^2.1.0",
"file-loader": "6.2.0",
"fs-promise": "2.0.3",
"get-firefox": "5.0.0",
"global": "^4.4.0",
"http-browserify": "^1.7.0",
"https-browserify": "^1.0.0",
"ignore-loader": "0.1.2",
"ignore-styles": "5.0.1",
"json": "11.0.0",
"kubo-rpc-client": "2.0.0",
"mem-storage-area": "1.0.3",
"mini-css-extract-plugin": "2.7.0",
"mocha": "10.1.0",
"npm-run-all": "4.1.5",
"patch-package": "6.5.0",
"path": "0.12.7",
"process": "^0.11.10",
"raw-loader": "4.0.2",
"request-progress": "3.0.0",
"selenium-webdriver": "^4.7.1",
"shx": "0.3.4",
"sinon": "13.0.1",
"sinon-chrome": "3.0.1",
"standard": "16.0.4",
"style-loader": "3.3.1",
"tar": "6.1.12",
"terser": "5.15.1",
"terser-webpack-plugin": "5.3.6",
"transform-loader": "0.2.4",
"ts-loader": "^9.4.2",
"ts-node": "^10.9.1",
"ts-standard": "^12.0.2",
"tsconfig-paths": "^4.1.2",
"typescript": "^4.9.5",
"url": "0.11.0",
"utf-8-validate": "^5.0.10",
"web-ext": "7.3.1",
"webpack": "5.75.0",
"webpack-bundle-analyzer": "4.7.0",
"webpack-cli": "5.0.0",
"webpack-merge": "5.8.0"
},
"dependencies": {
"@ipfs-shipyard/ignite-metrics": "^2.0.0",
"@material/switch": "10.0.0",
"assert": "2.0.0",
"buffer": "6.0.3",
"choo": "7.1.0",
"debug": "4.3.4",
"drag-and-drop-files": "0.0.1",
"filesize": "10.0.5",
"ipfs-css": "1.4.0",
"is-fqdn": "2.0.1",
"is-ip": "5.0.0",
"is-ipfs": "https://github.com/ipfs/is-ipfs/tarball/5d6d1a2aa2fc64b61f374532c1f0766ce38725f3",
"it-all": "2.0.0",
"lru-cache": "7.14.1",
"merge-options": "3.0.4",
"multiaddr": "10.0.1",
"multiaddr-to-uri": "8.0.0",
"os-browserify": "0.3.0",
"p-memoize": "7.1.1",
"p-queue": "7.3.0",
"p-wait-for": "5.0.0",
"path-browserify": "1.0.1",
"piggybacker": "2.0.0",
"postmsg-rpc": "2.4.0",
"tachyons": "4.12.0",
"uri-to-multiaddr": "6.0.0",
"webextension-polyfill": "0.10.0"
},
"webExt": {
"verbose": false,
"artifactsDir": "build/",
"sourceDir": "add-on/",
"ignoreFiles": [
"src/",
"*.map",
"manifest.*.json"
],
"build": {
"overwriteDest": true
}
},
"engines": {
"node": ">=18.12.1",
"npm": ">=8.19.2"
},
"ts-standard": {
"project": "./tsconfig.json"
}
}