Eloquent\Composer\NpmBridge\NpmBridge::update PHP Method

update() public method

This will update and shrinkwrap the NPM dependencies of the main project. It will also install any NPM dependencies of the main project's Composer dependencies.
public update ( Composer\Composer $composer )
$composer Composer\Composer The main Composer object.
    public function update(Composer $composer)
    {
        $this->io->write('<info>Updating NPM dependencies for root project</info>');
        if ($this->isDependantPackage($composer->getPackage(), true)) {
            $this->client->update();
            $this->client->install(null, true);
            $this->client->shrinkwrap();
        } else {
            $this->io->write('Nothing to update');
        }
        $this->installForVendors($composer);
    }