4169 Commits

Author SHA1 Message Date
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
Nrwl CI Machine
5f02a10ac9 feat(core): add an ability to extend nx.json config 2021-08-17 14:44:41 -04:00
Colum Ferry
149a357c6e
fix(angular): prevent default importPath for publishable libs (#6755) 2021-08-17 16:59:49 +00:00
Jason Jean
5c1bc60de8
fix(core): fix validation of string length (#6741) 2021-08-17 02:42:22 +00:00
Jason Jean
c90aaea256
fix(repo): fix release to properly generate changelog (#6740) 2021-08-16 18:27:15 -04:00
Michaël De Boey
d0b65fab18
feat(nextjs): expose libraryGenerator (#6725) 2021-08-16 16:33:02 -04:00
Gustavo Bini
572e24e466
feat(react): add --changedSince flag to jest runner (#6729) 2021-08-16 16:24:36 -04:00
Jason Jean
2f442ec632
feat(testing): remove cypress typescript preprocessor (#6706) 2021-08-16 16:23:17 -04:00
Phumrapee Limpianchop
fc11571178
fix(nextjs): Next 11.1.0 compatibility (#6699)
Co-authored-by: Kirils L <9858620+kirjai@users.noreply.github.com>
2021-08-16 08:00:19 -07:00
Miroslav Jonaš
08528a8018
chore(repo): disable osx workspace e2e test for nightly (#6734) 2021-08-16 16:04:49 +02:00
Miroslav Jonaš
b787eafab8
chore(repo): make circleci jobs parametrised for running on different environments (#6709) 2021-08-16 15:40:55 +02:00
srleecode
27dd4cf7ff
feat(generators): Export @nrwl/angular:init (#6721)
feat(generators): Export @nrwl/angular:init

Exports @nrwl/angular:init so that it can be used by other generators

Closes #6713
2021-08-16 14:07:31 +01:00
Jason Jean
5a2b7f4a34
fix(core): fix env for batch mode (#6719) 2021-08-13 16:43:49 -04:00
Nikolaos Stamatopoulos
6d23591280
fix(core): Fix removal of terminalOutputs in cache (#6657)
Terminal outputs were not cleaned up because the terminalOutputs
subdirectory was not joined when constructing the path. With this
commit, all files are handled using their full paths. Path joins are
done once the directories are read, ensuring that we have the full path
later on for removal.
2021-08-13 14:16:39 -04:00
kazamov
9966443d09
fix(core): close webpack compiler when build complete (#6608)
* fix(core): close webpack compiler when build complete

Call webpack `close` method when build complete according to https://webpack.js.org/api/node/#run. Fallback webpack 4 `close` method
2021-08-13 14:13:53 -04:00
Jason Jean
d6cb7f9fdc
fix(core): parse aliases in target configuration and coerce aliased options (#6705) 2021-08-13 13:30:29 -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