Permalink
Browse files

Added project config and build script.

Signed-off-by: Diwank Singh Tomer <diwank.singh@gmail.com>
  • Loading branch information...
1 parent 2a9e7f7 commit bc1562f7174fb789d2db39fb6821da5d455290c0 @creatorrr committed Mar 28, 2013
Showing with 42 additions and 0 deletions.
  1. +18 −0 Cakefile
  2. +24 −0 package.json
View
18 Cakefile
@@ -0,0 +1,18 @@
+fs = require 'fs'
+
+{print} = require 'sys'
+{spawn} = require 'child_process'
+
+build = (callback, opts...) ->
+ options = ['-c', '*.coffee']
+ options.unshift opts... if opts
+ coffee = spawn 'coffee', options
+ coffee.stderr.on 'data', (data) ->
+ process.stderr.write data.toString()
+ coffee.stdout.on 'data', (data) ->
+ print data.toString()
+ coffee.on 'exit', (code) ->
+ callback?() if code is 0
+
+task 'build', 'Build .coffee files.', build
+task 'watch', 'Watch and build .coffee files.', -> build null, '-w'
View
24 package.json
@@ -0,0 +1,24 @@
+{
+ "name": "hubot-rdio",
+ "version": "0.1.0",
+ "description": "Rdio controller for hubot.",
+ "main": "index.js",
+ "scripts": {
+ "prepublish": "cake build",
+ "test": "echo \"Error: no test specified\" && exit 1"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/creatorrr/hubot-rdio"
+ },
+ "dependencies": {
+ "hubot.io": "0.1.x"
+ },
+ "keywords": [
+ "hubot",
+ "rdio",
+ "socket.io"
+ ],
+ "author": "creatorrr",
+ "license": "BSD"
+}

0 comments on commit bc1562f

Please sign in to comment.