76 Commits

Author SHA1 Message Date
Jonathan Gelin
23ce6af2cc
fix(nx-plugin): tslib is not set as a dependency when using create-package generator (#22429)
<!-- 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
The linting failed on clean `create-nx-plugin` generation:

![image](https://github.com/nrwl/nx/assets/954509/80bfbaeb-0994-48d9-a6dc-20f8f723a95d)

## Expected Behavior
After a clean generation, build, test, and lint should be successful

Co-authored-by: Emily Xiong <xiongemi@gmail.com>
2024-07-05 15:29:48 -04:00
Michal Jez
6d2e7cd2cf
feat(nx-plugin): update executor generator to have context (#16982)
Co-authored-by: Craigory Coppola <craigorycoppola@gmail.com>
2024-06-04 17:49:50 -04:00
Leosvel Pérez Espinosa
c240c2685e
feat(core): allow executor definition to point to another executor (#23576)
Add support for executor definitions that point to another executor. The
upcoming Angular 18 uses this feature:
https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/build_angular/builders.json#L4,
so we need to be able to resolve the builders correctly using such a
configuration.

Note: the change is also in [the Angular 18
PR](https://github.com/nrwl/nx/pull/22509), where it's tested with the
Angular version that requires it. I'm extracting the change to this PR
to facilitate reviews and reduce the size of the Angular 18 PR.

<!-- 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 -->

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

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

Fixes #
2024-05-20 15:51:14 +02:00
Jason Jean
461b901a38
fix(linter): fix migrating projects with the eslint plugin (#23147)
<!-- 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 -->

Creating a new project with ESLint is mistakenly creating a
`eslint.base.config.js`.

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

Creating a new project with ESLint only creates a
`eslint.base.config.js` file when the repo was originally standalone and
the second project is made.

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

Fixes #
2024-05-13 14:27:56 -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
Jack Hsu
bc43243498
chore(repo): add eslint and jest plugins to use inferred targets (#22946) 2024-04-23 21:52:13 -04:00
Jason Jean
bf206e578e
feat(misc): non conflicting init/add flow (#22791) 2024-04-15 16:45:08 -04:00
Leosvel Pérez Espinosa
864e0b1709
fix(nx-plugin): do not print duplicated warning about derived format when generating plugin (#22230) 2024-03-08 10:41:47 -05:00
Craigory Coppola
a89c73483e
feat(core): use flag in nx.json for toggling crystal (#21980) 2024-02-29 15:18:46 -05:00
Jason Jean
396ffc4636
feat(core): enable project crystal by default (#21403)
Co-authored-by: Katerina Skroumpelou <sk.katherine@gmail.com>
Co-authored-by: Jack Hsu <jack.hsu@gmail.com>
Co-authored-by: Colum Ferry <cferry09@gmail.com>
Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com>
Co-authored-by: Emily Xiong <xiongemi@gmail.com>
Co-authored-by: Nicholas Cunningham <ndcunningham@gmail.com>
2024-02-02 03:40:59 -05:00
Craigory Coppola
deb0f1a492
chore(repo): bump deprecation messages to v19 (#21430) 2024-01-30 16:29:05 -05:00
beeman
a9974d3f25
docs(misc): change http:// to https:// (#19534) 2024-01-30 11:33:13 -05:00
Miroslav Jonaš
d45a13e4fa
feat(core): extend nxCloud prompt to include basic CI workflow options (#21094) 2024-01-18 14:12:31 -05:00
Miroslav Jonaš
03257e2503
feat(linter): move common options to target defaults (#20583) 2024-01-09 09:12:47 +00:00
Benjamin Cabanes
db77ddef8a
chore(repo): update packages readme banner (#20695) 2023-12-11 11:32:42 -05:00
Benjamin Cabanes
5a305d41de
feat(nx-dev): add homepage updates (#20592)
Co-authored-by: Juri <juri.strumpflohner@gmail.com>
2023-12-08 14:40:42 -05:00
Miroslav Jonaš
ff5d1bef83
feat(linter): default lintFilePatterns to {projectRoot} (#20313) 2023-11-27 08:39:38 -05:00
Miroslav Jonaš
5cd938a1a0
fix(nx-plugin): ensure plugin testing uses correct pm for install (#20061) 2023-11-23 10:50:02 -05:00
Craigory Coppola
30d94f76ee
cleanup(core): remove async flag from signature of buildProjectsConfigurationsFromProjectPathsAndPlugins (#20228) 2023-11-17 15:31:03 -05:00
Leosvel Pérez Espinosa
e4f6be2d4f
fix(misc): fix project-name-and-root-utils type imports in schemas (#20305) 2023-11-17 07:53:17 -05:00
beeman
0f7363e2de
fix(nx-plugin): move tests from 'tests' to 'src' directory (#19866) 2023-11-03 16:10:44 -04:00
Jason Jean
8a89df66bf
feat(testing): move test config more into nx.json targetDefaults (#19963) 2023-11-01 10:20:18 -04:00
Emily Marigold Klassen
40515c2a0e
docs(nx-plugin): update some missed old paths (#19909) 2023-10-27 18:01:17 -04:00
Jason Jean
d0005c954f
feat(core): remove deprecated defaultCollection and npmScope nx.json … (#19708) 2023-10-18 18:03:57 -04:00
Jason Jean
e20f379414
fix(nx-plugin): add nameAndDirectoryFormat to schema for generator,ex… (#19710) 2023-10-18 15:25:31 -04:00
Jason Jean
7d095d59ad
fix(nx-plugin): enable prompt for generator and migration generators (#19675) 2023-10-17 19:16:38 -04:00
MaxKless
949466f02b
fix(core): remove -d alias because it conflicts with --dry-run (#19664) 2023-10-17 16:33:04 -04:00
Miroslav Jonaš
0bc693342e
feat(linter): rename @nx/linter to @nx/eslint (#19515) 2023-10-16 11:52:19 -04:00
Jason Jean
8eb6b5ea78
feat(nx-plugin): add as-provided mode for generator and migration gen… (#19614) 2023-10-15 01:10:00 -04:00
Jason Jean
8249ace5a2
feat(nx-plugin): add as provided prompt for executor generator (#19602) 2023-10-13 13:20:10 -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
Jack Hsu
76a7506074
feat(js): remove options to update package.json dependencies and peerDependencies (#19543) 2023-10-12 12:06:45 -04: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
Jason Jean
47e9fc8ed6
feat(misc): remove migrations for v14 and under (#19552) 2023-10-11 10:46:17 -04:00
Jason Jean
5cc87bfdc2
fix(misc): properly add extra dependencies to packages (#19334) 2023-09-26 00:09:29 -04:00
Craigory Coppola
82fb209b40
fix(nx-plugin): pass full context into parseTargetString (#19154) 2023-09-21 16:14:30 -04:00
Jason Jean
e8fb1f4f4b
fix(misc): use preset apps instead of empty (#19051) 2023-09-07 11:05:40 -04:00
Miroslav Jonaš
759c5e1a4e
fix(nx-plugin): fix explicity obsolete type (#18888) 2023-08-29 12:30:51 -05:00
Emily Xiong
9d5a3830be
feat(misc): remove dotenv from executors (#18719) 2023-08-22 20:00:37 -04:00
Miroslav Jonaš
e34219ab96
feat(linter): add flat config support to generators (#18534) 2023-08-23 01:36:58 +02:00
Leosvel Pérez Espinosa
016c89fed6
feat(nx-plugin): use helper to determine project name and root in project generators (#18739) 2023-08-22 12:28:23 -04:00
Leosvel Pérez Espinosa
9cd0cf899a
fix(misc): set the correct dependency range for dotenv in plugins (#18573) 2023-08-10 13:02:50 -04:00
Jonathan Cammisuli
ce2c6d60e7
fix(core): provide taskGraph for every task calculation (#18410) 2023-08-01 16:59:58 -04:00
Craigory Coppola
901b70a4fe
chore(nx-plugin): add examples for generators (#17346) 2023-07-25 18:15:26 -04:00
Craigory Coppola
a80abbf2c9
fix(nx-plugin): don't generate cli property in migrations.json (#18304) 2023-07-25 12:51:11 -04:00
Emily Xiong
1861c931d6
feat(nx-plugin): create cli in packages folder (#18234) 2023-07-21 10:20:04 -04:00
Miroslav Jonaš
0ab8cd4b4c
cleanup(nx-plugin): remove unused imports (#18221) 2023-07-20 14:50:59 +00:00
Miroslav Jonaš
f4f4eb66e2
feat(linter): add dependency-checks to buildable lib generator (#18015) 2023-07-20 10:28:20 -04:00
Jack Hsu
28df2057fd
chore(repo): replace dep check script with new lint rule (#18060) 2023-07-19 17:07:52 -04:00