-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3882 from willrax/remove-deprecated-command
Removes bower install command.
- Loading branch information
Showing
2 changed files
with
27 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,21 @@ | ||
'use strict'; | ||
|
||
var Command = require('../models/command'); | ||
var SilentError = require('../errors/silent'); | ||
var Promise = require('../ext/promise'); | ||
|
||
module.exports = Command.extend({ | ||
name: 'install:bower', | ||
description: 'Installs bower packages.', | ||
description: 'Bower package install are now managed by the user.', | ||
works: 'insideProject', | ||
|
||
anonymousOptions: [ | ||
'<package-names...>' | ||
], | ||
|
||
run: function(commandOptions, rawArgs) { | ||
var BowerInstallTask = this.tasks.BowerInstall; | ||
var bowerInstall = new BowerInstallTask({ | ||
ui: this.ui, | ||
analytics: this.analytics, | ||
project: this.project | ||
}); | ||
|
||
return bowerInstall.run({ | ||
packages: rawArgs, | ||
installOptions: { save: true } | ||
}); | ||
run: function() { | ||
var err = 'This command has been deprecated. Please use `bower install '; | ||
err += '<packageName> --save-dev --save-exact` instead.'; | ||
return Promise.reject(new SilentError(err)); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters