mirror of
https://github.com/mdgriffith/elm-optimize-level-2.git
synced 2024-12-01 19:35:08 +03:00
compile-testcases script
This commit is contained in:
parent
1fd0880169
commit
d5de865ed4
13
scripts/compile-testcases.ts
Normal file
13
scripts/compile-testcases.ts
Normal 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,
|
||||||
|
});
|
Loading…
Reference in New Issue
Block a user