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

[DX-185] Removed NPM as dependency #686

Merged
merged 2 commits into from
Oct 3, 2017
Merged

[DX-185] Removed NPM as dependency #686

merged 2 commits into from
Oct 3, 2017

Conversation

matteofigus
Copy link
Member

@matteofigus matteofigus commented Oct 3, 2017

Closes #593, #622

Copy link
Contributor

@nickbalestra nickbalestra left a comment

Choose a reason for hiding this comment

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

👍 I see some tests are failing, I'll merge it when all goes green

};

const executeCommand = (options, callback) => {
const cmd = spawn('npm', options.command, {
Copy link
Contributor

Choose a reason for hiding this comment

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

Cool here we could hook with yarn support easily in the future

cmd.on('error', () => callback('error'));
cmd.on('close', code => {
const err = code !== 0 ? code : null;
executeCommand(cmdOptions, err =>
Copy link
Contributor

Choose a reason for hiding this comment

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

That seems like a lot of duplication just to handle a single vs multiple deps install, coudln't we make into a single method?

Copy link
Contributor

@nickbalestra nickbalestra left a comment

Choose a reason for hiding this comment

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

All good, a small question, everything else lgtm

@nickbalestra nickbalestra merged commit 51fa02c into master Oct 3, 2017
@nickbalestra nickbalestra deleted the npm branch October 3, 2017 14:44
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