Skip to content

Add help for --template option #1353

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

Merged
merged 3 commits into from
Dec 17, 2015
Merged

Conversation

rosen-vladimirov
Copy link
Contributor

Add help for --template option

@rosen-vladimirov
Copy link
Contributor Author

ping @N3ll , @ikoevska , @vchimev

@ns-bot
Copy link

ns-bot commented Dec 15, 2015

Test PASSed.

* `--copy-from` - Specifies a directory which contains an existing NativeScript project. If not set, the NativeScript CLI creates the project from the default hello-world template.
* `--template` - Sets the source template for the project. The value can be anything that you can `npm install` - npm package, local path, .tgz, GitHub URL. The package will be used as `app` directory of the new application.
<% if(isHtml) { %>
If `--template typescript` or `--template tsc` is specified, the default TypeScript template (`tns-template-hello-world-tsc`) will be used.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 just tns-template-hello-world-tsc

Add help for --template option
@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/help-for-template-option branch from 4a71c8d to 31a235f Compare December 16, 2015 07:39
@ns-bot
Copy link

ns-bot commented Dec 16, 2015

Test PASSed.

* `--copy-from` - Specifies a directory which contains an existing NativeScript project. If not set, the NativeScript CLI creates the project from the default hello-world template.
* `--template` - Sets the source template for the project. The value can be anything that you can `npm install` - npm package, local path, .tgz, GitHub URL. The package will be used as `app` directory of the new application.
<% if(isHtml) { %>
If `--template typescript` or `--template tsc` is specified, the default TypeScript template (`tns-template-hello-world-ts`) will be used.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should present this in the CLI help as well and not limit it to the HTML one.

@ikoevska
Copy link
Contributor

ping @rosen-vladimirov

For projects that target iOS, you can use uppercase or lowercase letters, numbers, and hyphens.<% } %>
* `<App ID>` is the application identifier for your project. It must be a domain name in reverse and must meet the requirements of all platforms that you want to target. If not specified, the application identifier is set to `org.nativescript.<App name>` <% if(isConsole) { %>For more information about the `<App ID>` requirements, run `$ tns help create`<% } %><% if(isHtml) { %>For projects that target Android, you can use uppercase or lowercase letters, numbers, and underscores in the strings of the reversed domain name, separated by a dot. Strings must be separated by a dot and must start with a letter. For example: `com.nativescript.My_Andro1d_App`
For projects that target iOS, you can use uppercase or lowercase letters, numbers, and hyphens in the strings of the reversed domain name. Strings must be separated by a dot. For example: `com.nativescript.My-i0s-App`.
* `<Template>` is a valid npm package which you want to use as template for your app. You can specify the package by name in the npm registry or by local path or GitHub URL to a directory or .tar.gz containing a package.json file. The contents of the package are be copied in the `app` directory of your project.<% } %>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are be copied does not sound correct to me

@ns-bot
Copy link

ns-bot commented Dec 17, 2015

Test PASSed.

@rosen-vladimirov
Copy link
Contributor Author

👍 after fixing the comment :)

@ns-bot
Copy link

ns-bot commented Dec 17, 2015

Test PASSed.

ikoevska added a commit that referenced this pull request Dec 17, 2015
…te-option

Add help for --template option
@ikoevska ikoevska merged commit cfaa1a8 into master Dec 17, 2015
@ikoevska ikoevska deleted the vladimirov/help-for-template-option branch December 17, 2015 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants