647 Commits

Author SHA1 Message Date
Craigory Coppola
79cf69b4e4
feat(core): consolidate nx.json and workspace.json (#6642)
* feat(core): consolidate settings between workspace.json + nx.json

workspace.json (and linked project.json files) now contain all project specific settings.
nx.json now contains all settings that affect the whole workspace.

* chore(core): fix angular unit tests w/ new config

* chore(core): fix failing tests

* chore(core): fix formatting

* chore(core): fix more tests

* chore(core): normalize-nx-json feedback

* chore(core): Fix more unit tests

* chore(core): fix remaining tests in workspace

* chore(linter): fix remaining linter tests

* chore(core): fix remaining spec + build issues

* chore(core): formatting fixes

* feat(core): migration script to move config options to new locations

* chore(core): fix e2e tests

* chore(core): run format

* chore(react-native): fix failing tests

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* feat(core): move properties to new location during format step

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* feat(core): initial pass on ngcli-adapter for property consolidation

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* chore(misc): fix tests

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* docs(core): update docs with changes

* chore(misc): fix tests

* chore(core): code review changes

updateWorkspaceJson -> updateWorkspace, no longer uses updater function

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* chore(core): fix bug in ngcli impl

* fix(core): fix bug in ngcli-adapter

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* fix(core): fix ngcli-adapter

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* chore(core): fix workspace e2e

* chore(core): fix nx-plugin e2e

* fix(core): move defaultProject to nx.json

* chore(core): fix broken workspace test

* chore(core): formatting

* chore(core): fix workspace format

* chore(core): add nxJson to ExecutorContext

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* chore(core): remove all references ot `NxProjectConfiguration` from our code

* chore(core): Review Changes

* fix(core): update new config locations v13 migration
2021-10-14 10:42:47 -04: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
a8bcd27933
fix(react): apply postcss config from apps to their lib dependencies (#7265)
Fixes #7040
2021-10-08 14:10:25 -04:00
Xie Jay
2bcc552fa0
fix(web): remove default value of baseHref (#6994)
close #5079
2021-10-04 14:50:26 -04:00
Santosh Yadav
364a276bc0
fix(core): fix vulnerabilities (#7222) 2021-10-04 16:05:55 +00:00
Miroslav Jonaš
6217899e24
chore(react): migrate testing library to v11.2.6 (#7190) 2021-10-01 18:19:09 +00:00
Emily Xiong
18e369c85c
bugfix(core): fix issue when having a project name with directory in it (#7120) 2021-09-24 15:10:44 -04:00
Victor Savkin
d79bba3630 chore(repo): update to nx 12.10 2021-09-20 16:39:13 -04:00
Himadu2000
e5b9d80abc
feat(react): updating @reduxjs/toolkit to 1.6.1 (#6939)
Updated @reduxjs/toolkit from 1.5.0 to 1.6.1
2021-09-16 14:05:32 +00:00
Andrew Luca
fe7c25d00f
chore(misc): add repository directory for all packages.json (#6973) 2021-09-15 11:53:08 -04:00
Ashwin Gokhale
8757423924 feat(react): Allow tailwind glob to watch for changes to html files 2021-09-07 17:48:22 +02:00
Jason Jean
1b6c0ee7fa
feat(misc): add x-type to app and lib generators (#6874) 2021-08-27 19:28:01 -04:00
Jason Jean
a7f89508e5
feat(linter): cache --outputFile (#6852) 2021-08-26 11:25:51 -04:00
AgentEnder
c9c8fa7f1c chore(core): project.json should not be included in builds
Signed-off-by: AgentEnder <craigorycoppola@gmail.com>
2021-08-20 20:22:30 -04:00
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