-
-
Notifications
You must be signed in to change notification settings - Fork 197
Add template prompt for tns create #1498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
+1 |
This comment was marked as abuse.
This comment was marked as abuse.
👍 BUT with a caveat. I don't think Angular 2 should be a lone template. All of the listed templates should be available as Angular 2 flavors with something like a |
Just to throw a simpler idea out there, we could simply add on to the informational message we already spit out with From: To: |
👍 for |
Maybe we can list all available templates when you call |
Since we’re about to release a new suite of starting templates, I think this feature is somewhat essential to ensure that our users find these templates we’re putting out there. Here’s my more up-to-date suggestion for how this could work.
We could also consider breaking that up into two separate questions—aka ask JS vs. TS vs. ng first, then ask master/detail vs. tabs vs. drawer next—although I think that might be a bit much. Regardless though I think we need something like this to expose all the new templates we now have. |
@tjvantoll I think the idea to provide the user with options about what template to use is great, and I also believe there needs to be a separation between js and ts templates. Having said that, I believe there's no need for further separation like: master/detail vs. tabs vs drawer next. |
@Plamen5kov I do worry that there are a whole ton of options now, and the CLI repo is probably not the greatest place for this list to live for maintenance purposes. Way earlier in this thread I suggested that we use a simple message, and we could still go with that approach. Something like...
Project MyApp was successfully created using the JavaScript—Blank template. Use With this approach we could create a big list of the templates on the docs, which would be a heck of a lot easier to maintain. cc @sebawita, as I know he wanted to be involved in how we document these new templates. |
I am actually thinking of creating a custom CLI extension (just as a temporary solution) that would let us search and create the templates :)
|
Closing in favor of #3829 🙂 |
Now that we have a lot of templates available I think we should do more to expose them. The
--template
option is great but it’s somewhat hidden, and I don’t think people will find most of the templates we have out there.I propose that we add a prompt to
tns create
that asks which template you’d like to start with if you don’t provide the--template
option. Something like this:Thoughts?
The text was updated successfully, but these errors were encountered: