From ac2a5cc5eaf87d9c37da38bca8448938d9ad0867 Mon Sep 17 00:00:00 2001 From: zwhitchcox Date: Tue, 17 Feb 2015 21:11:26 -0500 Subject: [PATCH] redirect test.html point test.html to build/engines instead of just engines, because it is in the project root Fixes #87 --- Cakefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Cakefile b/Cakefile index ab9aa32..b14df66 100644 --- a/Cakefile +++ b/Cakefile @@ -121,10 +121,13 @@ minify = (src, dest, minifier, callback) -> fs.writeFileSync dest, minified if callback then callback() +# Writes the specified languages list to languages.js # Writes the specified languages list to languages.js buildLanguagesList = (langs) -> + langs = JSON.stringify langs + langs = langs.replace /engines/g, 'build/engines' console.log 'Building languages list.' - langs_js = "JSREPL.prototype.Languages.prototype=#{JSON.stringify langs}" + langs_js = "JSREPL.prototype.Languages.prototype="+langs fs.writeFileSync 'languages.js', langs_js # Watches a file for changes. Calls the callback immediately when first run.