grunt-closure-soy
0.2.1 • Public • Published Grunt plugin for converting SOY templates into Javascript, using closure-templates.
Getting Started
Install this grunt plugin next to your project's [grunt.js gruntfile][getting_started] with: npm install grunt-closure-soy
Then add this line to your project's grunt.js
gruntfile:
grunt.loadNpmTasks('grunt-closure-soy');
Then specify what files to compress in your config:
grunt.initConfig({
closureSoys: {
all: {
src: './static/template/**/*.soy',
soyToJsJarPath: './closure-library/template/SoyToJsSrcCompiler.jar',
outputPathFormat: '{INPUT_DIRECTORY}/{INPUT_FILE_NAME}.js'
options: {
shouldGenerateJsdoc: true,
shouldProvideRequireSoyNamespaces: true
}
}
}
});
Release History
- 0.1.1 Missing async callback
- 0.1.0 Initial Release
/grunt-closure-soy/
//
Package Sidebar
Install
Weekly Downloads