kittoframework/kitto

Pre-compile application on `kitto.new`

davejlong opened this issue · 2 comments

As the CLI is built out more, to lower the barrier of entry, when running mix kitto.new the application should get compiled to make all mix tasks immediately available.

I like the idea, though in order for the dependencies to be compiled they have to be fetched before via: mix deps.get which is currently optional in mix kitto.new.

The best option seems to me to split the currentFetch and install dependencies? [Yn] question in 2 parts:

  • Fetch and install Elixir dependencies? [Yn]
  • Fetch and install JavaScript dependencies? [Yn]

When the user chooses to install Elixir dependencies we can also mix deps.compile to make the mix tasks available.

Another option for building this is to code it into kitto_new instead of Kitto core.