compile-testcases script

This commit is contained in:
mdgriffith 2020-07-25 10:30:51 -04:00
parent 1fd0880169
commit d5de865ed4

View File

@ -0,0 +1,13 @@
import { compile } from 'node-elm-compiler';
// - Compile examples in `testcases/*` folder as js
// Run whatever transformations we want on them, saving steps as `elm.{transformation}.js`
compile(['Main.elm'], {
output: 'output/elm.js',
cwd: 'testcases/simple',
});
compile(['Main.elm'], {
output: 'output/elm.opt.js',
cwd: 'testcases/simple',
optimize: true,
});