Skip to content

Android releated commands - platform add, prepare, build and platform list #6

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 19 commits into from
Jul 17, 2014

Conversation

Fatme
Copy link
Contributor

@Fatme Fatme commented Jul 14, 2014

No description provided.

@Fatme
Copy link
Contributor Author

Fatme commented Jul 14, 2014

@tailsu @ligaz

@Fatme Fatme changed the title "Platform add android" command "Platform add android" and platform list commands Jul 15, 2014
@Fatme Fatme changed the title "Platform add android" and platform list commands "Platform add android" and "platform list" commands Jul 15, 2014
require("./bootstrap");
require("./options");

import errors = require("./common/errors");
errors.installUncaughtExceptionListener();

$injector.register("config", {"CI_LOGGER": false});
$injector.register("config", {"CI_LOGGER": false, PROJECT_FILE_NAME: ".tnsproject", "DEBUG": true});
Copy link
Contributor

Choose a reason for hiding this comment

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

We can't ship with DEBUG: true. I suggest you use an environment variable for the purpose, e.g. set NATIVESCRIPT_DEBUG=true before running tns commands.

@Fatme Fatme changed the title "Platform add android" and "platform list" commands Android releated commands - platform add, prepare, build and platform list Jul 16, 2014
@Fatme
Copy link
Contributor Author

Fatme commented Jul 16, 2014

@tailsu @ligaz

@ligaz
Copy link

ligaz commented Jul 16, 2014

Do we need the -command suffix for the commands file names? They are already in the commands folder 😄

export class PropertiesParser implements IPropertiesParser {
public createEditor(filePath: string) {
var future = new Future<any>();
propertiesParser.createEditor(filePath, (err, data) => {
Copy link

Choose a reason for hiding this comment

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

This pattern seems repeated with the one in NodePackageManager. Consider adding a helper similar to the one in the Q library. https://github.com/kriskowal/q/wiki/API-Reference#qnfbindnodefunc-args

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's a good idea, but I think it would be better to do it in another PR. Agree?

@Fatme
Copy link
Contributor Author

Fatme commented Jul 17, 2014

@ligaz

@tailsu
Copy link
Contributor

tailsu commented Jul 17, 2014

👍

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