summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Early <alexander.early@gmail.com>2015-06-27 21:24:03 -0700
committerAlexander Early <alexander.early@gmail.com>2015-06-27 21:24:03 -0700
commit3b75568997f8b6e229dddb545d456aefd3e2d33d (patch)
tree6814d6ce2c10f0296b0684ba593186051af5fdc3
parentabc0639990af8dc213a7d87f3c71451796b342b7 (diff)
parentbd9e6da4d2263976c23d62c402d1111051a381c2 (diff)
downloadasync-3b75568997f8b6e229dddb545d456aefd3e2d33d.tar.gz
Merge pull request #805 from megawac/building
Setup make publish script
-rw-r--r--.gitignore1
-rw-r--r--Makefile8
-rw-r--r--package.json3
3 files changed, 11 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 82b59ef..9134974 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@ dist
perf/versions
nyc_output
coverage
+*.log
diff --git a/Makefile b/Makefile
index 4356239..7299d1d 100644
--- a/Makefile
+++ b/Makefile
@@ -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
@@ -22,3 +23,10 @@ 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
+ ./support/sync-package-managers.js
+ git add --force dist
+ @$(XYZ) --increment $(@:release-%=%)
diff --git a/package.json b/package.json
index f6018ba..fb4b581 100644
--- a/package.json
+++ b/package.json
@@ -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": {
@@ -59,4 +60,4 @@
"tests"
]
}
-} \ No newline at end of file
+}