cypress-8.x-1.x-dev/src/NpmProjectManagerInterface.php
src/NpmProjectManagerInterface.php
<?php
namespace Drupal\cypress;
/**
* Local node project management.
*
* Ensure initialisation and dependency versions of a local package.
*/
interface NpmProjectManagerInterface {
/**
* Ensure that the package has been initialised.
*
* @return void
*/
public function ensureInitiated();
/**
* Merge in another package.json file.
*
* Dependencies will be combined and checked for conflicts. All other content
* will be simply deeply merged.
*
* @param string $file
* The full path to the file.
*
* @return void
*/
public function merge($file);
/**
* Ensure a package is installed in a given version.
*
* @param string $package
* The npm package name.
* @param string $version
* The version string. Only strict versions supported.
*
* @return void
*/
public function ensurePackageVersion($package, $version);
}
