Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Handlebars templates watcher for WebStorm 6. Watcher complies Handlebars template file to a JavaScript file on every change.
<?xml version="1.0" encoding="UTF-8"?>
<TaskOptions>
<TaskOptions>
/*
* Compiled .js files are saved into generated '/compiled' folder.
*/
<option name="arguments" value="$FileDir$/$FileName$ -f $FileDir$/compiled/$FileNameWithoutExtension$.js" />
<option name="checkSyntaxErrors" value="false" />
<option name="description" value="Compiles .handlebars, .hbs templates into .js files" />
<option name="exitCodeBehavior" value="ERROR" />
/*
* Compiles all .hadlebars, .hbs and .mustache file types.
*/
<option name="fileExtension" value="handlebars;hbs;mustache" />
<option name="immediateSync" value="true" />
<option name="name" value="Handlebars" />
<option name="output" value="" />
<option name="outputFilters">
<array />
</option>
<option name="outputFromStdout" value="false" />
<option name="passParentEnvs" value="true" />
/*
* Location of your handlebars installation on Mac.
* If Handlebars are installed localy without -g flag, change the location
* of the installation to the local one.
* If on Windows, change the colcation accordingly as well.
*/
<option name="program" value="/usr/local/bin/handlebars" />
<option name="scopeName" value="Project Files" />
<option name="trackOnlyRoot" value="false" />
<option name="workingDir" value="" />
<envs />
</TaskOptions>
</TaskOptions>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment