5136 Commits

Author SHA1 Message Date
Craigory Coppola
2f85238f86
fix(js): improve inconsistencies with assets in tsc and swc from previous implementation (#9470) 2022-03-23 10:16:19 -04:00
Miroslav Jonaš
c7e621f6f6
fix(core): fix missing versions from nx report (#9450) 2022-03-23 10:07:31 -04:00
Emily Xiong
95704f1357
feat(react-native): add interactive schema option (#9373) 2022-03-23 09:58:43 -04:00
Emily Xiong
dad4a259b5
chore(react-native): add examples to react native and detox schema (#9434) 2022-03-23 09:58:28 -04:00
Juri Strumpflohner
8bf9b1f845
docs(misc): add links to guides and videos (#9476) 2022-03-23 09:35:35 -04:00
Colum Ferry
de5528dd04
docs(angular): improve webpack-server executor (#9477) 2022-03-23 12:18:26 +00:00
Miroslav Jonaš
41914d2961
fix(web): ensure file server works on windows (#9449) 2022-03-22 22:39:42 +01:00
Chau Tran
44763532f7
fix(js): add swc/helpers to js packages on converting to swc (#9467)
* fix(js): add swc/helpers to js packages on converting to swc

* chore(js): update convert to swc unit test

* chore(js): format

Co-authored-by: Chau Tran <ctran@Chaus-MacBook-Pro.local>
2022-03-22 15:10:04 -05:00
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