UNPKG

442 Btext/coffeescriptView Raw
1#!/usr/bin/env coffee
2
3# Error
4console.log 'Command line buildr may not currently work due to this bug: https://github.com/balupton/buildr.npm/issues/8'
5
6# Requires
7cson = require 'cson'
8buildr = require __dirname+'/../lib/buildr.coffee'
9cwd = process.cwd()
10
11# Parse the config file
12cson.parseFile "#{cwd}/buildr.cson", (err,config) ->
13 throw err if err
14 myBuildr = buildr.createInstance(config)
15 myBuildr.process (err) ->
16 throw err if err