782 Commits

Author SHA1 Message Date
Juri Strumpflohner
20d4ae2ed9
fix(storybook): add Emotion v11 support to current Nx React Storybook setup (#6787) 2021-08-20 08:54:56 -04:00
Jack Hsu
28ebfae4ea
feat(react): add a hook generator (e.g. useThing) (#6773)
1- Implement a hook generator which provides the skeleton for a new hook, including a test which
uses @testing-library/react-hooks
2- add --pascalCaseDirs to the component generator, so you can
have 'SomeComponent/SomeComponent.tsx' instead of 'some-component/SomeComponent.tsx'

Co-authored-by: Sam Clement <samclement@msn.com>
2021-08-19 13:19:35 -04:00
Sumit Parakh
295b8d737c
fix(core): fix --directory alias conflict (#6596)
ISSUES CLOSED: #6571
2021-08-18 18:02:12 -04:00
Jason Jean
2f442ec632
feat(testing): remove cypress typescript preprocessor (#6706) 2021-08-16 16:23:17 -04:00
kazamov
05faf8830b
fix(storybook): add check if plugins exist or fallback to empty array (#6714)
As storybookWebpackConfig.resolve.plugins may be undefined add a fallback to empty array.

Co-authored-by: Zakir Nuriiev <zakir.nuriev@caspio.com>
2021-08-13 13:29:32 -04:00
Jack Hsu
422c5f8c8e
fix(react): relax babel dependency versions (#6637) 2021-08-06 15:40:05 -04:00
Juri
b5b5f250d0 feat(react): add Nx React Storybook preset 2021-08-06 18:11:47 +02:00
Miroslav Jonaš
3aca62af68
cleanup(repo): remove unused ext from file data and fix ext regex matcher (#6550) 2021-08-04 09:45:07 -04:00
Jack Hsu
70c0921180
feat(react): add fast refresh support for webpack 5 (#6529) 2021-07-29 18:16:26 +00:00
Miroslav Jonaš
117ee9308a
cleanup(core): use isNpmProject and cleanup project graph utils (#6522)
* cleanup(core): use isNpmProject and cleanup project graph utils

* chore(core): mark utils/buildable-libs-utils as deprecated
2021-07-29 11:17:31 -04:00
Juri Strumpflohner
7c261511e0
fix(react): align component and e2e test generation (#6535) 2021-07-29 10:29:03 -04:00
Leosvel Pérez Espinosa
9044a8f869
cleanup(misc): rename collection.json to generators.json (#6442) 2021-07-21 11:42:43 +01:00
James Henry
f76a33f5bb
chore(core): add readCachedProjectGraph and deprecate previous utility (#6385)
* chore(core): add readCachedProjectGraph and deprecate previous utility

* chore(core): whitespace

* chore(core): explicitly use type ProjectGraphCache

* chore(core): fix typo
2021-07-20 11:44:48 -04:00
Jason Jean
7de111c25b
feat(core): update typescript to 4.3 (#6397) 2021-07-16 17:29:03 -04:00
James Henry
87e6d9dc77 chore(core): refactor createProjectGraph to be async, deprecate sync usage 2021-07-14 14:58:16 -04:00
Katerina Skroumpelou
dbb74c6c67
feat(storybook): story generator takes into account actions (#6302) 2021-07-09 11:06:16 +02:00
Craigory V Coppola
442e4fc6a1
chore(repo): convert to project json format (#6286) 2021-07-08 11:36:35 -04:00
Miroslav Jonaš
8ab463e386
cleanup(core): replace deprecated usage of appRootPath (#6241)
* cleanup(core): replace deprecated usage of appRootPath

* cleanup(core): revert migration changes
2021-07-05 15:51:19 -04:00
Jack Hsu
369da3ee78
feat(web): add support for webpack 5 (#5892) 2021-06-29 08:41:01 -04:00
Noriyuki Shinpuku
42875324f4
Revert "feat(react): update generator defaults in workspace.json for strict mode (#5529)" (#6146)
This reverts commit bcdbb02aaf7596f92e5351d29496f87f3c6a17fd.
2021-06-28 13:32:26 -04:00
Jason Jean
4f7191e154 chore(repo): update nx to 12.5.0-beta.5 2021-06-25 17:08:37 -04:00
Juri
0175dfc303 feat(react): add createGlobPatternsForDependencies utility useful in tailwind CSS purging 2021-06-25 15:54:56 -04:00
Katerina Skroumpelou
e13b423ddb
feat(storybook): from addon-knobs to controls (#6068) 2021-06-25 18:17:48 +03:00
Craigory V Coppola
f1911a71f3
feat(core): split nx config to project files (#5880) 2021-06-22 20:30:38 -04:00
Phillip Barta
fe97444d78
feat(core): migrate prettier to v2.3.1 (#5623) 2021-06-17 16:44:30 +02:00
Katerina Skroumpelou
0dd89999ea
fix(storybook): generating stories without an existing e2e project (#5799) 2021-06-08 09:37:24 +02:00
Noriyuki Shinpuku
d3c45b32b9
fix(react): fix externals for buildable libraries (#5540)
ISSUES CLOSED: #5508
2021-05-31 10:17:33 -04:00
Noriyuki Shinpuku
a14924b809
feat(react): generate library with strict mode by default (#5720) 2021-05-31 10:16:15 -04:00
James Henry
a3c08a9153
feat(linter): do not set eslint parserOptions.project by default (#5798) 2021-05-28 13:35:34 +00:00
Miroslav Jonaš
76a3092891
fix(testing): enable and fix several disabled unit and e2e tests (#5711) 2021-05-28 14:35:04 +02:00
Vaughan Reid
b50d7e4b0c
fix(react): nextjs check causes linting commands to fail (#5705)
* fix(react): is next js check caller is sometimes undefined

* fix(react): refactor to optional chaining

Co-authored-by: Mark Goho <markgoho@gmail.com>

Co-authored-by: Mark Goho <markgoho@gmail.com>
2021-05-22 13:16:16 -04:00
Noriyuki Shinpuku
a037dcb351
cleanup(react): remove import react from component generator (#5686) 2021-05-19 11:40:24 -04:00
vsavkin
f82344d63a chore(repo): refine the tag line 2021-05-18 20:55:40 -04:00
vsavkin
af23cc5d7d feat(misc): change the nx tag line 2021-05-18 16:07:22 -04:00
Emily Xiong
b8584a6f18
feat(react): add react fast refresh to webpack (#5612) 2021-05-18 15:47:18 -04:00
Phillip Barta
52e3083a19
feat(core): added encoding param in Tree.read() (#5668)
feat(core): added encoding param in Tree.read()
2021-05-17 21:03:04 -04:00
Noriyuki Shinpuku
cdb4cdc196
fix(react): fix application template for strict mode (#5552) 2021-05-14 12:00:13 -04:00
Noriyuki Shinpuku
bcdbb02aaf
feat(react): update generator defaults in workspace.json for strict mode (#5529)
ISSUES CLOSED: #5250
2021-05-14 10:06:42 -04:00
Leosvel Pérez Espinosa
678818a58b
feat(angular): upgrade Angular to v12.0.0-rc.3 (#5630)
* feat(angular): upgrade Angular to v12.0.0-rc.3

* feat(angular): target Nx v12.4.0-beta.0 for Angular v12.0.0-rc.0 upgrade

* fix(angular): use defaultConfiguration if no other configuration is passed

* cleanup(angular): sync migration folder name to target version

* fix(repo): creating custom schema flattener for docs

* chore(repo): amend yarn.lock

* feat(angular): update angular storybook to use webpack 5

* fix(angular): add legacy peer deps for angular+jest

* fix(angular): move migrations to 12.3.0-rc.0

Co-authored-by: Zack DeRose <zack.derose@gmail.com>
Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2021-05-12 12:20:12 -04:00
Kirils L
d251a4f49f
feat(nextjs): update to 10.2.0 (#5503) 2021-05-06 00:05:40 +03:00
Noriyuki Shinpuku
321815d56d
fix(react): fix react library generator for strict option (#5249) 2021-05-02 22:01:51 -04:00
Noriyuki Shinpuku
6cb1dc65d0
feat(react): add strict option to react application generator (#5248) 2021-05-02 22:01:43 -04:00
Katerina Skroumpelou
6b7b6815c1
feat(storybook): update Angular Storybook to use new Storybook v6 syntax (#5398) 2021-04-29 11:02:04 +02:00
Tasos Bekos
156e3c2c40 chore(repo): use jest-circus runner 2021-04-26 15:16:09 -04:00
Minijus L
357ecd09a4
fix(testing): update ts-jest to version 26.5.5 (#5405)
Update `jest.config.js` ts-jest section with lower-cased 'tsconfig' property as 'tsConfig' is to be deprecated in version 27.
2021-04-26 08:56:52 -04:00
Vivek
4a5345363b
docs(misc): update READMEs to have alt on <img> tags (#5306) 2021-04-22 13:36:00 +00:00
Rares Matei
bd21728255
feat(storybook): infer Cypress project name from app source (#5404) 2021-04-22 15:16:49 +02:00
Tuan Dang
13ca51c60a
fix(storybook): generate story file in new jsx transform (#5369)
fix(storybook): generate story file in new jsx transform
2021-04-16 08:45:52 -04:00
Jason Jean
d007d37fb4
fix(devkit): add env variable to disable project graph cache (#5297) 2021-04-15 10:29:33 -04:00
Tuan Dang
656d808aa3
fix(react): fix react publish library copy readme (#5345) 2021-04-15 00:01:03 -04:00