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:
authorFeross Aboukhadijeh <feross@feross.org>2019-08-08 23:52:29 +0300
committerFeross Aboukhadijeh <feross@feross.org>2019-08-09 08:33:43 +0300
commit7c31b0f691ea781416db869fcc8ceb26b225aaf3 (patch)
treed1d9836ddb99c94c5244ee0d0b0033e743d4ab6b /package.json
parent6349dabc231b5c182453ab1a40d03a179555402a (diff)
Add Chrome App build
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 f3cbbce..3cf67c7 100644
--- a/package.json
+++ b/package.json
@@ -78,7 +78,7 @@
"devDependencies": {
"airtap": "^2.0.3",
"bittorrent-tracker": "^9.14.0",
- "browserify": "^16.4.0",
+ "browserify": "^16.5.0",
"disc": "^1.3.3",
"electron": "^6.0.1",
"finalhandler": "^1.0.0",
@@ -117,11 +117,14 @@
"url": "git://github.com/webtorrent/webtorrent.git"
},
"scripts": {
- "build": "browserify --standalone WebTorrent --plugin tinyify . > 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 --require .:webtorrent --plugin tinyify . > webtorrent.chromeapp.js",
+ "build-chromeapp-debug": "browserify --browser-field=chromeapp --standalone WebTorrent --require .:webtorrent . > webtorrent.chromeapp.js",
+ "build-js": "browserify --standalone WebTorrent --plugin tinyify . > webtorrent.min.js",
+ "build-js-debug": "browserify --standalone WebTorrent . > webtorrent.debug.js",
"size": "npm run size-js && npm run size-disc",
- "size-disc": "browserify --plugin tinyify --full-paths . | discify --open",
"size-js": "npm run build && cat webtorrent.min.js | gzip | wc -c",
+ "size-disc": "browserify --plugin tinyify --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",