upgraded handlebars and removed the need for local copy of handlebars.

This commit is contained in:
Ayush Gupta
2012-11-05 08:48:03 +05:30
parent f435ffaa27
commit b05f6f9cb5
167 changed files with 1924 additions and 40695 deletions

View File

@@ -1,9 +1,6 @@
fs = require 'fs'
path = require 'path'
{exec} = require 'child_process'
handlebars = require 'handlebars'
hb = "handlebars"
sourceFiles = [
'SwaggerUi'
@@ -38,7 +35,7 @@ task 'dist', 'Build a distribution', ->
templateContents = new Array remaining = templateFiles.length
for file, index in templateFiles then do (file, index) ->
console.log " : Compiling src/main/template/#{file}"
exec hb + " src/main/template/#{file} -f dist/_#{file}.js", (err, stdout, stderr) ->
exec "handlebars src/main/template/#{file} -f dist/_#{file}.js", (err, stdout, stderr) ->
throw err if err
fs.readFile 'dist/_' + file + '.js', 'utf8', (err, fileContents) ->
throw err if err