-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (23 loc) · 820 Bytes
/
Makefile
File metadata and controls
28 lines (23 loc) · 820 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
.PHONY: build bump-patch bump-minor bump-major version
# Build the application
build:
@npm run build
@npm run package:mac
# Show current version
version:
@echo "Current version: $$(node -p "require('./package.json').version")"
# Bump patch version (1.0.0 -> 1.0.1)
bump-patch:
@echo "Bumping patch version..."
@npm version patch --no-git-tag-version
@echo "New version: $$(node -p "require('./package.json').version")"
# Bump minor version (1.0.0 -> 1.1.0)
bump-minor:
@echo "Bumping minor version..."
@npm version minor --no-git-tag-version
@echo "New version: $$(node -p "require('./package.json').version")"
# Bump major version (1.0.0 -> 2.0.0)
bump-major:
@echo "Bumping major version..."
@npm version major --no-git-tag-version
@echo "New version: $$(node -p "require('./package.json').version")"