Open marshall007 opened 5 years ago
Yeah I would like to have an app generator. I really like create-react-app
.
The cli's app generator could do this. Right now it's giving the user a choice to clone an app from the examples package, but maybe it'd be better to remove the multiple choice and clone a fully configured cdn app instead.
To be clear it's not cloning as in git clone
, just copying the directory structure from the examples package to the target directory.
The recommended setup process is rather unconventional and difficult to recall without referencing the README. I think a better approach would be for the
fly
CLI to have a built in generator replicating the project structure in the referenced gist.Setup might then look something like:
If the user chose not to "eject" their fly app configuration into code upon initial setup, that can still be done later at anytime (prior art: Angular's
ng eject
):Another option, upon ejecting the config, would be to store fly-related configuration in the
package.json
and eliminate.fly.yml
entirely. As an example,babel
allows you to do this in place of a.babelrc.js
). Would be nice because things likename
could be shared between the two.