-
-
Notifications
You must be signed in to change notification settings - Fork 197
"Choose-template" functionality #374
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
Great! IMO the parameter should be |
Really good idea. |
besides, --template is shorter to write (for us poor souls without command line auto completion) |
thanks, updating the main post... |
I've started researching the best way to implement this feature and I have one major question: |
Just to add my idea for implementing this - each template will have its own package.json file and when What do you think about this? |
@rosen-vladimirov Yes. The app folder ONLY should be considered as a template. It should not include the And yes, I find the idea in your second comment perfect :) |
Yeah, looks good to me too. |
Ok, this is already merged in master. The usage details are described below: The value for
In case you use: When a custom template is used, CLI will extend its App_Resources with the ones from default template in case any of them is missing. |
Has this made it into the CLI yet? 1.5.2 is giving me the following:
|
it is part of 1.6, which will be released later this month. |
Easing the learning of NativeScript can be done by providing various start-templates. Once there are a number of predefined templates available at npmjs.org, the CLI can list these to the user and ask them for a selection upon a
tns create
call.An additional parameter to the
tns create
call can be added, e.g.--template
. If that provided, no question will get asked.A new verb, listing the available templates should be added as well.
related to #372 and #254
The text was updated successfully, but these errors were encountered: