Note: This is the migration API reference for FAKE 5. The new (modularized) API documentation can be found here. If the API is already migrated you can check here if exists in a module. More information regarding the migration can be found here

OBSOLETE

FAKE0001 Use the Fake.JavaScript.Npm module instead

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.