guida-lang / compiler

Guida is a functional programming language that builds upon the solid foundation of Elm, offering backward compatibility with all existing Elm 0.19.1 projects
https://guida-lang.org
Other
40 stars 2 forks source link

introduce `--optimize` flag on build #36

Open decioferreira opened 3 weeks ago

decioferreira commented 3 weeks ago

Currently the generated code does not run with the --optimize flag, we need to add it.

This can be found on lib/guida.js:

try {
  childProcess.execSync(
    `elm make src/Terminal/Main.elm --output ./bin/guida.js`
  );
} catch (e) {
  console.error(e);
  process.exit(255);
}