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

add command uninstall:npm #3593

Merged
merged 2 commits into from
Mar 23, 2015
Merged

add command uninstall:npm #3593

merged 2 commits into from
Mar 23, 2015

Conversation

kellyselden
Copy link
Member

Implementation of #3582. Left out bower because of the deprecation. Basically a port of ember install:npm.

easy port of `ember install:npm`
@stefanpenner
Copy link
Contributor

Awesome!

so uninstall remove from devDependencies by default, what about add-ons in dependencies

// misplaced console.log
this.disableLogger();

this.npm.load(npmOptions, function(err) {
Copy link
Contributor

Choose a reason for hiding this comment

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

can we use Promise.denodeify for this node-back?

@kellyselden
Copy link
Member Author

@stefanpenner I made changes based on your code review. install and uninstall now use denodify and print packages. The package printing mimics npm's install and uninstall output.

ember install:npm moment lodash

moment@2.9.0 node_modules\moment
lodash@3.5.0 node_modules\lodash
Installed packages for tooling via npm.

ember uninstall:npm moment lodash

unbuild moment
unbuild lodash
Uninstalled packages for tooling via npm.

@stefanpenner
Copy link
Contributor

awesome, thanks @kellyselden

stefanpenner added a commit that referenced this pull request Mar 23, 2015
@stefanpenner stefanpenner merged commit b7041ba into ember-cli:master Mar 23, 2015
@kellyselden kellyselden deleted the command-npm-uninstall branch March 23, 2015 17:16
.finally(this.finally.bind(this))
.then(this.announceCompletion.bind(this));
},

announceCompletion: function() {
announceCompletion: function(data) {
this.printPackageNames(data);
Copy link
Contributor

Choose a reason for hiding this comment

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

this isn't optimal during a fresh install or `init see #3616

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.

None yet

2 participants