upgraded handlebars and removed the need for local copy of handlebars.
This commit is contained in:
5
Cakefile
5
Cakefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user