This commit is contained in:
2025-05-12 05:38:44 +09:00
parent dced21c3f8
commit 6d78bfa46e
8120 changed files with 1161564 additions and 0 deletions

28
book/node_modules/cp/Makefile generated vendored Normal file
View File

@ -0,0 +1,28 @@
BIN := node_modules/.bin
NODE ?= node
SRC = $(wildcard *.js)
TEST = $(wildcard test/*.js)
test: NODE=$(BIN)/gnode
test: node_modules
$(NODE) $(BIN)/_mocha \
--reporter spec \
--require co-mocha \
$(NODE_FLAGS)
# coverage only available on 0.11
coverage: node_modules $(SRC) $(TEST)
$(NODE) --harmony-generators $(BIN)/istanbul cover \
$(BIN)/_mocha -- \
--require co-mocha \
--reporter spec
node_modules: package.json
@npm install
@touch $@
clean:
@rm -rf coverage test/fixtures/*copy*
.PHONY: test clean