microtask
Version:
30 lines (20 loc) • 602 B
Plain Text
COMPONENT = @./node_modules/.bin/component
MOCHA = @./node_modules/mocha/bin/mocha
KARMA = @./node_modules/karma/bin/karma
build: node_modules components
node_modules:
@echo "Installing nodejs dependencies"
@npm i -d
components:
@echo "Building component"
$(COMPONENT) install
$(COMPONENT) build --standalone uTask
test: build test-node test-browser
test-node: node_modules
$(MOCHA) --require should --reporter spec
test-browser: components
$(KARMA) start ./test/karma/karma.conf
doc:
@dox -a < index.js > doc
@cat doc.header doc > README.md