41 Commits

Author SHA1 Message Date
Jack Hsu
ec5a5e6360
feat(react): update app and lib generators to support new TS solution setup (#28808)
This PR updates app and lib generators in the following packages such
that they will generate files with the TS solution setup if it is
detected.

- `@nx/react`
- `@nx/next`
- `@nx/remix`
- `@nx/expo`
- `@nx/react-native`

React apps and libs will be linked using npm/pnpm/yarn/bun workspaces
feature rather than through tsconfig paths. This means that local
aliases like `@/` will work with Next.js and Remix apps.

Note: This will be behind `--workspaces` flag when using `npx
create-nx-workspace` and choosing React stack. If you use the None/TS
stack then adding plugins like `nx add @nx/react` then generating apps,
it will automatically pick up the new TS solution setup.


<!-- 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
React generators are not compatible with TS solution setup (i.e.
workspaces + TS project references).

## Expected Behavior
React generators work with new TS solution setup (Plain, Next.js, Remix,
Expo, React Native).

## Related Issue(s)
#28322

---------

Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com>
Co-authored-by: Nicholas Cunningham <ndcunningham@gmail.com>
2024-11-28 22:18:45 -05:00
Jack Hsu
27edf71cef
feat(misc): make directory a required option for generators (#28093)
<!-- 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
<!-- 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 #

---------

Co-authored-by: Colum Ferry <cferry09@gmail.com>
Co-authored-by: Nicholas Cunningham <ndcunningham@gmail.com>
2024-10-01 09:29:44 -04:00
Leosvel Pérez Espinosa
c92528f65d
feat(misc): remove derived generator paths (#27714)
<!-- 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
<!-- 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 #

---------

Co-authored-by: Nicholas Cunningham <ndcunningham@gmail.com>
2024-09-23 09:19:42 -04:00
James Henry
68eeb2eeed
feat(linter): create new workspaces with ESLint v9 and typescript-eslint v8 (#27404)
Closes #27451

---------

Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com>
Co-authored-by: Jack Hsu <jack.hsu@gmail.com>
2024-09-12 16:02:27 -04:00
Emily Xiong
e957d13715
feat(react-native): upgrade react native to 0.72.6 (#22729) 2024-04-26 11:36:57 -04: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
Nicholas Cunningham
2781800e36
fix(react-native): Application generator failing (#21507) 2024-02-01 15:57:49 -07:00
Simeon Cheeseman
ec4f7c5532
feat(linter): add error and warning statistics (#18313) 2024-02-01 10:48:32 -05:00
Emily Xiong
65e86eacac
feat(react-native): upgrade react native to 0.73 (#20896) 2024-01-31 15:38:02 -05:00
Emily Xiong
78a4df8d26
feat(react-native): generate pod install target (#21166) 2024-01-16 17:42:25 -05:00
Emily Xiong
2b652a4c07
feat(react-native): add support for createNodes in react native (#21013) 2024-01-08 16:16:43 -05:00
Emily Xiong
05e814f2d0
chore(react-native): fix react native expo nightly e2e test (#19639) 2023-10-17 17:35:24 -04:00
Leosvel Pérez Espinosa
a2f761352b
feat(react-native): use helper to determine project name and root in project generators (#18734) 2023-08-22 15:33:55 +01:00
Jack Hsu
661efa913d
feat(bundling): generate matching d.ts files for rollup (#18342) 2023-07-28 09:04:26 +02:00
Miroslav Jonaš
f4f4eb66e2
feat(linter): add dependency-checks to buildable lib generator (#18015) 2023-07-20 10:28:20 -04:00
Emily Xiong
48d4927068
fix(react-native): fix tsc app (#18124) 2023-07-19 11:27:43 -04:00
Victor Savkin
0848031dd9 feat(core): move task hashing into daemon 2023-05-17 11:37:57 -04:00
Emily Xiong
58e23b121a
feat(react-native): upgrade @storybook/react-native to 6.5 (#16670) 2023-05-03 20:09:28 +03:00
Miroslav Jonaš
262865841d
feat(repo): migrate to pnpm (#16284) 2023-04-25 17:57:36 -04:00
Jason Jean
a0d18bb588
chore(repo): replace references to @nrwl in e2e tests (#16441) 2023-04-24 18:48:44 -04:00
Emily Xiong
cc0d91203e
feat(react-native): upgrade react-native to 0.71.7 (#16504) 2023-04-24 14:51:59 -04:00
Emily Xiong
04b6ddb596
feat(react-native): update @react-native-community/cli to 10.2.1 (#15738) 2023-03-24 12:51:35 -04:00
Emily Xiong
32198c2e8e
chore(testing): speed up react-native and expo e2e tests (#15644) 2023-03-17 14:47:10 -04:00
Emily Xiong
41fc2ebbed
feat(react-native): upgrade react-native to 0.71.1 (#14584) 2023-01-25 13:28:32 -05:00
Miroslav Jonaš
9a0db4848f
feat(linter): replace createReactEslintJson with extendReactEslintJson (#13431) 2022-11-28 11:54:30 +01:00
Jason Jean
87b9f7e7ab
chore(repo): exclude vite tests on macos e2e (#13073) 2022-11-08 16:32:33 -05:00
Emily Xiong
abcae17fc2
chore(react-native): fix sync-deps e2e tests (#12526)
- the npm package has to installed in order to sync in deps
2022-10-11 14:50:45 -04:00
Emily Xiong
306d8a4cec
feat(react-native): upgrade react native to 0.70.0 (#11971)
* chore(react-native): add test for build library react native

* feat(react-native): upgrade react native to 0.70.0
2022-09-14 14:02:45 -04:00
Emily Xiong
dba76f55f8
chore(react-native): add test for build library react native (#12007) 2022-09-14 14:02:17 -04:00
Emily Xiong
44d1f2c2ee
feat(react-native): update react native bundle options (#11699) 2022-08-25 11:01:30 -04:00
Emily Xiong
13b0d8c75d
bugfix(react-native): fix upgrade-native and add e2e tests (#11369) 2022-08-02 15:19:00 -04:00
Emily Xiong
d038b70a87
feat(react-native): upgrade metro to 0.71.0 (#10598) 2022-06-07 10:57:58 -04:00
Emily Xiong
1358fbf263
feat(storybook): upgrade @storybook/react-native version to ^6.0.1-beta.5 (#9657)
- also move the toggle-storybook.tsx to src/storbyook folder rather than .storybook
2022-04-04 11:36:36 +03:00
Emily Xiong
19efdfc938
feat(react-native): add storybook to react native (#8886) 2022-02-14 10:13:23 -05:00
Noriyuki Shinpuku
6a3914ed42
fix(linter): remove @typescript-eslint/no-unused-vars override (#8147)
Co-authored-by: Miroslav Jonaš <meeroslav@users.noreply.github.com>
2022-01-24 15:57:25 +01:00
Emily Xiong
49df712d5f
bugfix(react-native): change to entryFile absoluste path (#7953) 2021-11-30 13:18:33 -05:00
Victor Savkin
9898b11c80 chore(repo): temporary disable failed e2e test 2021-11-28 11:57:18 -05:00
Emily Xiong
1e79975fa1
bugfix(react-native): fix invalid entry file for react native with js (#7782) 2021-11-26 09:15:21 -05:00
Emily Xiong
624f3f944e
feat(react-native): enable pnpm support for react-native (#7781) 2021-11-26 09:14:55 -05:00
Emily Xiong
9eb3ac58e9
chore(react-native): uncomment detox e2e test to build and test native ios (#7479) 2021-11-08 12:33:13 -05:00
Emily Xiong
387af0cf3f
feat(core): add react native to main repo (#6493) 2021-08-25 15:54:23 -04:00