Permalink
Browse files

release 0.0.2

  • Loading branch information...
nandub committed Nov 27, 2011
1 parent 88f9ae3 commit ef51441a5b583b14eb1734f9d4d883d96abf4f00
Showing with 42 additions and 0 deletions.
  1. +3 −0 .gitignore
  2. +35 −0 Makefile
  3. +4 −0 src/npm-version.coffee
View
@@ -0,0 +1,3 @@
lib
*.tgz
View
@@ -0,0 +1,35 @@
test: coffee-dep js
@find test -name '*_test.coffee' | xargs -n 1 -t coffee
dev: js
@coffee -wc --bare -o lib src/
VERSION = $(shell coffee src/npm-version.coffee)
release: npm-dep js
git commit --allow-empty -a -m "release $(VERSION)"
git tag v$(VERSION)
git push origin master
git push origin v$(VERSION)
@make remove-js
publish: npm-dep js
npm publish
install: npm-dep js
npm install
@make remove-js
js: coffee-dep
@coffee -c --bare -o lib src/
remove-js:
@rm -fr lib/
npm-dep:
@test `which npm` || echo 'You need npm to do npm install... makes sense?'
coffee-dep:
@test `which coffee` || echo 'You need to have CoffeeScript in your PATH.\nPlease install it using `brew install coffee-script` or `npm install coffee-script`.'
.PHONY: all
View
@@ -0,0 +1,4 @@
Fs = require 'fs'
json = Fs.readFileSync "#{__dirname}/../package.json"
pkg = JSON.parse(json)
console.log pkg.version

0 comments on commit ef51441

Please sign in to comment.