Skip to content
This repository
Browse code

Add Cakefile index.js and package.json.

  • Loading branch information...
commit 0acbf2781f8e513f4fca2a5bdfb61464bb0c696c 1 parent 21b5e41
Terry authored July 19, 2012
11  Cakefile
... ...
@@ -0,0 +1,11 @@
  1
+{print} = require 'util'
  2
+{spawn} = require 'child_process'
  3
+
  4
+task 'build', 'Build lib/ from src/', ->
  5
+  coffee = spawn 'coffee', ['-c', '-o', 'lib', 'src']
  6
+  coffee.stderr.on 'data', (data) ->
  7
+    process.stderr.write data.toString()
  8
+  coffee.stdout.on 'data', (data) ->
  9
+    print data.toString()
  10
+  coffee.on 'exit', (code) ->
  11
+    callback?() if code is 0
1  index.js
... ...
@@ -0,0 +1 @@
  1
+module.exports = require('./lib/timeago');
16  package.json
... ...
@@ -0,0 +1,16 @@
  1
+{
  2
+  "name": "smart-time-ago",
  3
+  "description": "a simeple lib to update the relative time on your page",
  4
+  "version": "0.0.1",
  5
+  "author": "poshboytl",
  6
+  "licenses":
  7
+    [{
  8
+      "type": "MIT",
  9
+      "url": "https://github.com/pragmaticly/smart-time-ago/blob/master/LICENSE"
  10
+    }],
  11
+  "repository": {
  12
+    "type" : "git",
  13
+    "url": "http://github.com/pragmaticly/smart-time-ago.git"
  14
+  },
  15
+  "main" : "./index.js"
  16
+}

0 notes on commit 0acbf27

Please sign in to comment.
Something went wrong with that request. Please try again.