Eloquent\Composer\NpmBridge\NpmBridge::installForVendors PHP Method

installForVendors() private method

private installForVendors ( $composer )
    private function installForVendors($composer)
    {
        $this->io->write('<info>Installing NPM dependencies for Composer dependencies</info>');
        $packages = $this->vendorFinder->find($composer, $this);
        if (count($packages) > 0) {
            foreach ($packages as $package) {
                $this->io->write(sprintf('<info>Installing NPM dependencies for %s</info>', $package->getPrettyName()));
                $this->client->install($composer->getInstallationManager()->getInstallPath($package), false);
            }
        } else {
            $this->io->write('Nothing to install');
        }
    }