Skip to content
This repository was archived by the owner on Mar 12, 2023. It is now read-only.

Commit ecdce40

Browse files
author
abizek
committed
WebSocketTracker standalone script
1 parent 330301a commit ecdce40

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# bittorrent-tracker [![ci][ci-image]][ci-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]
22

3+
Same as [webtorrent/bittorrent-tracker](https://github.com/webtorrent/bittorrent-tracker) except for WebSocketTracker exposed through the standalone script `websockettracker.min.js`.
4+
5+
---
6+
37
[ci-image]: https://img.shields.io/github/workflow/status/webtorrent/bittorrent-tracker/ci/master
48
[ci-url]: https://github.com/webtorrent/bittorrent-tracker/actions
59
[npm-image]: https://img.shields.io/npm/v/bittorrent-tracker.svg

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,12 @@
5252
},
5353
"devDependencies": {
5454
"@webtorrent/semantic-release-config": "1.0.7",
55+
"browserify": "^17.0.0",
5556
"magnet-uri": "6.2.0",
5657
"semantic-release": "18.0.1",
5758
"standard": "*",
5859
"tape": "5.5.2",
60+
"terser": "^5.12.0",
5961
"webtorrent-fixtures": "1.7.5",
6062
"wrtc": "0.4.7"
6163
},
@@ -84,6 +86,7 @@
8486
},
8587
"scripts": {
8688
"preversion": "npm run update-authors",
89+
"build": "browserify -s WebSocketTracker -r ./lib/client/websocket-tracker.js | terser --compress --mangle > websockettracker.min.js",
8790
"test": "standard && tape test/*.js",
8891
"update-authors": "./tools/update-authors.sh"
8992
},

0 commit comments

Comments
 (0)