installDependencies function
Installs dependencies for the current Node project
since 0.0.1
Implementation
Future<void> installDependencies(
IShell shell, {
bool installForCi = false,
}) async {
await _whenNodeProject('Install Dependencies', shell, () async {
if (installForCi) {
_log.info('Installing CI Dependencies...');
await shell.run('npm ci');
} else {
_log.info('Installing Dependencies...');
await shell.run('npm install');
}
});
}