Sha256: 2849529ccb93dbd1f3891776d079e18956e0a83755e1aa25c64518a3f92cdc40

Contents?: true

Size: 1.23 KB

Versions: 45

Compression:

Stored size: 1.23 KB

Contents

MAKEFLAGS += --warn-undefined-variables
PATH := node_modules/.bin:$(PATH)
SHELL := /bin/bash

.SHELLFLAGS := -eu -o pipefail -c
.DEFAULT_GOAL := all
.DELETE_ON_ERROR:
.SUFFIXES:

TEST ?= node
version ?= patch

node_modules: package.json
	@npm prune
	@npm install
	@touch node_modules

.PHONY: clean
clean:
	@$(RM) -fr node_modules
	@$(RM) -fr npm-debug.log
	@$(RM) -fr coverage

.PHONY: fmt
fmt: node_modules
	@standard-format -w

.PHONY: lint
lint: node_modules
	@standard

.PHONY: test
test: lint
	@if [ "$(TEST)" = "browser" ]; \
		then make test-browser; \
		else make test-node; \
	fi

.PHONY: test-node
test-node: node_modules
	tape test/index.js

.PHONY: test-browser
test-browser: node_modules
ifeq ($(TRAVIS_PULL_REQUEST),true)
	zuul -- test/index.js
endif

.PHONY: zuul
zuul: node_modules
	zuul --local 8080 --ui tape -- test/index.js

.PHONY: release
release: test
	npm version $(version)
	git push && git push --tags
	npm publish

.PHONY: coverage
coverage: node_modules index.js test/index.js node_modules
	@istanbul cover --report html --print detail ./test/index.js
	@touch coverage

.PHONY: coveralls
coveralls: node_modules coverage
	@istanbul report lcov
	(cat coverage/lcov.info | coveralls) || exit 0

.PHONY: travis
travis: test coveralls

Version data entries

45 entries across 45 versions & 2 rubygems

Version Path
govuk_publishing_components-18.0.0 node_modules/front-matter/Makefile
govuk_publishing_components-17.21.0 node_modules/front-matter/Makefile
govuk_publishing_components-17.20.0 node_modules/front-matter/Makefile
govuk_publishing_components-17.19.1 node_modules/front-matter/Makefile
govuk_publishing_components-17.19.0 node_modules/front-matter/Makefile
govuk_publishing_components-17.18.0 node_modules/front-matter/Makefile
govuk_publishing_components-17.17.0 node_modules/front-matter/Makefile
govuk_publishing_components-17.16.0 node_modules/front-matter/Makefile
govuk_publishing_components-17.15.0 node_modules/front-matter/Makefile
govuk_publishing_components-17.14.0 node_modules/front-matter/Makefile
govuk_publishing_components-17.13.0 node_modules/front-matter/Makefile
govuk_publishing_components-17.12.2 node_modules/front-matter/Makefile
govuk_publishing_components-17.12.1 node_modules/front-matter/Makefile
govuk_publishing_components-17.12.0 node_modules/front-matter/Makefile
govuk_publishing_components-17.11.0 node_modules/front-matter/Makefile
govuk_publishing_components-17.10.0 node_modules/front-matter/Makefile
govuk_publishing_components-17.9.0 node_modules/front-matter/Makefile
govuk_publishing_components-17.8.0 node_modules/front-matter/Makefile
govuk_publishing_components-17.7.0 node_modules/front-matter/Makefile
govuk_publishing_components-17.6.1 node_modules/front-matter/Makefile