Skip to content

Add platform on all commands #782

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 1 commit into from
Aug 13, 2015

Conversation

rosen-vladimirov
Copy link
Contributor

When you execute tns run <platform>, but you have forgotten to add the platform before that, you go in inconsistent state. Make sure to add the platform for the user when one of the following is executed:

  • tns prepare <platform>
  • tns build <platform>
  • tns run <platform>
  • tns update <platform>@<version> - this will add the specified version in case you have not added the platform before that.
  • tns emulate <platform>

This way we simplify the workflow, now you can just do:

  1. tns create app1
  2. tns run android --path app1
    And the application will run on your attached device.

Resolves #774
Part of the implementation of: #475

@rosen-vladimirov rosen-vladimirov self-assigned this Aug 13, 2015
@rosen-vladimirov rosen-vladimirov added this to the 1.3.0 milestone Aug 13, 2015
@@ -204,7 +205,7 @@ export class PlatformService implements IPlatformService {
public runPlatform(platform: string): IFuture<void> {
return (() => {
platform = platform.toLowerCase();

Copy link
Contributor Author

Choose a reason for hiding this comment

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

😿
I'll remove this change

@ns-bot
Copy link

ns-bot commented Aug 13, 2015

When you execute `tns run <platform>`, but you have forgotten to add the platform before that, you go in inconsistent state. Make sure to add the platform for the user when one of the following is executed:
* `tns prepare <platform>`
* `tns build <platform>`
* `tns run <platform>`
* `tns update <platform>@<version>` - this will add the specified version in case you have not added the platform before that.
* `tns emulate <platform>`

This way we simplify the workflow, now you can just do:
1) `tns create app1`
2) `tns run android --path app1`
And the application will run on your attached device.

Resolves #774
Part of the implementation of: #475
@teobugslayer teobugslayer force-pushed the vladimirov/improve-platform-commands branch from 8331c22 to 9a38ec1 Compare August 13, 2015 13:51
@ns-bot
Copy link

ns-bot commented Aug 13, 2015

@teobugslayer
Copy link
Contributor

Excellent! 👍

rosen-vladimirov added a commit that referenced this pull request Aug 13, 2015
@rosen-vladimirov rosen-vladimirov merged commit 26eaa3e into master Aug 13, 2015
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/improve-platform-commands branch August 13, 2015 14:50
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.

3 participants