Skip to content
This repository has been archived by the owner on Jun 23, 2018. It is now read-only.

redirect test.html #89

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Cakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down