chanel
Version:
Channel-based control-flow for parallel tasks with concurrency control
23 lines (18 loc) • 371 B
Plain Text
BIN = ./node_modules/.bin/
NODE ?= node
SRC = $(shell find lib -name "*.js")
BUILD = $(subst lib,build,$(SRC))
build:
@mkdir -p build
@$(MAKE) $(BUILD)
build/%.js: lib/%.js
@$(BIN)regenerator --include-runtime $< > $@
clean:
@rm -rf build
test:
@$(NODE) $(BIN)mocha \
--harmony-generators \
--require should \
--reporter spec \
--bail