Skip to content

Commit

Permalink
Make outputDir configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert-Frampton authored and jbalsas committed Mar 27, 2017
1 parent 44dba5d commit 028f5ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
};
2 changes: 1 addition & 1 deletion lib/pipelines/compileSoy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()});
Expand Down

0 comments on commit 028f5ac

Please sign in to comment.