79 Commits

Author SHA1 Message Date
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
Victor Savkin
9e75918154
feat(core): speed up file map creation (#8597) 2022-01-19 15:30:21 -05:00
James Henry
faef0d8c85
chore(core): task runner dynamic output life cycle (#8590) 2022-01-19 14:52:10 -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
Kirils L
3d7b909af7
fix(nextjs): codesplit buildable next libs (#7717) 2021-11-22 09:40:14 -05:00
AgentEnder
f6a562d1ec chore(repo): migrate to v13.1.4 2021-11-11 15:12:06 -05:00
Miroslav Jonaš
1a3a8cff1f
chore(repo): remove deprecated headless flag from e2e tests (#7428) 2021-10-19 17:25:53 -04:00
Jack Hsu
9c1ae3a1b0
chore(web): clean up webpack setup (#7411) 2021-10-19 09:07:33 -06:00
Craigory Coppola
bdcbac4445
feat(core): standalone project configuration is default (#7351)
* feat(core): standalone project configuration is default

* chore(core): changes to e2e tests

* fix(core): intuit projects when inside their directories when using project.json files

* chore(core): e2e changes

* fix(core): standalone configurations work with npm-project generator

* chore(core): e2e tests should use standalone configurations

* chore(core): e2e fixes per review
2021-10-16 00:07:12 +02:00
Jack Hsu
fc3573f1ca
chore(web): remove install and build warnings (#7343) 2021-10-14 05:27:30 +02:00
Jack Hsu
724b0c0e3c
feat(core): upgrade to webpack 5 (#7283)
* feat(core): upgrade to webpack 5

* chore(core): update webpack 5 docs
2021-10-13 00:34:28 -04:00
Jack Hsu
711e80e01f
chore(react): update e2e tests to be less flaky in CI (#7247)
- the output formatting isn't consistent in CI so check file existence
  instead
2021-10-05 13:28:00 +00:00
Jack Hsu
9c2a8b155c
feat(react): buildable React libraries now generate smaller ESM packages (#7199) 2021-10-04 14:39:20 -04:00
Marko Grešak
bbeb89cbc2
fix(web): fix stylesOptimization for webpack 5 (#6817)
ISSUES CLOSED: #6816
2021-09-15 15:22:07 +00:00
Jack Hsu
06d20352f7
fix(react): fix extracCss option for webpack 5 (#6925) 2021-09-03 12:17:48 -04:00
Jack Hsu
cddb1edd56
feat(react): add format option for buildable libs (#6753)
- Clean up @nrwl/web:package executor
- Combine react package e2e tests to speed up test time
2021-08-18 23:08:30 -04:00
Miroslav Jonaš
549b735057
chore(repo): improve e2e test stability (#6658)
* chore(repo): rest mac failing tests

* chore(repo): update mac to bigsur

* chore(repo): revert mac to catalina

* chore(react): fix flaky react report test

* chore(web): check if content exists serving file server

* chore(core): fix flaky arguments test

* chore(repo): increase duration of web file serve test

* chore(repo): fix tests

* chore(repo): fix cleanup console logs

* chore(repo): test latest changes

* chore(repo): fix typo

* chore(repo): remove content check from file-server

* chore(repo): check workspace

* chore(repo): check workspace

* chore(repo): turn on all the tests
2021-08-09 12:48:48 -07:00
Craigory V Coppola
442e4fc6a1
chore(repo): convert to project json format (#6286) 2021-07-08 11:36:35 -04:00
Jack Hsu
801dad4da9
fix(web): fix stylePreprocessorOptions option (#6265) 2021-07-07 13:29:51 -04:00
Jack Hsu
4b859493ea
feat(web): add migration generator for webpack 5 (#6232) 2021-07-06 12:21:20 -04:00
Miroslav Jonaš
f77bc78cba
chore(repo): run all cypress e2e tests headless and w/o watch (#6125) 2021-06-25 12:59:51 +02:00
vsavkin
8a7b6c8405 feat(core): replace strictlyOrderedTargets with targetDependencies 2021-06-18 06:54:33 -04:00
Miroslav Jonaš
bb8d73fb3e
feat(repo): remove obsolete kill commands and check if ports closed (#5939) 2021-06-14 12:48:33 +02:00
Noriyuki Shinpuku
a037dcb351
cleanup(react): remove import react from component generator (#5686) 2021-05-19 11:40:24 -04:00
vsavkin
d4e659c660 feat(repo): explicitly kill processes holding onto ports 2021-05-03 11:59:28 -04:00