forked from ipfs/ipfs-companion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
176 lines (176 loc) · 7.92 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
{
"name": "ipfs-companion",
"homepage": "https://github.com/ipfs-shipyard/ipfs-companion",
"license": "CC0-1.0",
"leadMaintainer": "Marcin Rataj <lidel@lidel.org>",
"repository": {
"type": "git",
"url": "https://github.com/ipfs-shipyard/ipfs-companion.git"
},
"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: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/ add-on/dist/bundles/ipfsProxyContentScriptPayload.bundle.js",
"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": "shx cat add-on/manifest.common.json add-on/manifest.firefox.json add-on/manifest.firefox-beta.json | json --deep-merge > add-on/manifest.json && web-ext build -a build/firefox/ && run-s build:rename-artifacts",
"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": "shx cat add-on/manifest.common.json add-on/manifest.chromium.json add-on/manifest.brave.json add-on/manifest.brave-beta.json | json --deep-merge > add-on/manifest.json && web-ext build -a build/brave/ && run-s build:rename-artifacts",
"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:functional": " nyc --reporter=lcov --reporter=text mocha --timeout 15000 --require ignore-styles \"test/functional/**/*.test.js\"",
"lint": "run-s lint:*",
"lint:standard": "standard -v \"*.js\" \"add-on/src/**/*.js\" \"test/**/*.js\" \"scripts/**/*.js\"",
"lint:web-ext": "web-ext lint",
"fix:lint": "run-s fix:lint:*",
"fix:lint:standard": "standard -v --fix \"*.js\" \"add-on/src/**/*.js\" \"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",
"firefox:beta:add": "faauv --update ci/firefox/update.json ",
"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": "npx yarn@1.22.10 install --frozen-lockfile --no-progress --non-interactive",
"ci:build": "npx yarn@1.22.10 build",
"ci:test": "npx yarn@1.22.10 test",
"ci:lint": "npx yarn@1.22.10 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 -it --net=host -e RELEASE_CHANNEL=beta -v $(pwd)/build:/home/node/app/build ipfs-companion-beta-build yarn ci:build",
"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 -it --net=host -e RELEASE_CHANNEL=stable -v $(pwd)/build:/home/node/app/build ipfs-companion-release-build yarn ci:build",
"dev-build": "npx yarn@1.22.10 && npx yarn@1.22.10 build",
"yarn-build": "npm run dev-build"
},
"private": true,
"preferGlobal": false,
"resolutions": {
"v8": "npm:empty-module@0.0.2",
"@hapi/joi": "npm:joi@17.2.1",
"joi": "npm:joi@17.2.1",
"iso-stream-http": "0.1.2",
"stream-http": "npm:iso-stream-http@0.1.2",
"stream": "npm:readable-stream@3.6.0",
"prom-client": "file:./scripts/prom-client-stub",
"prometheus-gc-stats": "npm:empty-module@0.0.2",
"pull-to-stream": "0.1.1"
},
"devDependencies": {
"@babel/core": "7.12.3",
"@babel/plugin-proposal-class-properties": "7.12.1",
"@babel/preset-env": "7.12.1",
"babel-loader": "8.1.0",
"babel-plugin-syntax-async-generators": "6.13.0",
"chai": "4.2.0",
"cross-env": "7.0.2",
"css-loader": "5.0.0",
"download-cli": "1.1.1",
"file-loader": "6.2.0",
"firefox-addons-add-update-version": "1.0.1",
"fs-promise": "2.0.3",
"get-firefox": "4.0.0",
"husky": "4.3.0",
"ignore-loader": "0.1.2",
"ignore-styles": "5.0.1",
"ipfs-or-gateway": "2.1.0",
"json": "10.0.0",
"mem-storage-area": "1.0.3",
"mini-css-extract-plugin": "1.2.1",
"mocha": "8.2.0",
"npm-run-all": "4.1.5",
"nyc": "15.1.0",
"raw-loader": "4.0.2",
"request-progress": "3.0.0",
"shx": "0.3.3",
"sinon": "9.2.1",
"sinon-chrome": "3.0.1",
"standard": "15.0.1",
"style-loader": "2.0.0",
"tar": "6.0.5",
"terser": "5.3.8",
"terser-webpack-plugin": "5.0.3",
"transform-loader": "0.2.4",
"web-ext": "5.3.0",
"webpack": "5.3.1",
"webpack-bundle-analyzer": "3.9.0",
"webpack-cli": "4.1.0",
"webpack-merge": "5.2.0",
"yarn": "1.22.10"
},
"dependencies": {
"@material/switch": "7.0.0",
"assert": "2.0.0",
"browser-process-hrtime": "1.0.0",
"browserify-zlib": "0.2.0",
"buffer": "5.7.0",
"choo": "7.1.0",
"chrome-dgram": "3.0.6",
"chrome-net": "3.3.4",
"debug": "4.2.0",
"drag-and-drop-files": "0.0.1",
"filesize": "6.1.0",
"get-port": "5.1.1",
"http-dns": "3.0.1",
"http-node": "1.2.0",
"https-browserify": "1.0.0",
"ipfs": "0.50.2",
"ipfs-css": "1.3.0",
"ipfs-http-client": "48.0.0",
"ipfs-postmsg-proxy": "3.1.1",
"is-fqdn": "2.0.1",
"is-ip": "3.1.0",
"is-ipfs": "2.0.0",
"it-all": "1.0.4",
"it-concat": "1.0.2",
"it-tar": "1.2.2",
"lru-cache": "6.0.0",
"merge-options": "3.0.3",
"multiaddr": "8.0.0",
"multiaddr-to-uri": "6.0.0",
"os-browserify": "0.3.0",
"p-memoize": "4.0.1",
"p-queue": "6.6.2",
"p-wait-for": "3.2.0",
"path-browserify": "1.0.1",
"piggybacker": "2.0.0",
"postmsg-rpc": "2.4.0",
"readable-stream": "3.6.0",
"tachyons": "4.12.0",
"tar-stream": "2.1.4",
"timers-browserify": "2.0.12",
"timers-browserify-full": "0.0.1",
"uri-to-multiaddr": "4.0.0",
"webextension-polyfill": "0.6.0",
"webrtc-ips": "0.1.4"
},
"engines": {
"node": ">=10.0.0",
"npm": ">=6.0.0"
},
"husky": {
"hooks": {
"pre-commit": "npm run fix:lint:standard"
}
}
}