Permalink
Browse files

simplify our build step

  • Loading branch information...
addisonj committed Jun 20, 2012
1 parent 4b42240 commit 92a600a324c83703c5131cc87f2c4644b40adca8
Showing with 437 additions and 8 deletions.
  1. +0 −1 .gitignore
  2. +10 −0 bin/gogogo.js
  3. +4 −5 gogogo.coffee → index.coffee
  4. +177 −0 index.js
  5. +77 −0 lib/MainConfig.js
  6. +166 −0 lib/Service.js
  7. +3 −2 package.json
View
@@ -1,4 +1,3 @@
.DS_Store
node_modules
-gogogo.js
*.log
View
@@ -0,0 +1,10 @@
+#!/usr/bin/env node
+
+var fs = require("fs")
+var path = require('path')
+var root = path.join(path.dirname(fs.realpathSync(__filename)), '../')
+
+var gogogo = require(root + "/index")
+
+// kick it off!
+gogogo.parse(process.argv)
@@ -16,12 +16,11 @@ VERSION = "0.3.1"
fs = require 'fs'
path = require 'path'
-root = path.dirname fs.realpathSync(__filename)
program = require 'commander'
-MainConfig = require root + "lib/MainConfig"
-Service = require root + "lib/Service"
+MainConfig = require "./lib/MainConfig"
+Service = require "./lib/Service"
program
.version(VERSION)
@@ -177,5 +176,5 @@ finish = (err) ->
process.exit 1
console.log "OK"
-# RUN THE THING
-program.parse(process.argv)
+# just export our program object
+module.exports = program
View
177 index.js

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 92a600a

Please sign in to comment.