Constructor Summary

Private Constructors
private
NpmTask(options)

Method Summary

Private Methods
private

This method will determine what package manager (npm or yarn) should be used to install the npm dependencies.

private

Exit silently

Private Constructors

lib/tasks/npm-task.js:14

private NpmTask(options)

Parameters:

Name Type Attribute Description
options Object

Private Methods

lib/tasks/npm-task.js:128

private findPackageManager( ): Promise

This method will determine what package manager (npm or yarn) should be used to install the npm dependencies.

Setting this.useYarn to true or false will force the use of yarn or npm respectively.

If this.useYarn is not set we check if yarn.lock exists and if yarn is available and in that case set useYarn to true.

Return:

lib/tasks/build-watch.js:52

private onInterrupt( )

Exit silently