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

[ENHANCEMENT] Open android project command #14 #80

Merged
merged 3 commits into from
Oct 23, 2014
Merged

[ENHANCEMENT] Open android project command #14 #80

merged 3 commits into from
Oct 23, 2014

Conversation

billybonks
Copy link
Contributor

No description provided.

projectPath = path.join(project.root, 'cordova', 'platforms/ios/*.xcodeproj');
} else if (platform === 'android') {
projectPath = path.join(project.root, 'cordova', 'platforms/android/.project');
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you provide an else here that throws an error informing the user that the platform they specified isn't supported? Rather than throwing, if you reject with an error it should propagate up and be displayed to the user. Please also add a test for that

@billybonks
Copy link
Contributor Author

so i cant "reject", since the promise variables aren't defined in the command. But i can throw Error("Unsupported platform"), but when i do that it doesn't enter the assert block in the test. And it displays the error in terminal with a stack trace

@jakecraige
Copy link
Contributor

@billybonks I just created a PR to your branch with some changes. Mostly more testing, but also this promise thing. If you merge that then I think this g2g

per platform testing of open command and reject unsupported platform
jakecraige added a commit that referenced this pull request Oct 23, 2014
[ENHANCEMENT] Open android project command #14
@jakecraige jakecraige merged commit cd64b17 into poetic:master Oct 23, 2014
@billybonks
Copy link
Contributor Author

👍

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.

2 participants