Skip to content

Commit

Permalink
release 0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
nandub committed Nov 27, 2011
1 parent 88f9ae3 commit ef51441
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
lib
*.tgz

35 changes: 35 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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

4 changes: 4 additions & 0 deletions src/npm-version.coffee
Original file line number Diff line number Diff line change
@@ -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.