-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (31 loc) · 718 Bytes
/
Makefile
File metadata and controls
42 lines (31 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
MAKEFLAGS = -j1
PATH := ./node_modules/.bin:$(PATH)
SHELL := /bin/bash
args = $(filter-out $@, $(MAKECMDGOALS))
.PHONY: all lint test-only test build coverage publish rebuild release
all: build test
build:
babel src -d dist $(args)
lint:
eslint src
test-only:
tape -r babel-register test/**/*.test.js | tap-spec
test: lint test-only
coverage:
nyc make test && nyc report --reporter=text-lcov | coveralls
publish: all
npm publish
rebuild:
rm -rf node_modules/ dist/ .nyc_output/ npm-debug.log
npm i
make build
VERS := "patch"
TAG := "latest"
release:
git checkout master
git pull --rebase
make build
make test
npm version $(VERS) -m "Release %s"
npm publish --tag $(TAG)
git push --follow-tags