eventsource
Version:
W3C compliant EventSource client for Node.js
23 lines (16 loc) • 599 B
Plain Text
VERSION := $(shell node -e "console.log(JSON.parse(require('fs').readFileSync('package.json', 'utf8')).version)")
run-tests: node_modules lib/eventstream.js
@NODE_PATH=lib ./node_modules/.bin/mocha --reporter spec
clobber:
rm lib/eventstream.js
git clean -dfx
lib/eventstream.js: lib/eventstream.jison node_modules
./node_modules/.bin/jison -o $@ lib/eventstream.jison
publish: lib/eventstream.js
npm publish && git tag v$(VERSION) -m "Release v$(VERSION)" && git push && git push --tags
node_modules: package.json
npm install
touch $@