-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
64 lines (48 loc) · 983 Bytes
/
Makefile
File metadata and controls
64 lines (48 loc) · 983 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
all: clean build
test: v8. v10. v12. v13.
v%:
n $@
npm test
gitChanges:
@git diff-files --quiet # fail if unstaged changes
@git diff-index --quiet HEAD # fail if uncommited changes
gh-pages: src gitChanges
git branch -f gh-pages
git checkout gh-pages
git reset --hard master
npm run clean
npm run doc
cp -r docs/* .
rm -rf docs/*
git add .
git commit -a -m 'gh-pages update'
git checkout master
push: gitChanges
git push origin master
git push origin gh-pages -f
docs: src scripts
npm run doc
dist: src dist/index.js
dist/index.js: src
npm run lint \
&& npm run build \
&& npm run test:mocha \
&& npm run test:karma \
&& npm version
build: lib dist
lib:
npm run transpile
pack: node_modules build
rm *.tgz
npm pack
tar tvzf *.tgz
publish: node_modules build gitChanges
rm *.tgz
npm publish
node_modules:
npm update
clean:
rm -rf lib dist docs coverage
clean-all: clean
rm -rf node_modules
.PHONY: all build test gitChanges push publish