Skip to content

Refactor project and platform services#7

Merged
Fatme merged 12 commits into
masterfrom
fatme/refactor-project-service
Jul 24, 2014
Merged

Refactor project and platform services#7
Fatme merged 12 commits into
masterfrom
fatme/refactor-project-service

Conversation

@Fatme

@Fatme Fatme commented Jul 19, 2014

Copy link
Copy Markdown
Contributor

We need this refactoring in order to reuse code for iOSProjectService

@Fatme

Fatme commented Jul 21, 2014

Copy link
Copy Markdown
Contributor Author

@ligaz @tailsu

Comment thread lib/node-package-manager.ts Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

action shouldn't be any. Rather, it should be, let's say, action: (...args: any[]) => void.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

you can simplify the signature for args by using open-ended arguments: ...args: any[]

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.

Agree :) It looks better

@Fatme

Fatme commented Jul 21, 2014

Copy link
Copy Markdown
Contributor Author

@tailsu @ligaz

Comment thread lib/services/android-project-service.ts Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is odd. Isn't options.release a boolean value? Why would it have the value --release ?

Comment thread lib/declarations.ts Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This method can be made private in the implementation. The installSafe method can be renamed to just install, then.

@Fatme

Fatme commented Jul 22, 2014

Copy link
Copy Markdown
Contributor Author

@tailsu

@tailsu

tailsu commented Jul 22, 2014

Copy link
Copy Markdown
Contributor

👍

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