forked from webtorrent/node-bencode
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
Latest commit
21 lines (15 loc) · 425 Bytes
/
Copy pathMakefile
File metadata and controls
21 lines (15 loc) · 425 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.PHONY: all test benchmark
browserify: lib/*.js
mkdir -p dist
browserify bencode.js -s bencode -o dist/bencode.js
# TODO: thats not how it should behave!
browser-test: lib/*.js test/*.js
mkdir -p dist
browserify test/*.test.js -o dist/tests.js
echo"<script src='tests.js'></script>"> dist/test.html
# open dist/test.html in your browser now
test:
npm test
benchmark:
npm run-script bench
all: browserify test