mirror of
https://github.com/status-im/burnchart.git
synced 2025-02-20 22:28:10 +00:00
compiled version worky
This commit is contained in:
parent
45ca2e0a59
commit
8479b6557f
16
Cakefile
16
Cakefile
@ -18,19 +18,11 @@ task "compile", "compile .coffee to .js", (options) ->
|
||||
|
||||
console.log "#{COLORS.BOLD}Compiling#{COLORS.DEFAULT}"
|
||||
|
||||
fs.readFile "paths.yml", "utf8", (err, data) ->
|
||||
if err
|
||||
console.log "#{COLORS.RED}#{err}#{COLORS.DEFAULT}" ; return
|
||||
try
|
||||
#paths = JSON.stringify yaml.load data
|
||||
js = cs.compile fs.readFileSync('burndown.coffee', "utf-8"), bare: "on"
|
||||
write 'js/burndown.js', "(function() {\n#{js}\n}).call(this);"
|
||||
js = cs.compile fs.readFileSync('burndown.coffee', "utf-8"), bare: "on"
|
||||
write 'js/burndown.js', "(function() {\n#{js}\n}).call(this);"
|
||||
|
||||
# We are done.
|
||||
console.log "#{COLORS.GREEN}Done#{COLORS.DEFAULT}"
|
||||
|
||||
catch err
|
||||
console.log "#{COLORS.RED}#{err}#{COLORS.DEFAULT}" ; return
|
||||
# We are done.
|
||||
console.log "#{COLORS.GREEN}Done#{COLORS.DEFAULT}"
|
||||
|
||||
# Append to existing file.
|
||||
write = (path, text, mode = "w") ->
|
||||
|
Loading…
x
Reference in New Issue
Block a user