8697 Commits

Author SHA1 Message Date
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
Miroslav Jonaš
779050b783
chore(repo): add additional user for nightly failure notification (#6718) 2021-08-13 19:07:07 +02:00
Jason Jean
c2832caf40
fix(misc): fix adding @nrwl/workspace to projects without prettier (#6716) 2021-08-13 11:59:02 -04:00
Jason Jean
5f2129ff77
docs(angular): clarify title of setting up nx in an angular cli project (#6717) 2021-08-13 08:28:30 -07:00
Miroslav Jonaš
051dc7ced4
chore(repo): enable node 15 and 16 in the nightly runs (#6708) 2021-08-13 16:41:15 +02:00
Jason Jean
a7759ff89e
fix(repo): fix release to update package.json version without release-it (#6700) 2021-08-12 17:22:37 -04:00
Emily Xiong
f96c5371c0
fix(gatsby): remove npm_config_legacy_peer_deps (#6698) 2021-08-12 12:47:46 -04:00
James Henry
3351ef80bc
chore(core): opt-in daemon for ProjectGraph creation, refactor hasher (#6572) 2021-08-12 08:56:01 -04:00
Miroslav Jonaš
51d247e5e8
chore(core): fix broken run-many e2e test (#6693) 2021-08-12 12:49:39 +00:00
Jason Jean
0cb247c3b3
chore(repo): update nx to 12.7.0 (#6691) 2021-08-11 23:43:33 +00:00
Jason Jean
dadf1f9d3d
chore(nxdev): update nx.dev with docs for 12.7.0 (#6690) 2021-08-11 19:05:13 -04:00
Miroslav Jonaš
9c676a3ba2
chore(repo): cleanup & optimize circleci config (#6680)
* chore(repo): optimize circleci config

* chore(repo): add package manager property to all jobs

* chore(repo): add more agents and fix config
2021-08-12 01:01:11 +02:00
Jason Jean
305c6a3221
fix(repo): fix release to not use deprecated github api (#6689) 2021-08-11 18:48:47 -04:00
Benjamin Cabanes
551064f0d7
docs(core): home page nx video (#6687) 2021-08-11 16:52:57 -04:00
Jason Jean
677701a1e0 Release 12.7.0 2021-08-11 16:02:54 -04:00
Benjamin Cabanes
81e00d28cf
docs(core): add eggheadio to course section (#6686) 2021-08-11 15:09:09 -04:00
Shihab Uddin
8cad038788
feat(core): make it possible to use environment variable to set cache directory (#6670)
Use the environment variable NX_CACHE_DIRECTORY to set the cache directory.
This would override the cache directory set in nx.json.

ISSUES CLOSED: #6629
2021-08-11 14:13:48 -04:00
Leosvel Pérez Espinosa
91527e18e8
fix(core): fix --with-deps arg support and deprecate its usage (#6660) 2021-08-11 14:11:13 -04:00
MaximSagan
735802e5dc
fix(workspace): exit process with exit code 1 on any failed task including dependency (#6631)
Co-authored-by: Max Sagan - Yieldbroker <Max.Sagan@yieldbroker.com>
2021-08-11 14:00:59 -04:00
Benjamin Cabanes
45946f5637
docs(core): update conf design (#6676) 2021-08-11 13:46:30 -04:00
Jason Jean
f8aaa4efa1
chore(nx-dev): update nx.dev with docs for 12.6.6 (#6678) 2021-08-11 10:57:35 -04:00
Juri
79ea377a65 fix(nextjs): allow plain url-loader inlining of SVGs not just SVGR 2021-08-11 15:58:30 +02:00
Jason Jean
1e7a340208
chore(repo): update nx to 12.7.0-beta.1 (#6679) 2021-08-11 00:50:59 +00:00