index.js
function build(outputDir) {
    let exec = require("child_process").exec;
    let elmFile = path.join(argv.src, argv.elmFile);
    let cmd = "elm-make " + elmFile + " --yes --output " + argv.output + "/" + argv.language + ".js";
    console.log(cmd);
    exec(cmd, (err, stdout, stderr) => {
        if(err) {
            console.error(err);
            return;
        }
        console.log(stdout);
    });
}
function build(outputDir) {
    let exec = require("child_process").exec;
    let elmFile = path.join(argv.src, argv.elmFile);
    let cmd = "elm-make " + elmFile + " --yes --output " + argv.output + "/" + argv.language + ".js";
    console.log(cmd);
    exec(cmd, (err, stdout, stderr) => {
        if(err) {
            console.error(err);
            return;
        }
        console.log(stdout);
    });
}
function build ( outputDir ) { let exec = require ( "child_process" ) . exec ; let elmFile = path . join ( argv . src , argv . elmFile ) ; let cmd = "elm-make " + elmFile + " --yes --output " + argv . output + "/" + argv . language + ".js" ; console . log ( cmd ) ; exec ( cmd , ( err , stdout , stderr ) => { if ( err ) { console . error ( err ) ; return ; } console . log ( stdout ) ; } ) ; }
build - Builds the elm app with the current language.

@param  {type} outputDir The directory to which the elm build should be written.
Files will be named according to the current language
build - Builds the elm app with the current language .