LinuxCommandLibrary

nx

build system for monorepos

TLDR

Run target

$ nx run [project]:[target]
copy
Build project
$ nx build [project]
copy
Test project
$ nx test [project]
copy
Run affected targets
$ nx affected --target=build
copy
Generate component
$ nx generate @nrwl/react:component [name]
copy
Show dependency graph
$ nx graph
copy

SYNOPSIS

nx [command] [options]

DESCRIPTION

nx is a build system for monorepos. Optimizes build and test workflows.
The tool provides smart rebuilds and caching. Supports multiple frameworks.

PARAMETERS

run PROJECT:TARGET

Execute target on project.
build PROJECT
Build project.
test PROJECT
Run tests.
affected
Run on affected projects.
generate GENERATOR
Run code generator.
graph
Visualize dependencies.
--help
Display help information.

CAVEATS

Requires nx.json configuration. Learning curve for large projects. Node.js ecosystem.

HISTORY

Nx was created by Nrwl to provide smart, extensible build tooling for monorepos.

SEE ALSO

npm(1), lerna(1), turbo(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community