package.Makefile Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of canihaz Show documentation
Show all versions of canihaz Show documentation
canihaz allows you to lazy install npm modules because not every dependency is needed.
The newest version!
ALL_TESTS = $(shell find test/ -name '*.test.js')
NPM_TARBALL = $(shell npm pack -q)
test:
@tar -xvzf $(NPM_TARBALL)
@mv ./package ./node_modules/canihaz
@rm $(NPM_TARBALL)
@./node_modules/.bin/mocha $(ALL_TESTS)
@rm -rf ./node_modules
@npm install .
.PHONY: test