Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (25 sloc) 1.225 kb
###
CoffeeScript CakeFile
###
# Load dependencies
# ========================================================================================================================
{ spawn, exec } = require "child_process"
sys = require "util"
fs = require "fs"
util = require "util"
# Define directory path
# ------------------------------------------------------------------------------------------------------------------------
lessdir = "src/public/stylesheets"
cssdir = "public/stylesheets"
# Function for displaying the messages in terminal
# ========================================================================================================================
printData = (process) ->
process.stdout.on 'data', (data) -> sys.print data
process.stderr.on 'data', (data) -> sys.print data
# Task for cake watch
# ========================================================================================================================
task 'watch', 'watch all coffeescript files for changes', ->
# Options for bin/coffee (compile, watch, bare) look for files in src
coffee = spawn("coffee", ["-o", "./", "-cwb", "src/"])
# Calls printData function
printData(coffee)
Jump to Line
Something went wrong with that request. Please try again.