487 Commits

Author SHA1 Message Date
Jack Hsu
17cef57656
cleanup(nextjs): re-enable storybook e2e test for next.js (#12384) 2022-10-04 00:19:31 -04:00
Phillip Barta
d91c7ca4ec
fix(linter): remove leftovers after tslint support removal (#12313) 2022-09-30 12:02:05 +01:00
Wenchen Li
ba657da7c5
fix(webpack): regression from #10432 to allow // prefix in remote (#12302) 2022-09-29 16:16:50 +01:00
Colum Ferry
09c6ccb266
feat(linter): remove tslint support (#12279) 2022-09-28 11:08:01 -04:00
Jack Hsu
4b491c86f2
fix(web): update http-server lookup so it works with pnpm (#12269) 2022-09-28 09:37:35 -04:00
Jack Hsu
09cfbf090b
feat(react): add stylus as a dependency since stylus-loader requires it (#12266) 2022-09-28 02:07:57 +00:00
Craigory Coppola
9b63ce167a
feat(core): don't generate workspace.json for v2 workspaces (#12127) 2022-09-27 23:16:22 +00:00
Katerina Skroumpelou
2f7d647f52
docs(storybook): examples for executors and generators (#12267) 2022-09-27 13:03:23 -04:00
Julien Tanay
2f91d962e8
feat(storybook): add support for basic test-runner configuration (#11101)
Closes #11047
2022-09-27 09:04:28 +00:00
Katerina Skroumpelou
24880aab8c
fix(storybook): optional chaining for typename text (#12235)
ISSUES CLOSED: #12155
2022-09-27 08:56:29 +00:00
Katerina Skroumpelou
b74201fb53
fix(storybook): set type of Story directly (#12241)
#12125

ISSUES CLOSED: #12125
2022-09-27 08:53:56 +00:00
Jack Hsu
e195546e40
feat(react): update package versions (#12187) 2022-09-22 15:39:32 +00:00
Jason Gerbes
4dc331c914
feat(react): improve babel preset options (#10940)
Improved the '@nrwl/react/babel' preset to allow for customisation of all options provided by
the
'@nrwl/web/babel' preset.

ISSUES CLOSED: #10939

Co-authored-by: Jason Gerbes <jason.gerbes@vista.co>
2022-09-22 11:16:29 -04:00
Benjamin Cabanes
da0cc4792f
docs(nxdev): update internal reference links (#12083) 2022-09-19 19:15:19 +00:00
Victor Savkin
6e6925f8e4
chore(repo): update to nx 14.7.6-beta.6 2022-09-17 15:59:06 -04:00
MaxKless
fd670d298b
docs(misc): update package descriptions to be more consistent (#12039) 2022-09-16 17:03:33 -04: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
Caleb Ukle
1a9df531b6
fix(testing): normalize paths for component-testing (#11963)
* fix(testing): normalize paths before accessing the project graph

* fix(testing): return object with offset input instead of string

* fix(testing): update schemas to provide better prompts
2022-09-13 14:17:49 +00:00
Jack Hsu
ee8ba2de57
feat(misc): remove unused dependencies from packages (#11986) 2022-09-13 08:27:07 -04:00
Jack Hsu
f49769a34a
feat(webpack): add webpack plugin (#11966) 2022-09-12 21:19:50 +01:00
Caleb Ukle
6d0c6a83d4 fix(testing): move cypress tsconfig to cypress folder 2022-09-09 10:37:48 -04:00
Caleb Ukle
a0904a601b
feat(testing): support angular cypress component testing (#11790)
* feat(testing): ng cypress component testing

closes: #11602

* chore(testing): move story utils into common util area

* feat(testing): add options for ng component testing

* docs(testing): add more info for component testing

* chore(testing): address PR feedback

* chore(testing): remove logs
2022-09-07 13:32:19 +00:00
Jack Hsu
81c06f899f
feat(react): update package versions (#11800) 2022-08-31 09:52:49 -04: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
Jack Hsu
77f0508dde
feat(react): update package versions (#11667) 2022-08-22 11:55:44 -04:00
Caleb Ukle
657b2bff5a
feat(testing): support jest 28 (#10857)
* feat(testing): support jest 28

WIP jest migration

* fix(testing): jest-environment-jsdom must be explicitly added now

* fix(testing): add rxjs to the transform lsit

* fix(testing): jest ts-jest updates and resolver issues

* feat(testing): remove test runner for react native jest

* feat(testing): add preprocessor for react native jest

* fix(testing): update query to handle tsx file syntax, remove rxjs transform

* chore(repo): remove file from accident commit

* chore(testing): update migration to target 14.6 for RN jest preprocessor

* fix(testing): call passed in packageFilter if preset

* docs(testing): add resolver env var to troubleshooting guide

* chore(repo): prep resolver for jest 28 migration

* fix(testing): update deps to handle esbuild-wasm service error

* fix(testing): switch to testEnvironmentOptions for cjs loading vs resolver list

* fix(testing): force babel-jest preset in transformer for project transforms

* chore(testing): address PR feedback

* fix(testing): address pr feedback, remove react-native transform

* chore(testing): update createTreeWithEmptyWorkspace calls

* chore(testing): address pr feedback

* feat(testing): add migration script for react native to rename .babelrc to babel.config.json

* chore(testing): nx format after rebase

* chore(testing): fix display name for @nrwl/js

Co-authored-by: Emily Xiong <xiongemi@gmail.com>
2022-08-18 18:40:31 -04:00
Miroslav Jonaš
187f5200c0
fix(linter): add jest to root .eslintrc if selected as unit test runner (#11555) 2022-08-18 14:51:09 +02:00
David (ダビッド )
34fdbc0de2
fix(react): fix webpack node api config error serving a react app (#11580)
Webpack compiles a react app and the main.js file created contains __dirname variable. This crash
the application when it is served. The webpack node api config has been enabled.

ISSUES CLOSED: #11571
2022-08-17 13:55:32 -04:00
Jack Hsu
6fd0da52c6
feat(react): update packages (#11606) 2022-08-16 13:49:50 +00:00
Victor Savkin
f8da1ad42b
chore(repo): update nx to 14.6.0-beta.3 2022-08-12 16:10:56 -04:00
Craigory Coppola
458fc36014
chore(misc): split create tree with empty workspace to remove parameter (#10188)
* feat(devkit): split create-empty-tree to different functions

* chore(repo): apply migration for createEmptyTree

* cleanup(misc): fix tests that migration misses
2022-08-11 19:24:04 -04:00
Jack Hsu
e4d60da452
feat(react): update packages (#11499) 2022-08-08 18:38:36 +00:00
Katerina Skroumpelou
8bc99407aa
feat(storybook): ignore paths when generating stories (#11111)
* feat(storybook): ignore paths when generating stories

ISSUES CLOSED: #10211

* cleanup(storybook): add test for nested component ignore path

* feat(storybook): ensure ignore paths parsed correctly

Co-authored-by: Colum Ferry <cferry09@gmail.com>
2022-08-08 14:17:06 +01:00
Jack Hsu
2c8a711c69
feat(react): improve types for module federation config file (#11476) 2022-08-06 02:31:59 +00:00
Jack Hsu
5d167ee8a4
feat(react): update emotion and tailwind versions (#11409) 2022-08-03 08:35:51 -04:00
Juri
9c93c907fd fix(react): adjust nx-console related x-dropdown prop name 2022-08-03 10:39:06 +02:00
Juri Strumpflohner
bf2c79bc01
fix(react): allow positional params for setup-tailwind generator (#11396) 2022-08-02 09:11:49 -04:00
Caleb Ukle
b4c4501979
docs(testing): update docs to use correct filenames for cypress and jest (#11394)
ISSUES CLOSED: #11392
2022-08-01 13:25:26 -05:00
Katerina Skroumpelou
fee72e4ac6
chore(react): remove storybook logger dependency (#11306) 2022-07-27 13:39:42 +00:00
Jack Hsu
3b3d8fff22
feat(react): update eslint a11y plugin version (#11279) 2022-07-25 07:48:19 -06:00
Jack Hsu
8173887fbb
feat(react): add tailwind setup generator (#11214)
LGTM!
2022-07-19 13:07:37 -06:00
Leosvel Pérez Espinosa
01f7376169
cleanup(misc): consolidate tslib version in generated projects (#11185) 2022-07-19 12:59:37 -04:00
Jack Hsu
d657f912d9
feat(web): upgrade webpack plugin versions (#11191) 2022-07-18 15:23:30 -04:00
Mads Thines
edc9ce12a1
fix(storybook): adjusted STORYBOOK_ (#11171)
Corrected the `STORYBOOK_` RegExp to match documentation
https://storybook.js.org/docs/react/configure/environment-variable
2022-07-18 11:50:10 +00:00
Ihor
57a6ebcfcd
fix(react): fix typo in testing-library migrations 2022-07-15 14:46:38 -04:00
Jack Hsu
39cc96a936
feat(react): update react package versions (#11168) 2022-07-15 17:42:08 +00:00
Leosvel Pérez Espinosa
2163c54b85
fix(react): do not set a module federation remote project as the default project (#11128) 2022-07-13 15:32:03 -04:00
Katerina Skroumpelou
a2d9577553
fix(storybook): fix schema to read projectName from config (#11098) 2022-07-12 09:55:22 -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
Miroslav Jonaš
b8efa778f6
fix(core): remove eslintrc.json from the package build artifact (#11043) 2022-07-07 18:34:34 +00:00