Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade npub #14

Merged
merged 1 commit into from
Dec 9, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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