Skip to content

Commit ef51441

Browse files
committed
release 0.0.2
1 parent 88f9ae3 commit ef51441

3 files changed

Lines changed: 42 additions & 0 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
lib
2+
*.tgz
3+

Makefile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
test: coffee-dep js
2+
@find test -name '*_test.coffee' | xargs -n 1 -t coffee
3+
4+
dev: js
5+
@coffee -wc --bare -o lib src/
6+
7+
VERSION = $(shell coffee src/npm-version.coffee)
8+
release: npm-dep js
9+
git commit --allow-empty -a -m "release $(VERSION)"
10+
git tag v$(VERSION)
11+
git push origin master
12+
git push origin v$(VERSION)
13+
@make remove-js
14+
15+
publish: npm-dep js
16+
npm publish
17+
18+
install: npm-dep js
19+
npm install
20+
@make remove-js
21+
22+
js: coffee-dep
23+
@coffee -c --bare -o lib src/
24+
25+
remove-js:
26+
@rm -fr lib/
27+
28+
npm-dep:
29+
@test `which npm` || echo 'You need npm to do npm install... makes sense?'
30+
31+
coffee-dep:
32+
@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`.'
33+
34+
.PHONY: all
35+

src/npm-version.coffee

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Fs = require 'fs'
2+
json = Fs.readFileSync "#{__dirname}/../package.json"
3+
pkg = JSON.parse(json)
4+
console.log pkg.version

0 commit comments

Comments
 (0)