zuke.tools.nx
@zuke/nx 1.0.1: @zuke/nx — typed NxTasks wrappers for the [Nx](https://nx.dev) CLI, for use in Zuke builds.
zuke on PyPI ↗ 5 symbols
Symbols
class NxAffectedSettings(NxSettings) Settings for nx affected.
-
target(name: str) -> SelfThe target to run on affected projects (required).
-
base(ref: str) -> SelfThe base ref to diff against (
--base). -
head(ref: str) -> SelfThe head ref to diff against (
--head). -
configuration(name: str) -> SelfUse a named configuration (
--configuration). -
parallel(count: float) -> SelfMaximum number of tasks to run in parallel (
--parallel).
class NxRunManySettings(NxSettings) Settings for nx run-many.
-
target(name: str) -> SelfThe target to run across projects (required).
-
projects(*names: str) -> SelfLimit to specific projects (
--projects); repeatable. -
configuration(name: str) -> SelfUse a named configuration (
--configuration). -
parallel(count: float) -> SelfMaximum number of tasks to run in parallel (
--parallel). -
all() -> SelfRun for every project (
--all).
class NxRunSettings(NxSettings) Settings for nx run (a single project:target).
-
target(spec: str) -> SelfThe
project:targetto run, e.g.web:build(required). -
configuration(name: str) -> SelfUse a named configuration (
--configuration).
class NxSettings(ToolSettings) Base for all nx subcommand settings: the binary is nx.
class NxTasks Typed task functions for the nx CLI.
-
static async run(ctx: ServiceContext, configure: Callable[[NxRunSettings], NxRunSettings] | None=None) -> ExecResultRun a single
project:target:nx run. -
static async run_many(ctx: ServiceContext, configure: Callable[[NxRunManySettings], NxRunManySettings] | None=None) -> ExecResultRun a target across many projects:
nx run-many. -
static async affected(ctx: ServiceContext, configure: Callable[[NxAffectedSettings], NxAffectedSettings] | None=None) -> ExecResultRun a target on affected projects:
nx affected.