-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (35 loc) · 849 Bytes
/
Makefile
File metadata and controls
44 lines (35 loc) · 849 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
RELEASE_MESSAGE = "Version %s"
.PHONY: install
install:
rm -rf node_modules
npm install
.PHONY: test
test:
npm test
.PHONY: build
build:
npm run build
# Release package with specified version MAJOR.MINOR.PATCH
.PHONY: release
release:
npm version $(VERSION) -m $(RELEASE_MESSAGE)
git push && git push --tags
# Release package with bumped major version
.PHONY: release-major
release-major:
npm version major -m $(RELEASE_MESSAGE)
git push && git push --tags
# Release package with bumped minor version
.PHONY: release-minor
release-minor:
npm version minor -m $(RELEASE_MESSAGE)
git push && git push --tags
# Release package with bumped patch version
.PHONY: release-patch
release-patch:
npm version patch -m $(RELEASE_MESSAGE)
git push && git push --tags
.PHONY: clean
clean:
rm -rf node_modules .rpt2_cache dist
default: build