Permalink
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (34 sloc) 1.03 KB
.PHONY: clean test build_browser build_npm publish_browser publish_npm
default:
@echo "Targets:"
@echo " - clean Clean the build"
@echo " - test Run all unit tests"
@echo " - build_browser Build browser version of the library"
@echo " - build_npm NOOP (there is nothing to prebuild here)"
@echo " - publish_browser Publish the browser version of the library"
@echo " - publish_npm Publish the npm version of the library"
clean:
rm -rf build
rm -rf ./node_modules
rm -f .sconsign.dblite
requirements:
pip install scons boto taschenmesser
build: build_browser build_npm
build_browser:
scons
build_npm:
@echo "Ok, npm doesn't need a build step"
publish: publish_browser publish_npm
publish_browser:
scons publish
git -C ../autobahn-js-built pull
cp ./build/* ../autobahn-js-built
@echo "Now commit and push autobahn-js-built!"
publish_npm:
npm publish
test:
npm test
test_connect:
nodeunit test/test_connect.js
test_msgpack_serialization:
nodeunit test/test_msgpack_serialization.js