-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
50 lines (37 loc) · 885 Bytes
/
Makefile
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
43
44
45
46
47
48
49
50
all: build
build watch: babel_flags += -s
watch: babel_flags += -w
build watch:
babel $(babel_flags) -d build src
test:
babel-tape-runner tests/**/*.js
$(VERSION):
npm version $(VERSION) --no-git-tag-version
version: $(VERSION)
.npmignore: .gitignore
sort -ru .gitignore | grep -v '^build$$' > .npmignore
echo '.gitignore .npmignore .babelrc Makefile' | tr ' ' '\n' >> .npmignore
.kbignore: .npmignore
sort -ru .npmignore > .kbignore
echo .git >> .kbignore
echo build >> .kbignore
sign: .kbignore
keybase dir sign -p kb
verify:
keybase dir verify
ifdef VERSION
tag: version sign
git commit -am 'Signed PGP:E6B74303'
git tag v$(VERSION)
publish:
git checkout master
git merge develop
touch .gitignore
make tag VERSION=$(VERSION)
make
npm publish
endif
clean:
rm -rf build
git checkout SIGNED.md
.PHONY: clean version build watch sign verify tag publish