Skip to content

Commit

Permalink
Setup publish make task [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
megawac committed Jun 25, 2015
1 parent abc0639 commit a3b3ff3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -3,3 +3,4 @@ dist
perf/versions
nyc_output
coverage
*.log
7 changes: 7 additions & 0 deletions Makefile
Expand Up @@ -3,6 +3,7 @@ CWD := $(shell pwd)
NODEUNIT = "$(CWD)/node_modules/.bin/nodeunit"
UGLIFY = "$(CWD)/node_modules/.bin/uglifyjs"
JSHINT = "$(CWD)/node_modules/.bin/jshint"
XYZ = node_modules/.bin/xyz --repo git@github.com:caolan/async.git

BUILDDIR = dist

Expand All @@ -22,3 +23,9 @@ lint:
$(JSHINT) lib/*.js test/*.js perf/*.js

.PHONY: test lint build all clean


.PHONY: release-major release-minor release-patch
release-major release-minor release-patch: all
git add --force dist
@$(XYZ) --increment $(@:release-%=%)
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -27,6 +27,7 @@
"nodeunit": ">0.0.0",
"nyc": "^2.1.0",
"uglify-js": "~2.4.0",
"xyz": "^0.5.0",
"yargs": "~3.9.1"
},
"jam": {
Expand Down Expand Up @@ -59,4 +60,4 @@
"tests"
]
}
}
}

0 comments on commit a3b3ff3

Please sign in to comment.