Skip to content

Commit

Permalink
Merge pull request #59 from jackfranklin/master
Browse files Browse the repository at this point in the history
Proxy all args through to elm-test
  • Loading branch information
halfzebra authored Nov 20, 2016
2 parents 6dcf7b7 + 1e80939 commit ab3c449
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Empty file modified bin/create-elm-app-cli.js
100644 → 100755
Empty file.
11 changes: 10 additions & 1 deletion bin/elm-app-cli.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,18 @@ switch (script) {
break;

case 'test': {
let args = [];
Object.keys(argv || {}).forEach(function(key) {
if (key !== '_' && key !== 'compiler') {
args = args.concat([`--${key}`, argv[key]]);
}
});

args = args.concat(['--compiler', path.normalize(executablePaths['elm-make'])]);

const cp = spawn.sync(
path.resolve(__dirname, '..', 'node_modules/elm-test/bin/elm-test'),
[ '--compiler', path.normalize(executablePaths['elm-make']) ],
args,
{ stdio: 'inherit' }
);

Expand Down

0 comments on commit ab3c449

Please sign in to comment.