Permalink
Browse files

Added package.json and Cakefile for compiling

  • Loading branch information...
1 parent 6c4a37f commit 167958c83ee75667caf025e848c422fd461f2ed2 @mattijs committed Nov 26, 2011
Showing with 28 additions and 0 deletions.
  1. +13 −0 Cakefile
  2. +15 −0 package.json
View
13 Cakefile
@@ -0,0 +1,13 @@
+{exec} = require 'child_process'
+
+option '-o', '--output [DIR]', 'directory for compiled source'
+
+task 'compile', 'Compile node-trakt source to JavaScript', (options) ->
+
+ target = options.output or "#{__dirname}/lib"
+
+ console.log "Compiling node-trakt"
+ console.log " - source: #{__dirname}/src"
+ console.log " - target: #{target}"
+
+ exec "coffee -c -o #{target} #{__dirname}/src"
View
15 package.json
@@ -0,0 +1,15 @@
+{
+ name: "Trakt client",
+ version: "0.0.1",
+ description: "Node module for accessing the Trakt.tv API",
+ keywords: ["client", "api", "trakt"],
+ author: "Mattijs Hoitink <mattijs@monkeyandmachine.com> (http://monkeyandmachine.com)",
+ homepage: "https://github.com/mattijs/node-trakt",
+ repository: {
+ type: "git",
+ url: "http://github.com/mattijs/node-trakt.git"
+ },
+ dependencies: {
+ "coffee-script": "~1.1.2"
+ },
+}

0 comments on commit 167958c

Please sign in to comment.