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

Copy link
Copy Markdown
Contributor

We need this refactoring in order to reuse code for iOSProjectService

@Fatme

Copy link
Copy Markdown
ContributorAuthor

@ligaz@tailsu

Comment threadlib/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
ContributorAuthor

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

Copy link
Copy Markdown
ContributorAuthor

@tailsu@ligaz

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 threadlib/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

Copy link
Copy Markdown
ContributorAuthor

@tailsu

@tailsu

Copy link
Copy Markdown
Contributor

👍

Sign up for freeto 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

@Fatme@tailsu@ligaz