front-matter
Version:
Extract YAML front matter from a string
44 lines (34 loc) • 820 B
Plain Text
MAKEFLAGS += --warn-undefined-variables
PATH := node_modules/.bin:$(PATH)
SHELL := /bin/bash
.SHELLFLAGS := -eu -o pipefail -c
.DEFAULT_GOAL := all
.DELETE_ON_ERROR:
.SUFFIXES:
version ?= patch
node_modules: package.json
@npm prune
@npm install
@touch node_modules
clean:
@$(RM) -fr node_modules
@$(RM) -fr npm-debug.log
@$(RM) -fr coverage
test: node_modules
tape test/index.js
release:
npm version $(version)
git push && git push --tags
npm publish
coverage: node_modules index.js test/index.js node_modules
@istanbul cover --report html --print detail ./test/index.js
@touch coverage
coveralls: node_modules coverage
@istanbul report lcov && (cat coverage/lcov.info | coveralls)
travis: test coveralls