Skip to content

Commit

Permalink
fix errors in build script
Browse files Browse the repository at this point in the history
  • Loading branch information
anandsahil committed May 8, 2016
1 parent 67cb36b commit ec4352e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Cakefile
Expand Up @@ -66,7 +66,7 @@ template_arguments = (template) ->
if not _templates[template]?
print "Template #{template} isn't configured in `_templates`"
return null
rel = path.relative(path.dirname template, __dirname)
rel = path.relative(path.dirname(template), __dirname)
{scripts, style, args} = _templates[template]
return {
origin: _origin
Expand All @@ -82,7 +82,7 @@ template_arguments = (template) ->
}

# All files to be compiled
_all_files =
_all_files =
templates: []
scripts: [
(path.normalize file for file in common_scripts)...
Expand Down Expand Up @@ -171,7 +171,7 @@ task 'build', "Compile all source files", ->
for file in _all_files.style
if /\.styl$/.test file
translate file
else
else
copy file
for file in _all_files.static
copy file
Expand Down Expand Up @@ -204,7 +204,7 @@ task 'watch-files', "Rebuild files on changes", ->
if file in _all_files.style
if /\.styl$/.test file
translate file
else
else
copy file
if file in _all_files.templates
render file
Expand Down
3 changes: 1 addition & 2 deletions index.jade
@@ -1,4 +1,4 @@
doctype 5
doctype html
html
head
block head
Expand Down Expand Up @@ -31,4 +31,3 @@ html
button#btn-share.btn.btn-danger.disabled Share
div.row-fluid
div#editor.span12

0 comments on commit ec4352e

Please sign in to comment.