Content-Length: 302806 | pFad | https://github.com/NativeScript/nativescript-cli/pull/2461#event-945998489

F5 Plamen5kov/remove obsolete code by Plamen5kov · Pull Request #2461 · NativeScript/nativescript-cli · GitHub
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

Plamen5kov/remove obsolete code #2461

Merged
merged 3 commits into from
Feb 2, 2017
Merged

Conversation

Plamen5kov
Copy link
Contributor

@Plamen5kov Plamen5kov commented Jan 30, 2017

  • refactored create project functionality
  • removed --tns-modules-version
  • removed --copy-from
  • removed --link-to
  • prepare template now expects template name will never be undefined

ping: @rosen-vladimirov

_EDIT: Related to: #2362 #2357

refactored create project functionality
removed --copy-from option, removed --tns-modules-version
removed --copy-from and --link-to options
prepare template now expects template name will never be undefined
Copy link
Contributor

@rosen-vladimirov rosen-vladimirov left a comment

Choose a reason for hiding this comment

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

After handling comments.

Really nice work!

@@ -27,7 +27,7 @@ export class NpmInstallationManager implements INpmInstallationManager {
let cliVersionRange = `~${this.$staticConfig.version}`;
let latestVersion = await this.getLatestVersion(packageName);
if (semver.satisfies(latestVersion, cliVersionRange)) {
return latestVersion;
return Promise.resolve(latestVersion);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this changed? When you mark method with async keyword, the returned value is always wrapped in Promise.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

didn't know that, will revert it to previous state

}
let templatePath = await this.$projectTemplatesService.prepareTemplate(selectedTemplate, projectDir);
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe all of these operations should be in the try-catch block below.

@dtopuzov
Copy link
Contributor

dtopuzov commented Feb 2, 2017

👍 We will fix the test when the PR is merged in master

@Plamen5kov Plamen5kov merged commit 4f19063 into master Feb 2, 2017
@Plamen5kov Plamen5kov deleted the plamen5kov/remove_obsolete_code branch February 6, 2017 12:36
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.

3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/NativeScript/nativescript-cli/pull/2461#event-945998489

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy