UNPKG

416 BPlain TextView Raw
1BIN = ./node_modules/.bin/
2NODE ?= node
3SRC = $(shell find lib -name "*.js")
4BUILD = $(subst lib,build,$(SRC))
5
6build: $(BUILD)
7
8build/%.js: lib/%.js
9 @mkdir -p build/builders build/plugins
10 @$(BIN)regenerator --include-runtime $< > $@
11
12clean:
13 @rm -rf build public
14
15test: build
16 @$(NODE) $(BIN)mocha \
17 --harmony-generators \
18 --require should \
19 --reporter spec \
20 --timeout 30s \
21 --bail
22
23.PHONY: test clean