spark-to-js
v1.3.2
Published
Convert Spark Templates to JS
Downloads
21
Readme
spark-to-js
Search Template Generator. Convert Spark Templates to JS
On Windows
You'll need msbuild installed and in your path. Installing Visual Studio does this for you.
On a Mac/Linux
You'll need to install mono and xbuild to use this project.
Installing
Assuming you have the correct tools installed, you can install via npm:
npm install opentable/spark-to-js
Run the built executable on a Mac/Linux
mono node_modules/spark-to-js/bin/TemplateGenerator.exe
Run the built executable on Windows
node_modules/spark-to-js/bin/TemplateGenerator.exe PATH_TO_SPARK_VIEWS DESTINATION_PATH
Options
Optionally, you can pass the --newer flag, and only Spark templates that have been changed since the last instance will be built.
TemplateGenerator.exe PATH_TO_SPARK_VIEWS DESTINATION_PATH --newer