-
Notifications
You must be signed in to change notification settings - Fork 325
/
package.json
127 lines (127 loc) · 6.18 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
{
"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",
"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:copy:ui-kit": "run-p build:copy:ui-kit:*",
"build:copy:ui-kit:ipfs-css": "run-p build:copy:ui-kit:ipfs-css:*",
"build:copy:ui-kit:ipfs-css:css": "shx mkdir -p add-on/ui-kit && shx cp node_modules/ipfs-css/ipfs.css add-on/ui-kit",
"build:copy:ui-kit:ipfs-css:fonts": "shx mkdir -p add-on/ui-kit/fonts && shx cp node_modules/ipfs-css/fonts/* add-on/ui-kit/fonts",
"build:copy:ui-kit:tachyons": "shx mkdir -p add-on/ui-kit && shx cp node_modules/tachyons/css/tachyons.css add-on/ui-kit",
"build:js": "run-p build:js:*",
"build:js:webpack": "webpack -p",
"build:minimize-dist": "shx rm -rf add-on/dist/lib add-on/dist/contentScripts/ add-on/dist/bundles/ipfsProxyContentScriptPayload.bundle.js",
"build:bundle-all": "cross-env-shell RELEASE_CHANNEL=${RELEASE_CHANNEL:=dev} npm run bundle:generic && cross-env-shell npm run bundle:firefox:$RELEASE_CHANNEL",
"bundle": "run-s bundle:*",
"bundle:generic": "shx cp add-on/manifest.common.json add-on/manifest.json && web-ext build -a build/generic",
"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/",
"bundle:firefox:dev": "npm run bundle:firefox",
"bundle:firefox:release": "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/beta/",
"bundle:firefox:libdweb": "shx cat add-on/manifest.common.json add-on/manifest.firefox.json add-on/manifest.firefox-libdweb.json | json --deep-merge > add-on/manifest.json && web-ext build -a build/firefox/libdweb/",
"watch": "npm-run-all build:copy --parallel watch:*",
"watch:js": "run-p watch:js:*",
"watch:js:webpack": "webpack --watch --progress -d --devtool inline-source-map",
"test": "run-s test:*",
"test:functional": " nyc --reporter=lcov --reporter=text mocha --timeout 15000 --require ignore-styles --reporter mocha-jenkins-reporter \"test/functional/**/*.test.js\"",
"lint": "run-s lint:*",
"lint:standard": "standard -v \"*.js\" \"add-on/src/**/*.js\" \"test/**/*.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\"",
"precommit": "run-s lint:standard",
"prepush": "run-s clean build lint test",
"firefox": "web-ext run --browser-console --url about:debugging",
"libdweb": "npm run libdweb:build && npm run libdweb:firefox",
"libdweb:build": "npx yarn@1.9.4 && cross-env-shell RELEASE_CHANNEL=libdweb npm run dev-build",
"libdweb:firefox": "npm run get-firefox-nightly && cross-env MOZ_DISABLE_CONTENT_SANDBOX=1 web-ext run --firefox=./firefox/firefox --browser-console --url about:debugging",
"get-firefox-nightly": "shx test -e ./firefox/firefox || get-firefox -b nightly -e",
"ci": "run-s ci:*",
"ci:install": "npx yarn@1.9.4 install --frozen-lockfile || npx yarn@1.9.4 install --frozen-lockfile",
"ci:test": "npx yarn@1.9.4 test",
"ci:build": "./ci/update-manifest.sh ; npx yarn@1.9.4 build ; chmod -R ugo+rwX build/ add-on/",
"beta-build": "docker build -t ipfs-companion . && docker run -it -e RELEASE_CHANNEL=beta -v $(pwd)/build:/usr/src/app/build ipfs-companion yarn ci:build",
"release-build": "docker build -t ipfs-companion . && docker run -it -e RELEASE_CHANNEL=stable -v $(pwd)/build:/usr/src/app/build ipfs-companion yarn ci:build",
"dev-build": "npx yarn@1.9.4 && npx yarn@1.9.4 build",
"yarn-build": "run-s dev-build"
},
"private": true,
"preferGlobal": false,
"standard": {
"parser": "babel-eslint"
},
"resolutions": {
"uglify-es": "npm:terser"
},
"devDependencies": {
"babel-core": "6.26.3",
"babel-eslint": "8.2.6",
"babel-loader": "7.1.5",
"babel-plugin-syntax-async-generators": "6.13.0",
"babel-preset-env": "1.7.0",
"chai": "4.1.2",
"cross-env": "5.2.0",
"fakefile": "0.0.9",
"fs-promise": "2.0.3",
"get-firefox": "2.2.0",
"husky": "0.14.3",
"ignore-styles": "5.0.1",
"json": "9.0.6",
"mem-storage-area": "1.0.3",
"mocha": "5.2.0",
"mocha-jenkins-reporter": "0.3.12",
"npm-run-all": "4.1.3",
"nyc": "12.0.2",
"raw-loader": "0.5.1",
"shx": "0.3.2",
"simple-progress-webpack-plugin": "1.1.2",
"sinon": "6.1.4",
"sinon-chrome": "2.3.2",
"standard": "10.0.3",
"terser": "3.8.1",
"transform-loader": "0.2.4",
"web-ext": "2.8.0",
"webpack": "4.16.5",
"webpack-bundle-analyzer": "2.13.1",
"webpack-cli": "3.1.0",
"webpack-merge": "4.1.4"
},
"dependencies": {
"async-iterate-stream": "1.0.3",
"buffer-peek-stream": "1.0.1",
"choo": "6.13.0",
"doc-sniff": "1.0.1",
"file-type": "8.1.0",
"filereader-pull-stream": "1.0.0",
"filesize": "3.6.1",
"ipfs": "0.31.4",
"ipfs-api": "23.0.0",
"ipfs-css": "0.7.0",
"ipfs-http-response": "https://github.com/lidel/js-ipfs-http-response/tarball/65f22ad654843946fdff8f26c7b3a69e2905bdaf/js-ipfs-http-response.tar.gz",
"ipfs-postmsg-proxy": "3.0.0",
"is-ipfs": "0.4.2",
"is-stream": "1.1.0",
"libdweb": "https://github.com/mozilla/libdweb/tarball/185290fb35dc2846e7f31b0a52d0afbb412ab7b5/libdweb.tar.gz",
"lru_map": "0.3.3",
"mime-types": "2.1.19",
"p-queue": "2.4.2",
"path-browserify": "1.0.0",
"piggybacker": "2.0.0",
"tachyons": "4.11.1",
"to-arraybuffer": "1.0.1",
"webextension-polyfill": "0.1.2"
}
}