3835 Commits

Author SHA1 Message Date
Jason Jean
6d6964ab03
chore(nxdev): update latest version documentation to v12.8.0 (#6844) 2021-08-25 14:44:18 +00:00
Nrwl CI Machine
f4f6d4fe46 docs(misc): add a guide on using nx with yarn workspaces 2021-08-25 10:37:52 -04:00
Jason Jean
1fdbba9917 Release 12.8.0 2021-08-25 10:27:14 -04:00
Brandon
0c9ac4f1e7
chore(nxdev): update speaker list (#6837) 2021-08-24 12:47:10 -05:00
Leosvel Pérez Espinosa
a30d9e11f8
docs(core): improve cli docs (#6669) 2021-08-24 16:05:02 +00:00
Brandon
c1c7a42444
feat(angular): update NgRx to 12.4.0 (#6828) 2021-08-24 11:26:12 -04:00
Colum Ferry
9b3f920a3b
docs(angular): add mfe guide (#6829)
* docs(angular): add mfe guide

Add guide "How to setup a Micro Frontend with Angular and Nx" to docs

* docs(angular): fix some issues with mfe guide

Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2021-08-24 11:23:20 -04:00
Jason Jean
fa3dcabe8a
docs(core): add cli overview page and a section documenting how to keep configuration in sync (#6832)
Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com>
2021-08-24 02:13:25 +00:00
Jason Jean
da7bbc908e
docs(core): rewrite the CLI guide (#6801) 2021-08-23 22:08:41 -04:00
Jason Jean
0772cb3642
Revert "chore(repo): update nx to 12.8.0-beta.1 (#6804)" (#6831)
This reverts commit 8e8191f22c7bce330c2c314f37bdf57c71cabadb.
2021-08-24 01:48:50 +00:00
Jason Jean
8e8191f22c
chore(repo): update nx to 12.8.0-beta.1 (#6804) 2021-08-23 18:03:59 +00:00
Nrwl CI Machine
8cc41de22a fix(core): updateWorkspaceConfiguration does not respect extends 2021-08-23 10:51:19 -04:00
AlmarAubel
e2637760ca
feat(storybook): add vue3 support for storybook executer (#6604)
`This PR adds support for 'vue3' so it can be used to run storybook in a NX workspace

Closes #6603
2021-08-23 10:16:16 +03:00
Jason Jean
84e7f46473
fix(repo): fix npm e2e tests (#6806) 2021-08-22 16:45:55 -04:00
Juri
4305c5ef63 fix(testing): jest migration for Angular in 12.4 2021-08-22 12:50:47 +02:00
Sumit Parakh
47d1d38fae
feat(testing): update cypress to 8.x (#6808)
ISSUES CLOSED: #6430
2021-08-21 15:08:34 -04:00
Jason Jean
4d6b5ff7af
fix(core): fix reading project config when nx.json doesn't have projects (#6802) 2021-08-20 20:19:02 -06: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
Jason Jean
b2ea44ea87
fix(testing): fix remove typescript plugin migration when project has no targets (#6803) 2021-08-20 22:57:04 +00:00
Jason Jean
a3c9a63dc2
chore(repo): fix version field in the package.json (#6799) 2021-08-20 19:44:44 +00:00
Jason Jean
c01b538985
chore(misc): fix failing unit test in npm-package (#6798) 2021-08-20 14:58:45 -04:00
Jason Jean
bfa06ce8b0
feat(misc): add generator for simple npm-package (#6784) 2021-08-20 14:10:00 -04:00
Jack Hsu
9d8431d567
fix(testing): remove webpack dependency since it is causing issues with MFE (#6794) 2021-08-20 14:08:55 -04:00
Jason Jean
85f92e740e
feat(misc): simplify npm scripts generated (#6764) 2021-08-20 12:07:26 -04:00
Lars von Qualen
6b37e4b2f1
feat(node): builder should support multiple entry files (#5741)
Adds a new option to the node build executor in order to enable multiple entry files.
2021-08-20 15:49:56 +00:00
Colum Ferry
592c47ab6f
Revert "fix(angular): mfe not installing webpack correctly (#6789)" (#6793)
This reverts commit ee47b1769068551bcaf03f2ac6086091d4ec6dc3.
2021-08-20 15:29:20 +00:00
Colum Ferry
ee47b17690
fix(angular): mfe not installing webpack correctly (#6789) 2021-08-20 15:47:45 +01: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
Miroslav Jonaš
3b2f0b64ea
fix(core): remove .eslintrc double extends update on move (#6765)
* fix(core): remove eslintrc double extends update on move

* fix(core): move eslintrc move logic back to eslint update
2021-08-20 02:56:56 -04:00
Jason Jean
81d36ee737
fix(repo): skip package manager detection tests for other package managers (#6783) 2021-08-20 06:51:25 +00:00
Jonathan Cammisuli
bd2a635cfd
feat(core): add default path argument for readNxJson (#6779) 2021-08-19 21:43:08 +00:00
Leosvel Pérez Espinosa
ff202d323c
cleanup(misc): rename oss preset to npm and update presets related docs (#6777) 2021-08-19 11:10:29 -07:00
Juri
2f3742b3b1 fix(nextjs): adjust .babelrc for Next libraries with emotion styling 2021-08-19 20:06:41 +02: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
Juri
a3b22aae50 fix(angular): don't error when project configuration has no targets 2021-08-19 18:10:10 +02:00
Juri
eb15cffa86 fix(nextjs): remove styled-jsx/babel from .babelrc as next/babel has it already built-in 2021-08-19 17:41:28 +02:00
Juri
a8fcd421d5 fix(storybook): add styled-jsx typings to Storybook tsconfig 2021-08-19 17:41:28 +02:00
Jack Hsu
68d6e9cec9
docs(core): fix relative images for previews on vercel (#6473) 2021-08-19 13:55:23 +00:00
Ashwin Gokhale
101a89e9e8
fix(web): Added WebpackError for webpack 4 compatibility (#6519)
* fix(web): Added WebpackError for webpack 4 compatibility

* Added WebpackError to cypress and node
2021-08-19 09:48:33 -04:00
Noriyuki Shinpuku
0841b55465
fix(nextjs): fix .babelrc for emotion v11 (#6728) 2021-08-19 09:45:16 -04:00
Miroslav Jonaš
3748292d9d
fix(misc): improve alignment and spacing for mobile view (#6768) 2021-08-19 15:27:55 +02: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
Ryan Marganti
74964834e5
fix(web): syncs loose option between @babel/preset-env and @babel/plugin-proposal-class-properties (#6715)
If `loose` is set to `true` for `@babel/plugin-proposal-class-properties`, the same must be true for
`@babel/preset-env`.

ISSUES CLOSED: #6683
2021-08-18 21:57:05 -04:00
Miroslav Jonaš
b32062416a
fix(core): skip caching output properties missing in options and arguments (#6743)
* fix(core): add outputFile to cached outputs

* fix(core): ignore output properties missing in options and console arguments
2021-08-18 19:56:01 -04:00
Sumit Parakh
295b8d737c
fix(core): fix --directory alias conflict (#6596)
ISSUES CLOSED: #6571
2021-08-18 18:02:12 -04:00
Shihab Uddin
eaa0287238
fix(core): always use environment variable for cache directory (#6746)
In 6c16ee0feead3f01c575af2b998fe614c207ac96 the environment variable was used
while reading from `nx.json`. But in `packages/workspace/src/tasks-runner/cache.ts`
the `cacheDirectory` is used without using `readCacheDirectoryProperty`. Now we
check the environment variable in `cacheDirectory`, so that the environment
variable is always used.

ISSUES CLOSED: #6629
2021-08-18 17:56:13 -04:00
Chau Tran
8297386d80
feat(node): add TS plugins support for build executor (#6677)
* feat(node): add TS plugins support for build executor

ISSUES CLOSED: #2147

* docs(node): add tsPlugins to node build executor schema

* chore(node): reformat schema json

* chore(repo): update yarn.lock

* cleanup(node): adjust tsPlugins test for node build executor

* cleanup(node): remove packageJson check for tsPlugins test

* cleanup(node): increase timeout for tsPlugins e2e test

* cleanup(node): use type import for typescript types instead of importing typescript

Co-authored-by: Chau Tran <ctran@Chaus-MacBook-Pro.local>
Co-authored-by: Miroslav Jonas <missing.manual@gmail.com>
2021-08-18 17:48:18 -04:00
Jason Jean
6fbf7ffa16
feat(misc): remove ts-node, tslib, and dotenv from empty workspace package.json (#6763) 2021-08-18 17:36:11 -04:00
Chau Tran
3bcfaf018d
feat(core): detect package manager used to invoke create-nx-(plugin|workspace) (#6749)
* feat(core): detect package manager used to invoke create-nx-(plugin|workspace)

When consumers create a new Workspace (or Plugin) using the create-nx-workspace (or
create-nx-plugin) generator, the package manager used to invoke the generator will be detected and
used as packageManager. For example: pnpx create-nx-workspace will use pnpm, yarn create
nx-workspace will use yarn. Explicit `--packageManager` flag will be priority over the detection.

* cleanup(core): reassign SELECTED_PM after each test run

* fix(core): augment args instead of hardcode --packageManager flag

* cleanup(core): use packageManagerLockFile instead of magic strings

* cleanup(core): fix typo in create-nx-workspace

* cleanup(core): ensure new workspace name for every test

* feat(core): detect package manager used to invoke create-nx-(plugin|workspace)

When consumers create a new Workspace (or Plugin) using the create-nx-workspace (or
create-nx-plugin) generator, the package manager used to invoke the generator will be detected and
used as packageManager. For example: pnpx create-nx-workspace will use pnpm, yarn create
nx-workspace will use yarn. Explicit `--packageManager` flag will be priority over the detection.

* cleanup(core): reassign SELECTED_PM after each test run

* fix(core): augment args instead of hardcode --packageManager flag

* cleanup(core): use packageManagerLockFile instead of magic strings

* cleanup(core): fix typo in create-nx-workspace

* cleanup(core): ensure new workspace name for every test

* fix(core): move detectInvokedPackageManager off of tao

Co-authored-by: Chau Tran <ctran@Chaus-MacBook-Pro.local>
2021-08-18 12:09:00 -04:00
Brandon
62c3edf273
docs(core): update guide and images for affected deep dive (#6757) 2021-08-18 07:35:20 -05:00