{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/374","labels_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/374/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/374/comments","events_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/374/events","html_url":"https://github.com/NativeScript/nativescript-cli/issues/374","id":64229596,"number":374,"title":"\"Choose-template\" functionality","user":{"login":"ErjanGavalji","id":84975,"avatar_url":"https://avatars.githubusercontent.com/u/84975?v=3","gravatar_id":"","url":"https://api.github.com/users/ErjanGavalji","html_url":"https://github.com/ErjanGavalji","followers_url":"https://api.github.com/users/ErjanGavalji/followers","following_url":"https://api.github.com/users/ErjanGavalji/following{/other_user}","gists_url":"https://api.github.com/users/ErjanGavalji/gists{/gist_id}","starred_url":"https://api.github.com/users/ErjanGavalji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ErjanGavalji/subscriptions","organizations_url":"https://api.github.com/users/ErjanGavalji/orgs","repos_url":"https://api.github.com/users/ErjanGavalji/repos","events_url":"https://api.github.com/users/ErjanGavalji/events{/privacy}","received_events_url":"https://api.github.com/users/ErjanGavalji/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NativeScript/nativescript-cli/labels/2%20-%20Ready%20For%20Test","name":"2 - Ready For Test","color":"bfe5bf"},{"url":"https://api.github.com/repos/NativeScript/nativescript-cli/labels/feature","name":"feature","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"rosen-vladimirov","id":8351653,"avatar_url":"https://avatars.githubusercontent.com/u/8351653?v=3","gravatar_id":"","url":"https://api.github.com/users/rosen-vladimirov","html_url":"https://github.com/rosen-vladimirov","followers_url":"https://api.github.com/users/rosen-vladimirov/followers","following_url":"https://api.github.com/users/rosen-vladimirov/following{/other_user}","gists_url":"https://api.github.com/users/rosen-vladimirov/gists{/gist_id}","starred_url":"https://api.github.com/users/rosen-vladimirov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rosen-vladimirov/subscriptions","organizations_url":"https://api.github.com/users/rosen-vladimirov/orgs","repos_url":"https://api.github.com/users/rosen-vladimirov/repos","events_url":"https://api.github.com/users/rosen-vladimirov/events{/privacy}","received_events_url":"https://api.github.com/users/rosen-vladimirov/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/NativeScript/nativescript-cli/milestones/27","html_url":"https://github.com/NativeScript/nativescript-cli/milestones/1.6.0%20(Under%20consideration)","labels_url":"https://api.github.com/repos/NativeScript/nativescript-cli/milestones/27/labels","id":1338575,"number":27,"title":"1.6.0 (Under consideration)","description":"","creator":{"login":"teobugslayer","id":5443453,"avatar_url":"https://avatars.githubusercontent.com/u/5443453?v=3","gravatar_id":"","url":"https://api.github.com/users/teobugslayer","html_url":"https://github.com/teobugslayer","followers_url":"https://api.github.com/users/teobugslayer/followers","following_url":"https://api.github.com/users/teobugslayer/following{/other_user}","gists_url":"https://api.github.com/users/teobugslayer/gists{/gist_id}","starred_url":"https://api.github.com/users/teobugslayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teobugslayer/subscriptions","organizations_url":"https://api.github.com/users/teobugslayer/orgs","repos_url":"https://api.github.com/users/teobugslayer/repos","events_url":"https://api.github.com/users/teobugslayer/events{/privacy}","received_events_url":"https://api.github.com/users/teobugslayer/received_events","type":"User","site_admin":false},"open_issues":41,"closed_issues":4,"state":"open","created_at":"2015-10-05T16:14:56Z","updated_at":"2015-12-14T14:11:27Z","due_on":"2016-02-16T22:00:00Z","closed_at":null},"comments":9,"created_at":"2015-03-25T09:46:39Z","updated_at":"2015-12-16T22:12:11Z","closed_at":null,"body":"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.\r\n\r\nAn additional parameter to the `tns create` call can be added, e.g. `--template`. If that provided, no question will get asked.\r\n\r\nA new verb, listing the available templates should be added as well.\r\n\r\nrelated to #372 and #254"},"comment":{"url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/comments/165269293","html_url":"https://github.com/NativeScript/nativescript-cli/issues/374#issuecomment-165269293","issue_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/374","id":165269293,"user":{"login":"rosen-vladimirov","id":8351653,"avatar_url":"https://avatars.githubusercontent.com/u/8351653?v=3","gravatar_id":"","url":"https://api.github.com/users/rosen-vladimirov","html_url":"https://github.com/rosen-vladimirov","followers_url":"https://api.github.com/users/rosen-vladimirov/followers","following_url":"https://api.github.com/users/rosen-vladimirov/following{/other_user}","gists_url":"https://api.github.com/users/rosen-vladimirov/gists{/gist_id}","starred_url":"https://api.github.com/users/rosen-vladimirov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rosen-vladimirov/subscriptions","organizations_url":"https://api.github.com/users/rosen-vladimirov/orgs","repos_url":"https://api.github.com/users/rosen-vladimirov/repos","events_url":"https://api.github.com/users/rosen-vladimirov/events{/privacy}","received_events_url":"https://api.github.com/users/rosen-vladimirov/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T22:12:11Z","updated_at":"2015-12-16T22:12:11Z","body":"Ok, this is already merged in master. The usage details are described below:\r\n\r\nThe value for `--template` can be anything that you can `npm install`. For example valid calls are:\r\n* `tns create app1 --template tns-template-hello-world`\r\n* `tns create app1 --template https://github.com/NativeScript/template-hello-world-ts/tarball/master`\r\n* `tns create app1 --template ../myTemplate`\r\n* `tns create app1 --template https://github.com/NativeScript/template-hello-world-ts.git`\r\n* `tns create app1 --template https://github.com/NativeScript/template-hello-world-ts.git#master`\r\n\r\nIn case you use:\r\n`tns create app1 --template typescript` or `tns create app1 --template tsc`, CLI will try to install `tns-template-hello-world-ts` template.\r\nIn case you use `tns create app1 --template typescript@1.2.0` we will install version 1.2.0 of `tns-template-hello-world-ts`.\r\n\r\nWhen a custom template is used, CLI will extend its App_Resources with the ones from default template in case any of them is missing."}}