Task classes

Concrete classes

Task

Task name for main sourceset

Description

PnpmBuildTask

jseAssemble

Validates and transpiles as needed.

PnpmCacheBinariesTask

jsePnpmCacheBinaries

Explicitly caches pnpm and node binaries.

PnpmCiTask

jseCiInstallPackages

The equivalent of running pnpm ci.

PnpmExecTask

-

The equivalent of running pnpm exec. Primarily used for custom tasks.

PnpmInstallDryRunTask

jseInstallPackagesDryRun

The equivalent of running pnpm install --dry-run.

PnpmInstallTask

jseInstallPackages

The equivalent of running pnpm install.

PnpmPrepareTask

-

Normally associated with a PnpmExecTask and used to individually install packages.

PnpmRunScriptTask

Typically jseRun<ScriptName>, but could have other names if explicitly registered.

Used to run scripts in package.json. Can be dynamically invoked via a rule or explicit tasks can be registered.

PnpmTestTask

jseTest

Equivalent of pnpm test.

PnpmWrapperTask

jsePnpmWrapper

Creates wrapper scripts for pnpm.

PnxTask

-

Allows registration of tasks that will use pnx under the hood.

Abstract base classes

Task

Description

AbstractPnpmInstallBaseTask

For implementation of tasks that install packages. Not normally used by build script authors.

AbstractPnpmLifecycleTask

Useful to implement a pnpm command. Need to be configured with a toolchain, a working directory and an optional environment.

AbstractPnpmRunTask

Useful to implement specific pnpm run tasks. Extends from AbstractPnpmLifecycleTask.

AbstractPnpmTask

Used to deal with more complex scenarios in the pnpm world for when AbstractPnpmLifecycleTask is not suitable.