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>2014-09-15 19:47:53 +0400
committerFeross Aboukhadijeh <feross@feross.org>2014-09-15 19:47:53 +0400
commitc36bc28bcad7d1db0378de358292418c09e7c13c (patch)
tree342bf2bfd9430c20e8af52741439987213048347 /package.json
parent653f987537c9b4dd056f2baff4af108a386e011d (diff)
add build script for non-browserify users
Diffstat (limited to 'package.json')
-rw-r--r--package.json3
1 files changed, 3 insertions, 0 deletions
diff --git a/package.json b/package.json
index 0725748..d333f1c 100644
--- a/package.json
+++ b/package.json
@@ -42,7 +42,9 @@
"windows-no-runnable": "~0.0.6"
},
"devDependencies": {
+ "browserify": "^5.11.2",
"tape": "2.x",
+ "uglify-js": "^2.4.15",
"zelda": "^2.0.0"
},
"homepage": "http://webtorrent.io",
@@ -64,6 +66,7 @@
"url": "git://github.com/feross/webtorrent.git"
},
"scripts": {
+ "build": "browserify -s WebTorrent -r ./ | uglifyjs -c warnings=false -m > webtorrent.min.js",
"start": "./bin/cmd.js",
"test": "tape test/*.js"
}