534 Commits

Author SHA1 Message Date
Giora Guttsait
75b0744955
fix(core): init generators should not crash when trying to remove dependencies when package.json does not have dependencies (#9765)
Co-authored-by: Craigory Coppola <craigorycoppola@gmail.com>
2022-04-12 09:10:13 -04:00
Craigory Coppola
728f420f52
chore(repo): migrate to Nx 13.10 (#9731)
additionally, removes references to nrwl plugins that can be fully resolved through local plugin resolution. Notable holdouts:

- @nrwl/react and @nrwl/next: referenced in jest.config.js, so not resolved during runtime.
- @nrwl/web: dependency of @nrwl/react
- @nrwl/eslint-plugin-nx: required during eslint startup, not resolved by Nx
2022-04-08 10:51:09 -04:00
Jack Hsu
cf54cc99ef
feat(react): update production setup for MFE host app (#9699) 2022-04-06 01:21:40 +00:00
Jack Hsu
70985b1052
feat(react): update MFE config and routes when adding remote to host (#9687) 2022-04-05 13:50:43 -04:00
Katerina Skroumpelou
9579aec307
feat(storybook): add projectBuildConfig as an option in generator (#9655)
Co-authored-by: Colum Ferry <cferry09@gmail.com>
2022-04-05 16:16:25 +00:00
Kayla Altepeter
274c050fc9
fix(react): case sensitive file import with react app generator when … (#9670) 2022-04-05 14:25:52 +00:00
Nicholas Cunningham
12f0f195d2
feat(react): add support for MFEs (#9413)
* feat(react): Add MFE  Generator for Host and Remote Apps
Host generator will be able use the mfe-remote generator when remotes are passed into the CLI for the mfe-host command

* docs(react): React Documentation Update

Co-authored-by: Nicholas Cunningham <nico@Nicholass-MacBook-Pro.local>
Co-authored-by: Nicholas Cunningham <ndcunningham>
2022-04-04 15:44:18 -04:00
Jack Hsu
b02beb551b
feat(react): update to react 18 (#9613) 2022-03-30 17:48:37 +00:00
Jack Hsu
d4ded4063c
feat(react): update packages (#9538) 2022-03-26 10:10:53 -04:00
Benjamin Cabanes
e5212ec443
docs(core): add description to react package (#9524) 2022-03-25 19:08:08 +00:00
Victor Savkin
74317bebea
chore(repo): fix flaky tests 2022-03-24 17:10:33 -04:00
Benjamin Cabanes
6dae32cc3a
docs(nxdev): support packages schemas metadata & discoverability (#9383) 2022-03-24 12:00:06 -04:00
Victor Savkin
d4b5c30eba
cleanup(core): remove the indirection left after inlining ta… (#9469) 2022-03-23 22:18:17 -04:00
Victor Savkin
6f038e7a4a feat(core): reorganize packges to consolidate all cli-related code in nx 2022-03-14 16:42:51 -04:00
Jack Hsu
ec533c521d
feat(react): update packages (#9296) 2022-03-11 12:18:40 -05:00
Leosvel Pérez Espinosa
acc29e9593
fix(misc): support workspaces using a root tsconfig.json instead of tsconfig.base.json (#9195)
* fix(misc): support workspaces using a root tsconfig.json instead of tsconfig.base.json

* cleanup(angular): address pr feedback
2022-03-09 11:30:26 -05:00
Miroslav Jonaš
06ff832ea9
chore(react): fix version on eslint-plugin-react (#9121) 2022-02-25 17:25:06 +01:00
Jack Hsu
7c16cc4199
chore(web): update generated css module file (#9098) 2022-02-23 12:42:09 -05:00
Jack Hsu
e6941e4fc4
fix(react): component generator outputs correct CSS module setup (#9084) 2022-02-22 13:31:07 -05:00
Katerina Skroumpelou
1abba90f4d
fix(react): get component name for self-closing elements as well (#8991)
ISSUES CLOSED: #8715
2022-02-16 09:07:37 -05:00
Emily Xiong
19efdfc938
feat(react-native): add storybook to react native (#8886) 2022-02-14 10:13:23 -05:00
Colum Ferry
78976bcfa1
fix(storybook): do not update existing react stories (#8920) 2022-02-10 18:25:15 +02:00
Leosvel Pérez Espinosa
cf7a18bd14
fix(angular): prevent adding dependencies when generating apps and specifying skipPackageJson (#8806) 2022-02-01 16:32:47 -05:00
Philip Fulcher
9ba836bfda
feat(react): upgrade eslint-plugin-react-hooks to 4.3.0 2022-01-28 13:52:16 -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
Philip Fulcher
5e66babcee
fix(react): enforce valid jest config when creating workspace with react preset (#8626)
ISSUES CLOSED: #8354
2022-01-21 14:25:15 -07:00
Isaac Mann
07ebdb36a3
feat(core): add nx graph as alias of nx dep-graph (#8539)
* feat(core): add nx graph as alias of nx dep-graph

* docs(core): add note about old dep-graph syntax

* cleanup(core): formatting

* feat(core): formatting

* feat(core): formatting

Co-authored-by: Isaac Mann <isaacplmann+git@gmail.com>
2022-01-21 11:15:23 -05:00
Phillip Barta
574160ddc4
cleanup(repo): import ignore instead of require (#8579) 2022-01-19 10:11:22 -05:00
Chau Tran
978cfe942d
fix(testing): turn swc/jest back on for react, web, and js (#8464) 2022-01-11 09:28:30 -05:00
Kirils L
4ce7c7aaa8
fix(react): update conflicting eslint plugin versions (#8376) 2022-01-06 19:03:38 +00:00
Chau Tran
214ef8ac4f chore(testing): adjust tests that are affected by removing swc 2021-12-23 19:56:58 -05:00
Chau Tran
4430733f57 chore(testing): assert options.compiler to tsc 2021-12-23 19:56:58 -05:00
Jack Hsu
6d6f29439d
feat(testing): add --compiler=tsc|swc|babel option for jest project generator (#8177) 2021-12-15 14:27:53 +00:00
Noriyuki Shinpuku
e4f7e2e40b
feat(react): update complier options for strict mode (#8127) 2021-12-14 22:31:40 -05:00
Kirils L
232eaafc21
fix(nextjs): incorrectly named nested page component files (#8170) 2021-12-14 16:00:44 -05:00
Craigory Coppola
a23284e9ce
fix(core): misc. ng cli compat layer fixes (#8141)
* fix(core): misc. ng cli compat layer fixes

* chore(core): unit test fixes
2021-12-13 18:48:11 -05:00
Jack Hsu
f8c394af46
feat(web): add swc compiler option for webpack executor (#8114) 2021-12-10 16:09:20 -05:00
Kirils L
015f1b78f4
feat(web): support swc compiler (#7997) 2021-12-09 21:16:35 +00:00
Benjamin Cabanes
1560a43acd
docs(nxdev): flatten ui libs (#8006) 2021-12-04 02:14:13 +00:00
Benjamin Cabanes
66e4e85067
feat(core): new nx starter (#7912) 2021-12-03 11:05:09 -05:00
Jack Hsu
157c6e0fb0
feat(web): rename @nrwl/web:build to @nrwl/web:webpack (#7952) 2021-11-30 14:22:34 -05:00
Kirils L
bfd1a4715a
feat(web): rename package executor to rollup (#7904) 2021-11-30 09:32:12 -05:00
Emily Xiong
7712167d3e
chore(react): remove deprecated @types/styled-jsx (#7697) 2021-11-11 13:12:52 -05:00
Nico
6ac6e981cd
fix(react): install missing react-test-renderer dependency (#7675)
When we install @nrwl/react we should also install react-test-renderer.

ISSUES CLOSED: #7578
2021-11-10 11:47:17 -05:00
Caleb Ukle
0ca5a88bf1
fix(testing) generated jest ts configs mismatch (#7556)
* fix(testing): add .test. files to spec tsconfig template

add support for .test.ts and with supportTsx .test.{js|tsx|jsx} files
in the tsconfig.spec.json template.

Note each package that excludes testing files will need to be updated to
exclude the new files (coming in future commits)

* fix(angular): add .test.ts support in tsconfigs

add .test.ts in angular jest template
update angular generators to exclude test files

* fix(gatsby): add .test. file prefixes to tsconfig ignore

ignore the new .test.{js|ts|jsx|tsx} files added to jest configs

* fix(react): add .test. file prefix to app/lib tsconfigs

add .test.{ts|js|tsx|jsx} files to be excluded by app/lib tsconfig

* fix(node): add .test. file prefix to app/lib tsconfig

add .test.{ts|js|tsx|jsx} files to be excluded by app/lib tsconfig

ISSUES CLOSED: #7263

* fix(nest): update tests for new .test.ts files in tsconfig

update tests to account for changes in node generators which add .test.ts to the exclude of
tsconfigs

* fix(express): update tests to account for new tsconfig changes

updated snapshots
added new patterns for tsconfig

* fix(linter): update snapshots for new tsconfig changes

snapshot updated to include new .test.ts file changes for tsconfig

* fix(node): update testing to account for spec tsconfig changes

add .test.ts files in e2e tests

* fix(testing): add migration for tsconfig changes

initial migration and test for tsconfig changes

* chore(testing): add to migrations collection

add the update-ts-config-for-test-filenames to migrations

* fix(testing): fix filesystem issue with jest tests

mock readConfig to always return an basic config to prevent issues of not finding a config in non
linux environments, aka missing /root

* cleanup(testing): update error message

update message logged when tsconfig isn't found to mention what was trying to be accompished so it
can be manually updated if desired.
2021-11-05 14:25:25 -05:00
Juri Strumpflohner
0d3a5c375d
fix(storybook): make sure Storybook can use TypeScript for the config files (#7566)
ISSUES CLOSED: #7515
2021-10-29 20:23:34 +03:00
Jack Hsu
8686e919fb
fix(core): update generator logic so empty strings ("") for appsDir and libsDir work properly (#7508) 2021-10-25 12:01:53 -04:00
Krzysztof Orkisz
d0d1a6187e fix(react): migration to 13

Fixes migration to nx 13: when there are no react projects with storybook but other kind of projects uses SB migration to fails 2021-10-22 18:29:33 +02:00
Jack Hsu
22294e98a5
chore(react): update react packages (#7434) 2021-10-19 22:08:55 -04:00
Jack Hsu
9c1ae3a1b0
chore(web): clean up webpack setup (#7411) 2021-10-19 09:07:33 -06:00