38 Commits

Author SHA1 Message Date
James Henry
ddec7ad4b0
chore(repo): add valid-command-object lint rule (#27777) 2024-09-05 13:14:04 +04:00
Isaac Mann
83a387a105
docs(core): create commands landing page (#27660)
Creates a [custom landing page for Nx
commands](https://nx-dev-git-docs-commands-landing-page-nrwl.vercel.app/reference/nx-commands)
2024-08-29 22:43:21 -04:00
Craigory Coppola
9a556f45b8
feat(core): add --exclude-task-dependencies flag (#27137)
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
There is no option to exclude dependent tasks when running Nx.

## Expected Behavior
There is a flag, `--exclude-task-dependencies`, to exclude task deps
from running. This is inline with other tools:

- [dotnet
cli](https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-build#:~:text=%2D%2Dno%2D-,dependencies,-Ignores%20project%2Dto)

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #18053
2024-07-26 13:48:50 -04:00
Craigory Coppola
a308e1dc6b
fix(core): prevent graph output from being truncated (#23446)
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

## Current Behavior
--graph stdout and --file stdout aren't documented. When printing graph
to stdout, its possible for some output to get missed.

## Expected Behavior
Existing flags are documented, and `--print` is more discoverable. We
await stdout finishing before exiting the program.

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #18689
2024-05-31 18:05:26 -04:00
Alice Kile
e32b81961f
docs(core): elaborate output-style option (#23521)
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

## Current Behavior
<!-- This is the behavior we have today -->

`output-style` option's potential values are not explained.

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

add description to `output-style` option's potential values

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #20159


![image](https://github.com/nrwl/nx/assets/5159834/15406dcf-80c3-444c-881a-268fcf9704e5)
2024-05-27 11:47:53 -04:00
Emily Xiong
0b0df51263
chore(core): add batch description in cli (#19707) 2023-10-18 15:15:20 -04:00
Emily Xiong
c83102a2c4
feat(core): add batch flag to run (#19575)
Co-authored-by: FrozenPandaz <jasonjean1993@gmail.com>
2023-10-13 13:09:01 -04:00
James Henry
9116c29c18
feat(core): initial implementation of nx release (#19110)
Co-authored-by: FrozenPandaz <jasonjean1993@gmail.com>
2023-09-18 15:11:44 -04:00
Philip Fulcher
768a0d2b7c
docs(core): remove references to --all for run-many (#18663) 2023-08-18 16:01:32 -04:00
Craigory Coppola
692640e9a9
docs(core): update --exclude option to use equal sign (#18592) 2023-08-15 18:12:36 -04:00
Craigory Coppola
f5c6ee5488
fix(core): cli option --graph should open graph ui by default (#17644) 2023-06-16 16:31:12 -04:00
Craigory Coppola
b20e906f00
feat(core): add --affected to show only affected projects (#16970) 2023-05-13 01:48:35 -04:00
Craigory Coppola
b2470de56c
feat(core): ability to save task graph to a file when running --graph (#16350) 2023-05-12 18:50:11 -04:00
Craigory Coppola
b8e9f3daf8
docs(core): add example for affected by tags (#16986) 2023-05-12 13:25:21 -04:00
Craigory Coppola
f13ea45599
docs(core): correct environment variable for NX_TASK_TARGET_PROJECT (#16236) 2023-04-12 11:10:46 -04:00
Victor Savkin
2bc33f14d7
docs(core): use -t and -p instead of --targets and --projects 2023-04-10 13:30:17 -04:00
Craigory Coppola
7d61ae238b
fix(misc): prevent --quiet and --verbose from both being true (#15836) 2023-03-23 10:47:43 -04:00
Jason Jean
2cc949e2f1
feat(core): show task graph of commands (#15440)
Co-authored-by: Philip Fulcher <philip@nrwl.io>
2023-03-21 18:08:31 -04:00
Caleb Ukle
16aa1b5af2
docs(core): add example for running multiple targets (#14210) 2023-01-06 22:26:51 +00:00
Victor Savkin
c3f0cef1fb fix(core): fix the parsing of projects and targets 2022-12-27 12:45:35 -05:00
Victor Savkin
8572eed44e feat(core): add the ability to specify multiple targets 2022-12-22 14:21:06 -05:00
Benjamin Cabanes
315bf0c968
docs(nxdev): use shell marker for command-line (#13824) 2022-12-14 10:39:00 -05:00
Isaac Mann
186682f88d
docs(core): add info on NX_TARGET_TASK_PROJECT (#13266)
Co-authored-by: Daniel Cooke <danielcooke1996@gmail.com>
2022-11-18 15:27:36 -05:00
Jason Jean
17993dbd19
docs(misc): fix cli examples documentation (#12891) 2022-10-29 03:28:57 +00:00
Benjamin Cabanes
ea40631999
docs(core): update format docs generation (#12880) 2022-10-28 10:54:05 -04:00
Jason Jean
678bb83636
feat(core): remove deprecated --only-failed option (#12471)
BREAKING CHANGE: --only-failed has been removed
2022-10-07 17:48:10 -04:00
Benjamin Cabanes
c9feb2c2e5
docs(core): update pnpm command line (#12443) 2022-10-06 14:58:57 +00:00
Isaac Mann
e717660102
docs(nx-dev): diataxis restructure (#11649)
* docs(nxdev): restructure docs to diataxis style

* docs(nxdev): cleanup

* docs(nxdev): fix links

* chore(nxdev): format

* docs(nxdev): fix broken images

* docs(nxdev): fix links

* docs(nxdev): fix links

* docs(nxdev): fix links

* docs(nxdev): tweaks

* docs(nxdev): redirect rules

* docs(nxdev): fixes
2022-08-29 08:36:55 -04:00
Victor Savkin
c0dd2f5832 fix(core): make --verbose consistent with NX_VERBOSE_LOGGING=true 2022-08-19 13:46:19 -04:00
Jason Jean
3c2ad25cfd
feat(misc): implement nx repair and prettify migrate output (#11288) 2022-07-26 17:34:32 -04:00
Victor Savkin
912e81957f cleanup(core): rework task graph creation to handle edge cases better 2022-05-30 19:57:21 -04:00
Victor Savkin
7bfceb6d6d feat(core): add the flag to stop execution on first error 2022-05-27 22:22:27 -04:00
Victor Savkin
844679ed78 feat(core): prefix when using --output-style=stream 2022-05-25 19:44:35 -04:00
Victor Savkin
53460849a2 feat(core): introduce an explicit variable for deciding on how output is printed 2022-05-05 17:22:22 -04:00
Leosvel Pérez Espinosa
96db3c51c4
docs(misc): render values correctly (#9712) 2022-04-08 09:45:51 -04:00
Miroslav Jonaš
15d8222200
feat(nxdev): add types to CLI docs (#9607) 2022-03-31 10:15:49 +02:00
Jason Jean
bf70569636
fix(core): deprecate, fix error, and print warning when using --only-failed (#8748) 2022-01-28 13:28:16 -05:00
Benjamin Cabanes
57995d8d14
docs(core): renamed generated folder (#8491) 2022-01-13 12:37:19 -05:00