1 Star 0 Fork 37

icococool / nodeclub

forked from fengmk2 / nodeclub 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 698 Bytes
一键复制 编辑 原始数据 按行查看 历史
TESTS = $(shell find test -type f -name "*.js")
TESTTIMEOUT = 5000
REPORTER = spec
JSCOVERAGE = ./node_modules/jscover/bin/jscover
install:
@npm install
test: install
@if ! test -f config.js; then \
cp config.default.js config.js; \
fi
@if ! test -f assets.json; then \
make build; \
fi
@NODE_ENV=test ./node_modules/mocha/bin/mocha \
--reporter $(REPORTER) --timeout $(TESTTIMEOUT) $(TESTS)
cov: install
@rm -rf .cov
@$(JSCOVERAGE) --exclude=public --exclude=test . .cov
@cp -rf node_modules test public .cov
test-cov: cov
@$(MAKE) -C .cov test REPORTER=progress
@$(MAKE) -C .cov test REPORTER=html-cov > coverage.html
build:
@./bin/combo views .
.PHONY: test test-cov cov
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/icococool/nodeclub.git
git@gitee.com:icococool/nodeclub.git
icococool
nodeclub
nodeclub
master

搜索帮助

Bbcd6f05 5694891 0cc6727d 5694891