Build Tools
Documentation
Not logged in
Elucidata Build Tools
---------------------

Build tools for assembling multiple javascript/coffee/eco scripts
into a single file (leverages stitch), and assembling multiple 
css/less styles into a single file.


Cakefile Example
----------------

  ebt= require 'elucidata-build-tools'

  option '-q', '--quiet', "Minimize output"
  option '-c', '--compress', "Compress output"

  jsPaths = [
    "#{__dirname}/app"
    "#{__dirname}/lib"
  ]

  cssPath = "#{__dirname}/app"

  task 'build', 'build app files', (opts)->
    ebt.say "Building sources:"
    ebt.buildJs "./public/comic-tools.js", jsPaths..., opts
    ebt.buildCss "./public/comic-tools.css", cssPath, opts


  task 'serve', 'development server', (opts)->
    opts.root= "#{__dirname}/public"
    opts.js_uri= '/comics-tools.js'
    opts.js_path= jsPaths
    opts.css_uri= '/comics-tools.css'
    opts.css_path= cssPath

    server = ebt.server.createDevServer opts
    puts "Dev server running at\n\n  http://127.0.0.1:3000"
    server.listen 3000