Skip to content
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

Simplified creating angular template project #1638

Merged
merged 2 commits into from
Mar 23, 2016

Conversation

TsvetanMilanov
Copy link
Contributor

Added angular and ng values for --template option which will use https://github.com/NativeScript/template-hello-world-ng.
Added --ng option in the create command which is equal to --template ng and --template angular.
Added unit tests.
Fix copying hidden files when creating project.
Implements #1595

Added angular and ng values for --template option which will use https://github.com/NativeScript/template-hello-world-ng.
Added --ng option in the create command which is equal to --template ng and --template angular.
Added unit tests.
Fix copying hidden files when creating project.
@TsvetanMilanov TsvetanMilanov self-assigned this Mar 22, 2016
@TsvetanMilanov TsvetanMilanov added this to the 2.0 milestone Mar 22, 2016
@TsvetanMilanov
Copy link
Contributor Author

ping @ikoevska for the help content

}

if (this.$options.ng) {
this.$options.template = constants.ANGULAR_NAME;
Copy link
Contributor

Choose a reason for hiding this comment

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

instead of setting this.$options.template you can use something like:

let selectedTemplate = this.$options.ng ? constants.ANGULARE_NAME : this.$options.template;
this.$projectService.createProject(args[0], selectedTemplate).wait();

@rosen-vladimirov
Copy link
Contributor

👍

@TsvetanMilanov TsvetanMilanov merged commit 111a986 into master Mar 23, 2016
@TsvetanMilanov TsvetanMilanov deleted the milanov/add-angular-and-ng-template-parameters branch March 23, 2016 16:16
@ikoevska
Copy link
Contributor

@TsvetanMilanov the docs look good. However, I cannot help but wonder why the TypeScript and Angular syntax differ? Shouldn't the template creation be similar? E.g., either both use "--template tsc/ng" or both are "--tsc/--ng"?

@vchimev
Copy link

vchimev commented Mar 29, 2016

@TsvetanMilanov @ikoevska I logged this here: #1650.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants