103 Commits

Author SHA1 Message Date
Jack Hsu
9250535e20
chore(react): add e2e test for SVG and SVGR handling in react (#14707) 2023-01-31 08:48:28 -07:00
Leosvel Pérez Espinosa
954f78c3db
cleanup(misc): reenable cypress component tests e2e tests (#14668) 2023-01-30 08:09:46 -05:00
Leosvel Pérez Espinosa
6b49a6a6c1
cleanup(misc): disable cypress component tests e2e tests (#14608) 2023-01-25 15:07:13 +00:00
Jack Hsu
a610276cf8
fix(webpack): fix loader config for global styles (#14323) 2023-01-12 17:58:58 -05:00
Jack Hsu
454fba49b2
feat(webpack): generate React and Web apps with webpack.config.js file (#14285) 2023-01-12 10:06:25 -05:00
Craigory Coppola
7992ec618f
chore(repo): setup negative config for several targets (#14080) 2023-01-04 11:34:50 -05:00
Jack Hsu
b76871d501
fix(bundling): detect esm vs cjs type for .js files (#14060) 2022-12-29 13:41:56 -05:00
Caleb Ukle
663d38bdba
feat(testing): support async webpack config for react component testing (#14037) 2022-12-28 11:17:53 -05:00
Katerina Skroumpelou
b52b649fcb
feat(vite): allow user to set their custom target for transform (#13691) 2022-12-16 13:35:52 +00:00
Jack Hsu
fdd04ba0a6
feat(react): add cypress e2e for react standalone preset (#13848) 2022-12-15 10:07:06 -07:00
Nicholas Cunningham
70e1aabb09
fix(vite): Failing to build when generated library uses jest (#13797)
Co-authored-by: Nicholas Cunningham <ndcunningham>
2022-12-15 11:32:27 -05:00
Jack Hsu
4f9b9d4344
feat(testing): remove unused dependencies from @nrwl/cypress (#13771) 2022-12-15 05:12:43 +00:00
Emily Xiong
14c1c16cf8
feat(react): add unit test examples when inSourceTests is passed (#13779) 2022-12-14 23:46:13 -05:00
Jack Hsu
5b7dba1cb7
fix(react): clean-up after dependency removal from @nrwl/react (#13563) 2022-12-02 16:58:07 +00:00
Jack Hsu
5d0f50e424
feat(react): add --bundler=none option for React lib generator if the… (#13511) 2022-11-30 19:48:02 +00:00
Jack Hsu
a9ac43b86f
feat(react): add CRA support to "nx init" (#13488) 2022-11-29 23:20:27 -05:00
Jack Hsu
a63a25d2e2
feat(react): add Vite bundler option for buildable libraries (#13382) 2022-11-25 20:25:37 +00:00
Jack Hsu
f98618b8d3
cleanup(react): remove bundler=vite option from host and remote gener… (#13320) 2022-11-22 10:37:24 -05:00
Jack Hsu
23e4fc77c9
feat(react): add SSR support to React apps (#13234) 2022-11-21 14:22:05 -05:00
Katerina Skroumpelou
f394608658
feat(bundling): vite generators (#13158) 2022-11-21 13:18:40 -05:00
Colum Ferry
efc100587b
feat(react): remove exposed utils (#13079) 2022-11-09 11:20:21 +00:00
Craigory Coppola
f311ecbdd7
chore(repo): remove workspace.json (#13040) 2022-11-08 13:12:31 -05:00
Victor Savkin
23de788b5e
chore(repo): update to 15.0.0-rc1 (#12586) 2022-10-13 18:34:24 -04:00
Caleb Ukle
80635dbae2
fix(testing): move to using cy.mount (#12273) 2022-10-12 20:50:41 +00:00
Jack Hsu
4b491c86f2
fix(web): update http-server lookup so it works with pnpm (#12269) 2022-09-28 09:37:35 -04:00
Jason Jean
5d74e43775
chore(repo): temporarily switch failing e2e tests in pnpm to yarn (#12252) 2022-09-27 05:07:11 +00:00
Miroslav Jonaš
96be1f55fe
fix(testing): add cleanup on cypress e2e tests (#12089) 2022-09-19 19:22:07 +00:00
Miroslav Jonaš
9b2a43915d
fix(react): add cleanup on e2e tests (#12091) 2022-09-19 19:15:50 +00:00
Caleb Ukle
73fd49aab3
fix(testing): use webpack defined in executor options for react ct (#12005)
* fix(testing): resolve custom webpacks for react ct

* chore(testing): add more complex react ct e2e tests

* chore(testing): lower ct test timeout to prevent CI stalling when error
2022-09-14 10:58:01 -05:00
Jack Hsu
f49769a34a
feat(webpack): add webpack plugin (#11966) 2022-09-12 21:19:50 +01:00
Caleb Ukle
c7249db386
fix(testing): handle more complex projects for react component testing (#11725)
* fix(testing): use @nrwl/web:webpack utils to generate a more robust webpack config

fixes: #11372

* fix(testing): do not overwrite existing component test

* fix(testing): add component-test to cacheable operations

* chore(testing): address pr feedback
2022-08-30 16:42:42 +00:00
Victor Savkin
f8da1ad42b
chore(repo): update nx to 14.6.0-beta.3 2022-08-12 16:10:56 -04:00
Jack Hsu
f6338d7e53
chore(misc): remove unused e2e test (#11482) 2022-08-06 03:06:42 +00:00
Jack Hsu
2c8a711c69
feat(react): improve types for module federation config file (#11476) 2022-08-06 02:31:59 +00:00
Jack Hsu
4bb8ab1b36
fix(react): buildable library sets NODE_ENV correctly (#11294) 2022-07-26 13:20:17 -04:00
Caleb Ukle
8154191eb1
feat(testing): Cypress 10 and component testing support (#9201)
* feat(testing): add generator to aid in the migration to cypress 10

cypress 10 introduces a new configuration format and new layout that requires update settings and
files for e2e projects

* feat(testing): cypress component tests for react/next

initial work for cypress component tests for react and next

* feat(testing): add support for v10 e2e cypress projects

create the correct files for cypress projects >v10 and reorganize tests based on version to allow
easier parsing of tests

* feat(testing): add utils for modifying cypress v10 config

provide ts transformers to take in an existing cypress config and update/add properties within the
given configuration

* fix(testing): fix tests affected by the cypress v10 changes

update tests to assert the correct files/folders/file contents due to the cypress changes in v10

* cleanup(testing): move cypress component testing plugins into the respective packages

move the plugins into out of cypress plugins into the specific vertical plugin to prevent issues
with circular refs

* cleanup(testing): bump cypress version

bump to latest cypress v10 release

* docs(testing): update docs for cypress 10

update cypress docs to include info about component testing and migration to cypress v10

* fix(repo): revert cypress version bump

keep v9 of cypress installed for nx repo until v10 release

* fix(testing): update cypress gen tsconfig and infer targets with converter

* fix(testing): make sure tests use the cypress v10 (for the intermediate)

* fix(testing): update target name after feedback

* fix(testing): support multiple target w/custom configs for cypress v10 migration

* fix(testing): refactor cy component tests into seperate verticals

* feat(testing): create storybook cypress preset

* fix(testing): clean up cy v10 migration

* fix(testing): don't branch for cypress executor testingType

* fix(testing): move cy comp test generator to next

* fix(testing): bump cypress deps

* fix(testing): clean up cy component testing generators

* fix(testing): update cy component testing docs

* fix(testign): dep check. runtime plugin pulls from @nrwl/react

* fix(testing): move e2e into verticals

* fix(testing): address PR feedback

* fix(testing): clean up unit tests

* feat(angular): support migrating angular cli workspaces using cypress v10

* chore(testing): update e2e tests

* fix(testing): address pr feedback

* chore(testing): remove cypress component testing for next.js

* fix(testing): address pr feedback

Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com>
2022-07-08 14:34:00 -05:00
Victor Savkin
e491c6f738 feat(core): make nx.json optional 2022-05-31 15:35:28 -04:00
Victor Savkin
3d97203b1e
chore(repo): migrate to nx@14.2.0-beta.1 2022-05-30 20:10:02 -04:00
Jack Hsu
70f1a6b781
feat(web): add support for Node ESM when used to package SSR-ready library (#10349) 2022-05-18 01:11:18 +00:00
Victor Savkin
6351413b98 fix(core): preserve dash casing when passing args to executors 2022-05-17 14:48:53 -04:00
Miroslav Jonas
8a88b989fa chore(repo): increase timeout for jest e2e tests 2022-05-17 13:45:03 -04:00
Caleb Ukle
ecf88a6995
fix(testing): update v14 migration and migrate jest.config.ts to use export default (#10035)
* fix(testing): jest.preset.ts => jest.preset.js

* fix(testing): update to export default

* fix(testing): migration for moving to export default

* fix(testing): add eslint ignore comments for jest config properties

fixes: #10021

* fix(testing): update tsconfig.spec.json for next apps with project parserOptions

fixes: #9982

* fix(testing): prevent renaming root jest preset

fixes: #9973

* fix(testing): update snapshots for export default

* fix(testing): bump migration version to run

* fix(testing): make sure default jest tests pass for various projects

* fix(js): generate correct jest config for --compiler=swc --js
2022-05-11 18:04:29 +00:00
Jason Jean
e4cccfc14d
chore(repo): update nx to 14.1.1 (#10132) 2022-05-04 15:27:43 +00:00
Jason Jean
4f99b77e42
chore(repo): update nx to 14.0.2 (#9974) 2022-04-23 18:06:01 +00:00
Jack Hsu
7913f31cff
fix(react): use normalized app name in host/remote generators (#9909) 2022-04-21 02:54:39 +00:00
Jack Hsu
586501aa35
chore(react): update MFE language to module federation (#9888) 2022-04-19 20:48:49 +00:00
Jack Hsu
d4682be058
feat(react): update @types/react and other packages (#9767) 2022-04-12 11:29:01 -04: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
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
475143b3b4
feat(react): add postcssConfig option to apps to enable auto-loading or set a single path (#8849) 2022-02-05 12:24:07 -05:00