Initiative to work on a CLI solution
See original GitHub issueHello!
This morning I had a discussion on twitter with @Rich-Harris and a few others about the UX around the degit starter. Although I do think The REPL approach is great to get immediate exposure, we could benefit from a CLI developers can relate to. The degit approach creates a (small) layer that makes people not want to try Svelte (as well as the instructions page listing a few different ways). “create-react-app” -as suggested by Rich- is an “eject” button that spits out a template hiding lots of specifics about the implementation and not providing much control over the initial template. Another user suggested a Vue-like CLI that does allow for some modifications on the original template. This issue aims to address two things:
-
I am starting to work on a CLI tool. I’m not sure which repo I should use to work on it since /svelte-cli is dead. *no problem in using that one though
-
Since the discussion happened on a small corner of twitter, I’d like to extend the discussion to everyone. It makes sense to me (and apparently a few others) to create a tool that newcomers can use to get started with Svelte. That tool can be enhanced to support production-ready projects in the future -unlike the original CLI.
Any help/suggestion is appreciated.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:21
- Comments:31 (15 by maintainers)
Any CLI must leave the config intact. There are a number of benefits to having a visible bundler config that you can learn from and modify without needing to learn yet another plugin API.
I admit that when i tested svelte, i have never heard of word “npx” or “degit” but i had ever play with yarn or npm. i will love a cli for svelte with the simplicity of rails cli and integrated documentation like the elixir cli iex
we can imagine a cli like:
svelte new appname --template=webpack --preprocessor="scss"
orsvelte new appname --template=rollup
or with create keyword like react… . and when you launch the cli you can typeh function
to print doc This is just suggestion.