forked from commenthol/date-holidays
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
59 lines (42 loc) · 1.1 KB
/
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
51
52
53
54
55
56
57
58
59
npmbin := $(shell npm bin)
all: lint lib yaml attributions docs
npm test
yaml: data/holidays.json
data/holidays.json: data/countries/*.yaml data/names.yaml
npm run yaml
lib: src/*
npm run transpile
test: v12. v14. v15.
v%:
n $@; \
npm run clean:all; \
npm i && \
npm run ci
dist:
npm run webpack
docs: tree README.md
npx markedpp --github -i docs/specification.md -o docs/specification.md
npx markedpp --github -i README.md -o README.md
lint:
npm run lint
tree: yaml
node scripts/addtree.js
writetests: yaml
$(npmbin)/mocha test/all.mocha.js --writetests
attributions: LICENSE
gitChanges:
@git diff-files --quiet # fail if unstaged changes
@git diff-index --quiet HEAD # fail if uncommited changes
gh-pages: gitChanges
git checkout gh-pages
git merge --no-ff -X theirs master
cp -r examples/browser/index* .
git add .
git commit -a -m 'chore(gh-pages): update'
git checkout master
push: gitChanges
git push origin master
git push origin gh-pages -f
LICENSE: data/countries/*.yaml
node scripts/attributions.js
.PHONY: all doc lint test tree writetests yaml dist gitChanges gh-pages push