diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2014-09-15 19:47:53 +0400 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2014-09-15 19:47:53 +0400 |
commit | c36bc28bcad7d1db0378de358292418c09e7c13c (patch) | |
tree | 342bf2bfd9430c20e8af52741439987213048347 /package.json | |
parent | 653f987537c9b4dd056f2baff4af108a386e011d (diff) |
add build script for non-browserify users
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 3 |
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" } |