Skip to content

Commit

Permalink
Merge pull request #14 from groupon/npub
Browse files Browse the repository at this point in the history
Upgrade npub
  • Loading branch information
abloom committed Dec 9, 2014
2 parents 2827999 + 193e2d6 commit 5653ca3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 20 deletions.
24 changes: 6 additions & 18 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,25 +1,13 @@
all: clean setup test check-checkout-clean
.PHONY: all clean setup

build:
@./node_modules/.bin/npub prep
@./node_modules/.bin/coffee -cbo lib src

prepublish:
./node_modules/.bin/npub prep

clean:
rm -rf lib node_modules

test: build
all: clean setup
npm test

release: all
git push --tags origin HEAD:master
npm publish
clean:
rm -rf node_modules

setup:
npm install

# This will fail if there are unstaged changes in the checkout
check-checkout-clean:
git diff --exit-code
release-%: clean setup
./node_modules/.bin/npub publish $(subst release-,,$@)
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
"parser"
],
"scripts": {
"test": "mocha"
"build": "npub prep && coffee -cbo lib src",
"prepublish": "rm -rf lib && npm run build",
"pretest": "npm run build",
"test": "mocha",
"posttest": "npub verify"
},
"author": {
"name": "Jan Krems",
Expand All @@ -17,7 +21,7 @@
"devDependencies": {
"assertive": "^1.4.0",
"mocha": "^2.0.0",
"npub": "0.0.5"
"npub": "~0.5.1"
},
"dependencies": {
"coffee-script": "^1.8.0"
Expand Down

0 comments on commit 5653ca3

Please sign in to comment.