forked from nandub/hubot-irc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
lib | ||
*.tgz | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |