diff --git a/lib/options.js b/lib/options.js index 02790cd0..e710c58a 100644 --- a/lib/options.js +++ b/lib/options.js @@ -2,7 +2,8 @@ module.exports = { dest: 'src', + outputDir: '/tmp/metal-tools-soy', skipMetalGeneration: false, - src: 'src/**/*.soy', - soyDeps: 'node_modules/metal*/src/**/*.soy' + soyDeps: 'node_modules/metal*/src/**/*.soy', + src: 'src/**/*.soy' }; diff --git a/lib/pipelines/compileSoy.js b/lib/pipelines/compileSoy.js index 50d2a521..90400387 100644 --- a/lib/pipelines/compileSoy.js +++ b/lib/pipelines/compileSoy.js @@ -199,7 +199,7 @@ function replaceTemplateRequires() { } function runSoyCompiler(files, options, stream, callback) { - var outputDir = '/tmp/metal-tools-soy'; + var outputDir = options.outputDir; var args = buildSoyCompilerArgs(files, outputDir, options.soyDeps); var cp = childProcess.spawn('java', args, {cwd: process.cwd()});