Skip to content

Add platform on all commands#782

Merged
rosen-vladimirov merged 1 commit into
masterfrom
vladimirov/improve-platform-commands
Aug 13, 2015
Merged

Add platform on all commands#782
rosen-vladimirov merged 1 commit into
masterfrom
vladimirov/improve-platform-commands

Conversation

@rosen-vladimirov
Copy link
Copy Markdown
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
Comment thread lib/services/platform-service.ts Outdated
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown

ns-bot commented Aug 13, 2015

@teobugslayer
Copy link
Copy Markdown
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