Skip to content

Commit 868142c

Browse files
Merge pull request #13 from davidchambers/xyz
makefile: add release-* targets
2 parents 488c5b6 + ba69cb6 commit 868142c

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
ISTANBUL = node_modules/.bin/istanbul
22
UGLIFYJS = node_modules/.bin/uglifyjs
3+
XYZ = node_modules/.bin/xyz --message X.Y.Z --tag X.Y.Z
34

45
SRC = base64.js
56
MIN = $(patsubst %.js,%.min.js,$(SRC))
@@ -22,6 +23,15 @@ clean:
2223
rm -f -- $(MIN)
2324

2425

26+
.PHONY: release-major release-minor release-patch
27+
release-major:
28+
$(XYZ) --increment major
29+
release-minor:
30+
$(XYZ) --increment minor
31+
release-patch:
32+
$(XYZ) --increment patch
33+
34+
2535
.PHONY: setup
2636
setup:
2737
npm install

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"coffee-script": "1.7.x",
1717
"istanbul": "0.2.x",
1818
"mocha": "1.18.x",
19-
"uglify-js": "2.4.x"
19+
"uglify-js": "2.4.x",
20+
"xyz": "0.1.x"
2021
}
2122
}

0 commit comments

Comments
 (0)