Add make task for releasing new versions
This commit is contained in:
parent
a98a5de44f
commit
fe931d0b60
10
Makefile
10
Makefile
|
@ -1,8 +1,10 @@
|
|||
BIN := ./node_modules/.bin
|
||||
TEST_FILES := test/support/globals.js $(shell find test/specs -type f -name "*.js")
|
||||
|
||||
VERSION := $(shell node -e "console.log(require('./package.json').version)")
|
||||
|
||||
# Our 'phony' make targets (don't involve any file changes)
|
||||
.PHONY: test bdd lint
|
||||
.PHONY: test bdd lint release
|
||||
|
||||
# Run Mocha, with standard reporter.
|
||||
test:
|
||||
|
@ -15,3 +17,9 @@ bdd:
|
|||
# Run JSHint
|
||||
lint:
|
||||
@$(BIN)/jshint ./lib
|
||||
|
||||
# Cuts/publishes a new release
|
||||
release:
|
||||
@git tag -m "$(VERSION)" v$(VERSION)
|
||||
@git push --tags
|
||||
@npm publish ./
|
||||
|
|
Loading…
Reference in New Issue