Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'package.json')
-rw-r--r--package.json11
1 files changed, 7 insertions, 4 deletions
diff --git a/package.json b/package.json
index 29c0052..23766d2 100644
--- a/package.json
+++ b/package.json
@@ -79,7 +79,7 @@
"airtap": "^3.0.0",
"babel-minify": "^0.5.1",
"bittorrent-tracker": "^9.14.0",
- "browserify": "^16.4.0",
+ "browserify": "^16.5.0",
"disc": "^1.3.3",
"electron": "^8.0.0",
"finalhandler": "^1.0.0",
@@ -117,11 +117,14 @@
"url": "git://github.com/webtorrent/webtorrent.git"
},
"scripts": {
- "build": "browserify --standalone WebTorrent . | minify --mangle=false > webtorrent.min.js",
- "build-debug": "browserify --standalone WebTorrent . > webtorrent.debug.js",
+ "build": "npm run build-js && npm run build-chromeapp",
+ "build-chromeapp": "browserify --browser-field=chromeapp --standalone WebTorrent . | minify --mangle=false > webtorrent.chromeapp.js",
+ "build-chromeapp-debug": "browserify --browser-field=chromeapp --standalone WebTorrent . > webtorrent.chromeapp.js",
+ "build-js": "browserify --standalone WebTorrent . | minify --mangle=false > webtorrent.min.js",
+ "build-js-debug": "browserify --standalone WebTorrent . > webtorrent.debug.js",
"size": "npm run size-js && npm run size-disc",
- "size-disc": "browserify --full-paths . | discify --open",
"size-js": "npm run build && cat webtorrent.min.js | gzip | wc -c",
+ "size-disc": "browserify --full-paths . | discify --open",
"test": "standard && npm run test-node && npm run test-browser",
"test-browser": "airtap -- test/*.js test/browser/*.js",
"test-browser-local": "airtap --local -- test/*.js test/browser/*.js",