5128 Commits

Author SHA1 Message Date
Juri Strumpflohner
99f5d6388f
docs(misc): fix typo in Webstorm plugin listing (#9459) 2022-03-22 15:52:41 -04:00
Nicholas Cunningham
cdbea9106b
fix(react): fix conflicting NODE_ENV values between an application and webpack Plugins (DefinePlugin) (#9460)
ISSUES CLOSED: #7924

Co-authored-by: Nicholas Cunningham <ndcunningham>
2022-03-22 15:02:43 -04:00
Colum Ferry
1bfc02f4f9
docs(angular): improve webpack-browser docs (#9461) 2022-03-22 18:42:25 +00:00
Benjamin Cabanes
6f5a8035df
docs(nxdev): add babylonjs & milkdown to open source projects (#9464) 2022-03-22 18:31:45 +00:00
Benjamin Cabanes
ca7ee2abe4
docs(nxdev): add 2 more testimonials on website's home (#9463) 2022-03-22 18:08:27 +00:00
Benjamin Cabanes
1723e8e6b3
docs(nxdev): remove unused versions & flavors feature (#9462) 2022-03-22 17:44:35 +00:00
Colum Ferry
933cd5957f
fix(angular): browser builder should call correct function (#9457) 2022-03-22 14:24:38 +00:00
Colum Ferry
0331b381bc
feat(angular): add exposed methods for dynamic federation (#9437) 2022-03-22 12:25:39 +00:00
Colum Ferry
f88018a5cb
fix(angular): remote port incrementer when no targets (#9452) 2022-03-22 12:03:50 +00:00
Miroslav Jonaš
92293938eb
chore(repo): trim package manager name for cross os e2e stability (#9446) 2022-03-22 10:47:37 +01:00
Chau Tran
cb1fc0235a
fix(js): mimic the behavior of tsc compilation for runTypeCheck (#9240)
* fix(js): mimic the behavior of tsc compilation for runTypeCheck

ISSUES CLOSED: #9203

* chore(js): add check for type defs files in e2e

Co-authored-by: Chau Tran <ctran@Chaus-MacBook-Pro.local>
2022-03-21 16:33:34 -05:00
Craigory Coppola
9261105630
fix(js): return success false if tsc compilation fails (#9438) 2022-03-21 16:39:40 -04:00
Chau Tran
ada6645093
docs(core): nestjs to use --project instead of --sourceRoot (#9435)
Co-authored-by: Chau Tran <ctran@Chaus-MacBook-Pro.local>
2022-03-21 13:31:56 -04:00
Craigory Coppola
8463cc0f84
docs(js): remove references to @nrwl/js:app (#9432) 2022-03-21 15:09:09 +00:00
Benjamin Cabanes
ca0ea5c174
docs(nxdev): fix react tutorial link (#9431) 2022-03-21 14:54:10 +00:00
Craigory Coppola
9ef10acf19
docs(js): remove references to @nrwl/js:app (#9429) 2022-03-21 10:50:36 -04:00
Giora Guttsait
7fb441b233
fix(nx-plugin): use importPath as package.json name when passed (#9430) 2022-03-21 14:46:55 +00:00
Leosvel Pérez Espinosa
71ba52a232
chore(misc): update add-nx packages metadata (#9427) 2022-03-21 10:16:21 -04:00
Giora Guttsait
63e1dee09f
fix(nx-plugin): remove broken reference to e2e tsconfig (#9409) 2022-03-21 13:33:07 +00:00
Leosvel Pérez Espinosa
3d573b3606
cleanup(angular): cleanup some leftover from moving the ng-add generator (#9423) 2022-03-21 11:27:01 +00:00
Colum Ferry
47697c61c1
feat(angular): automatically set next remote port (#9422) 2022-03-21 11:18:34 +00:00
Miroslav Jonaš
99d871a467
fix(angular): change mfe schema port type to number (#9420) 2022-03-21 12:04:25 +01:00
Leosvel Pérez Espinosa
8072007631
docs(angular): fix typo in the migration from angular cli docs (#9424) 2022-03-21 11:01:32 +00:00
Leosvel Pérez Espinosa
e427de68dc
fix(angular): update library package.json only with direct dependencies (#9315) 2022-03-21 09:24:13 +00:00
Jason Jean
b23ad2d3b2
chore(repo): update nx to 13.10.0-beta.1 (#9407) 2022-03-19 05:43:48 +00:00
Jason Jean
aef63876fa
chore(repo): update nx to 13.10.0-beta.1 (#9404) 2022-03-18 17:14:51 -07:00
Jason Jean
c4b1bf4b61
chore(repo): update yarn.lock (#9402) 2022-03-18 23:30:07 +00:00
Craigory Coppola
ccfc527b20
fix(core): projects inferrred in apps directory should be inferred as an application (#9379)
* fix(core): projects inferrred in apps directory should be inferred as an application

* chore(repo): add jest setup back for `nx`
2022-03-18 19:14:04 -04:00
Enoyao
bf836f4313
cleanup(core): use full variable name in git-hasher.ts (#9143) 2022-03-18 22:32:02 +00:00
Craigory Coppola
6284eb6f24
fix(core): ngcli-adapter should work on windows without workspace.json present (#9163) 2022-03-18 22:24:34 +00:00
Jason Jean
2d57ac05ac
docs(angular): update angular cli migration docs to reflect the generator relocation to @nrwl/angular (#9288) (#9401)
* docs(angular): update angular cli migration docs to reflect the generator relocation to @nrwl/angular

Co-authored-by: Jason Jean <jasonjean1993@gmail.com>

Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com>
2022-03-18 17:50:07 -04:00
Jason Jean
95886bfdff
Revert "docs(angular): update angular cli migration docs to reflect the generator relocation to @nrwl/angular (#9288)" (#9400)
This reverts commit 0a88ba473fbb7f8bd8c5794b72a404e7bf41820f.
2022-03-18 17:25:08 -04:00
Leosvel Pérez Espinosa
0a88ba473f
docs(angular): update angular cli migration docs to reflect the generator relocation to @nrwl/angular (#9288)
* docs(angular): update angular cli migration docs to reflect the generator relocation to @nrwl/angular

* chore: add @

* chore: add @

Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2022-03-18 17:23:07 -04:00
Leosvel Pérez Espinosa
88a7ad7654
cleanup(angular): move the angular cli migration generator from @nrwl/workspace to @nrwl/angular (#9244)
* cleanup(angular): move the angular cli migration generator from @nrwl/workspace to @nrwl/angular

* cleanup(angular): support merged packages (cli, tao, nx)

* cleanup(angular): update make-angular-cli-faster to support packages consolidation
2022-03-18 17:18:10 -04:00
hellivan
3824eebc23
fix(node): npm modules are not resolved correctly (#9284)
The current implementation of the node executor resolves all npm
modules that are referenced by the application from the root
node_modules folder. This behavior leads to runtime errors if any of
the project dependencies requires a different version of a package
than the project itself.

For example, if we have a project that depends on `express` in version
`4.17.3` (which on the other hand depends on `path-to-regexp` version
`0.1.7`) as well as on `path-to-regexp` in version `6.2.0`. In such
case `express` will throw a runtime error since it would load
`path-to-regexp` version `6.2.0` which is not API compatible.

For this reason, this commit changes the behavior of the node-executor
so that it completely ignores npm dependencies when calculating
resolve mappings.
2022-03-18 16:40:37 -04:00
Andrew Luca
ad54978328
docs(core): fix using-executors example import (#9321) 2022-03-18 20:37:59 +00:00
Miroslav Jonaš
f50f0bc845
chore(core): split hasher filter types for node and workspace project (#9293)
* chore(core): split hasher filter types for node and workspace project

* fix(core): change leftover hash filter to node hash filter
2022-03-18 16:26:37 -04:00
Matthias Stemmler
dff05dcbde
fix(web): fix handling of buildLibsFromSource: false in dev-server executor (#9326)
* modify buildOptions.tsConfig before creating Webpack config
* do not join buildOptions.tsConfig to root path as it is already an absolute path
2022-03-18 16:21:56 -04:00
Sorin Davidoi
75f9ece440
fix(core): don't allow arbitrary code execution when manipulating cache (#9329)
The Node documentation for `exec` states:

> Never pass unsanitized user input to this function. Any input containing shell metacharacters may be used to trigger arbitrary command execution.

The `folder` variable comes directly from the `NX_CACHE_DIRECTORY` environment variable (or from `nx.json`). Careful crafting of this variable can result in NX executing arbitrary commands.

This patch fixes this by using `execFile`, which does not spawn a shell.
2022-03-18 16:19:12 -04:00
Sorin Davidoi
f5dfb837a2
fix(web): don't allow arbitrary code execution in file-server (#9330)
The Node documentation for `exec` states:

> Never pass unsanitized user input to this function. Any input containing shell metacharacters may be used to trigger arbitrary command execution.

The `outputPath`, `options.buildTarget` and `options.maxParallel` come from `nx.json`. Careful crafting of these fields can result in NX executing arbitrary commands.

This patch fixes this by using `execFile`, which does not spawn a shell.
2022-03-18 16:16:31 -04:00
K. Golbang
cd8c9b0313
feat(testing): support for memory leaks detection for jest added [logHeapUsage, detectLeaks] (#9339) 2022-03-18 16:10:28 -04:00
Craigory Coppola
05f72c96ea
fix(core): targets referred to by targetDependencies should be optional by default (#9344) 2022-03-18 15:30:48 -04:00
Juri Sinitson
36aa5ce5fb
docs(angular): change --defaults to --no-interactive (#9376)
When using the flag `--defaults` I get `Use --no-interactive instead of --defaults. The --defaults option will be removed in Nx 13` although I'm already using Nx 13.7.1. When using `--no-interactive`, no message is showing up.
2022-03-18 15:28:16 -04:00
Craigory Coppola
b3914bda90
chore(misc): update add-nx ci (#9398) 2022-03-18 15:22:09 -04:00
Amarnath Reddy Dornala
6a601b9959
Fixed issue with webpack plugin (#8231)
feat(npm): resolved issue with live reload failing

Fixed the issue with live reload when adding scripts in project.json

Closes #8230
2022-03-18 12:55:53 -04:00
Jason Jean
949498f5ac
fix(core): remove @nrwl/cli bin setting (#9394) 2022-03-18 12:06:59 -04:00
Colum Ferry
a8ede441eb
feat(angular): support angular v13.3.0 (#9311) 2022-03-18 14:59:04 +00:00
Craigory Coppola
75ad30ca18
feat(core): ability to run local nx plugins w/o build step (#9116)
* feat(core): ability to run local nx plugins generators and executors

* feat(core): support for project inference and graph extension local plugins

* chore(core): cleanup after package relocation

* chore(core): changes for review
2022-03-18 14:10:06 +00:00
Katerina Skroumpelou
483115ba06
fix(storybook): when building set node_env (#9390)
ISSUES CLOSED: #8403
2022-03-18 14:00:40 +00:00
Colum Ferry
08c6b02e50
fix(angular): set tsconfig path correctly (#9386) 2022-03-18 11:43:24 +00:00