126 Commits

Author SHA1 Message Date
Jason Jean
b558f56c69
feat(testing): use createNodesV2 for jest (#26292)
<!-- 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 -->

`@nx/jest/plugin` uses CreateNodesV1. Multiple Jest plugins are not able
to be run in parallel and in isolation.

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

`@nx/jest/plugin` uses CreateNodesV2. Multiple jest plugins are able to
run in parallel and in isolation.

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

Fixes #
2024-05-31 15:43:01 -04:00
Craigory Coppola
a5682d1ca5
feat(core): add create nodes v2 for batch processing config files (#26250) 2024-05-30 15:28:59 -04:00
Jordan Hall
80702b59c7
feat(core): add bun package manager (#22602)
Bun uses yarn lock for it's binary file. Running the binary will produce
the content of a yarn lock file (v1)

Other option is to use the -y command on add and install. This will
create a yarn lock file and then createLockFile can just modify the
yarn.lock file instead?

This is the PR made from #19113 and pushed due to #22402 being closed.

PS Bun feels more stable since the PR was first created!

This PR will resolve #22283 and start of #21075
2024-05-22 16:51:21 -04:00
Jason Jean
8f705e31e2
fix(misc): adjust deprecation messages to v20 (#23223)
<!-- 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` -->

## Breaking Changes:


BREAKING CHANGE: `nx print-affected` was deprecated in 16.4.0 and has
been removed.
BREAKING CHANGE: `nx affected:graph` was deprecated in 16.4.0 and has
been removed.
BREAKING CHANGE: The `criticalPath` and `affectedProjects` properties of
the JSON created by `nx graph --file graph.json` was deprecated in
16.2.0 and has been removed.

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

Some deprecation messages still reference v19.

`nx print-affected` was deprecated in 16.4.0 to be removed in Nx 19 but
was not removed.
`nx affected:graph` was deprecated in 16.4.0 to be removed in Nx 19 but
was not removed.

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

Deprecation messages reference v20 now.

`nx print-affected` is removed.
`nx affected:graph` is removed.

There are redirects to a `deprecated` page describing those commands for
Nx users using Nx <19

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

Fixes #
2024-05-08 21:54:41 -04:00
Jason Jean
a64a7e2db9
feat(core): cleanup for v19 (#22993) 2024-05-01 12:12:32 -04:00
Craigory Coppola
0fd6d23e3f
fix(core): ensure create nodes functions are properly parallelized (#23005) 2024-04-25 16:45:26 -04:00
Colum Ferry
25eeddc338
feat(testing): add playwright generator to convert from executors to plugin (#22784)
Co-authored-by: FrozenPandaz <jasonjean1993@gmail.com>
2024-04-24 09:06:23 -04:00
Craigory Coppola
7bb6e9ee14
feat(core): add API entrypoint to register metadata (#22773) 2024-04-23 17:04:51 -04:00
Leosvel Pérez Espinosa
d7f1b3db73
fix(angular): execute wrapped schematics post tasks and log messages (#22780) 2024-04-11 16:57:17 +02:00
Craigory Coppola
7a7cbeca44
feat(core): re-enable running plugins in isolation (#22527) 2024-04-09 18:36:33 -04:00
Jason Jean
21f90cae85
feat(core): add metadata to targets (#22655) 2024-04-04 23:19:10 -04:00
Jason Jean
777fbd1673
feat(core): add ability to scope plugins (#22379) 2024-03-22 18:33:16 -04:00
Jason Jean
5a9671b3fa
feat(core): add ability to add metadata to projects (#22299) 2024-03-19 13:33:25 -04:00
James Henry
1fe5b98f45
fix(linter): refactor pcv3 plugin, expose configFiles on context (#21677) 2024-03-15 16:29:13 -04:00
Leosvel Pérez Espinosa
5978e30d20
docs(misc): update typedoc (#22264) 2024-03-12 09:33:44 +01:00
Jason Jean
c01b566728
feat(core): revert running plugins in isolation (#22246) 2024-03-09 11:30:10 -05:00
Bacary Bruno Bodian
3b2e5a82f7
chore(nx): pass generic to CreateNodes (#22157) 2024-03-05 18:02:46 -05:00
Austin Fahsl
8bde48fc7a
fix(release): skip lock file update if workspaces are not enabled (#22055) 2024-03-01 10:15:55 -07:00
Craigory Coppola
a89c73483e
feat(core): use flag in nx.json for toggling crystal (#21980) 2024-02-29 15:18:46 -05:00
Craigory Coppola
c2581dcf0b
feat(core): execute plugins in isolated processes (#21760) 2024-02-23 13:20:44 -05:00
Craigory Coppola
95b77f8fb0
feat(core): flatten default base config to base (#19964) 2024-02-22 16:50:25 -05:00
Austin Fahsl
b625a79cca
fix(release): move github release creation to git tasks (#21510) 2024-02-13 17:32:35 -07:00
Isaac Mann
7d2cb37784
docs(core): release is no longer alpha (#21780) 2024-02-12 17:29:25 -05:00
Craigory Coppola
deb0f1a492
chore(repo): bump deprecation messages to v19 (#21430) 2024-01-30 16:29:05 -05:00
Kaden Wilkinson
8274f3419d
fix(devkit): fix extractLayoutDirectory typescript types to better reflect allowed params and return value (#15339) 2024-01-29 13:01:14 -05:00
James Henry
bba9600d6e
feat(release): allow overriding generator and generatorOptions per project (#21298) 2024-01-24 10:17:12 -05:00
Jack Hsu
253c0ff2ab
feat(devkit): add a flag to keep existing versions when calling addDependenciesToPackageJson (#21123) 2024-01-16 14:24:14 -05:00
Craigory Coppola
2374d8eaba
feat(testing): add create-nodes plugin for playwright e2e targets (#20099) 2023-12-20 16:34:32 -05:00
Leosvel Pérez Espinosa
5befe533fc
docs(misc): update typedoc (#20603) 2023-12-13 16:49:46 +01:00
Craigory Coppola
30d94f76ee
cleanup(core): remove async flag from signature of buildProjectsConfigurationsFromProjectPathsAndPlugins (#20228) 2023-11-17 15:31:03 -05:00
Craigory Coppola
206247f9ad
feat(core): make createNodes async (#20195)
Co-authored-by: Jonathan Cammisuli <jon@cammisuli.ca>
2023-11-13 16:57:20 -05:00
Craigory Coppola
08a4891494
feat(core): change the signature of createNodes to return a project root map instead of project name map (#20102) 2023-11-08 13:20:53 -05:00
James Henry
39423322c1
feat(core): support changelog customizations and project changelogs (#19704) 2023-10-20 16:27:03 -04:00
Craigory Coppola
024abd2cdb
fix(core): only show cloud messaging when migrating if not using cloud (#19709) 2023-10-18 19:20:47 -04:00
Jason Jean
d0005c954f
feat(core): remove deprecated defaultCollection and npmScope nx.json … (#19708) 2023-10-18 18:03:57 -04:00
Craigory Coppola
c56b5a3c77
fix(devkit): correct nx-json typing after plugin tweaks (#19706) 2023-10-18 15:15:00 -04:00
Craigory Coppola
2a18fd1f3f
feat(core): allow specifying cacheability per target (#19672) 2023-10-17 20:14:39 -04:00
Craigory Coppola
882dd08a6a
chore(core): tweak nx-plugin-v2 options typing (#19673) 2023-10-17 19:16:23 -04:00
Craigory Coppola
f918a72307
feat(core): add standard way to pass plugin options (#19589)
Co-authored-by: FrozenPandaz <jasonjean1993@gmail.com>
2023-10-16 18:24:11 -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
Colum Ferry
80fde79374
feat(misc): remove deprecated Angular CLI usage of schematics and builders (#19557) 2023-10-13 17:14:16 +01:00
Jason Jean
5740a73cd8
feat(core): add the outputs of a task onto the task (#19561)
Co-authored-by: Jonathan Cammisuli <jon@cammisuli.ca>
2023-10-11 23:21:14 -04:00
Craigory Coppola
05e7602a2c
feat(core): generate new workspaces without tasks runner options (#19483) 2023-10-11 14:22:26 -04:00
Leosvel Pérez Espinosa
5a30beff77
docs(nx-dev): update typedoc version (#19435) 2023-10-11 17:00:03 +02:00
Jason Jean
dde91067f0
fix(core): hash the same environment as the tasks are run with (#19487) 2023-10-06 21:28:28 -04:00
Craigory Coppola
e97bbc040b
feat(core): read cloud url from nx.json (#19468) 2023-10-06 09:52:07 -04:00
Craigory Coppola
94748413a5
feat(core): accept various task runner options from root of nx.json (#19243) 2023-10-05 12:02:04 -04:00
Craigory Coppola
a0ff89258d
cleanup(devkit): export FileMap interface (#19297) 2023-09-27 14:35:12 +00:00
Isaac Mann
76bc58d407 docs(core): hide private fields in docs 2023-09-23 18:53:14 +02:00
Jason Jean
53a327715b
feat(repo): remove projectNameAndRoot nx.json option (#19218) 2023-09-21 08:15:38 -04:00