Note: This API documentation is for FAKE version 4. The migration API documentation can be found here. The API documentation for the new fake 5 modules can be found here

NpmCommand

The list of supported Npm commands.

Union Cases

Union CaseDescription
Custom(string)
Signature: string

Run npm <string>. Can be used for running not implemented commands.

Install(InstallArgs)
Signature: InstallArgs

Run npm install

Run(string)
Signature: string

Run npm run <string>

RunSilent(string)
Signature: string

Run npm run --silent <string>. Suppresses npm error output. See npm:8821.

RunTest(string)
Signature: string

Run npm run --silent <string>. Suppresses npm error output and will raise an FailedTestsException exception after the script execution instead of failing, useful for CI. See npm:8821.

Test
Signature:

Run npm test --silent. Suppresses npm error output and will raise an FailedTestsException exception after the script execution instead of failing, useful for CI. See npm:8821.