1524 Commits

Author SHA1 Message Date
Amman Vedi
eb04324547
fix(core): change ng to nx (#8843)
The command ng is incorrect it should be nx
2022-02-04 11:09:11 -05:00
Victor Savkin
fb056891ec
fix(core): do not start daemon process when running a docker container 2022-02-01 13:54:11 -05:00
Victor Savkin
5e3f1d47bf
chore(repo): update repo to 13.7.1 2022-01-28 21:20:27 -05:00
Victor Savkin
a7b1065be4
fix(core): fix the issue introduced by 45c9ee09 2022-01-28 20:56:07 -05:00
Victor Savkin
4e5b48d64a
fix(core): warn when daemon fails to start 2022-01-28 20:42:29 -05:00
Marc Abramowitz
f17821732b
fix(misc): don't disable chalk when FORCE_COLOR is set (#8226)
* Don't disable chalk when FORCE_COLOR is set

My lint output in Jenkins wasn't colored, which is pretty normal because
a lot of apps when running in Jenkins don't think they have a
color-capable terminal to write to, but I expected that setting the
`FORCE_COLOR` environment variable would work to override this, but I
was surprised to find that it didn't help. Looking at the Nx code, I see
that chalk is turned off whenever `CI` is true, which seems like it
should be refined a bit.

* chore(core): fix code

Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2022-01-28 20:11:02 -05:00
Jason Jean
1f6c17031e
fix(core): fix git support detection (#8764) 2022-01-29 00:38:29 +00:00
Juri Strumpflohner
8576330baa
fix(core): cacheDirectory resolution (#8760) 2022-01-28 18:38:27 -05:00
Jason Jean
3cdc681326
fix(core): check if taskRunnerOptions exists (#8762) 2022-01-28 23:11:37 +00:00
Victor Savkin
51b90435b3
fix(core): fix cache for directory outputs (#8756)
Only use parent directory for outputs if output is a file. Closes #8504.
This bug has been caused by 16e9f58f76.

Co-authored-by: skrtheboss <denisfrenademetz97@gmail.com>
2022-01-28 16:30:14 -05:00
Phillip Barta
f94d3dad2a
fix(core): use fs/promises instead of promisifying with the util module (#8530)
* fix(core): use fs/promises instead of promisifying with the util module

* chore(core): use path exists instead of existsSync

Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2022-01-28 15:53:08 -05:00
Jason Jean
e759abdc95
fix(misc): fix npm-package generator on windows (#8751) 2022-01-28 14:41:54 -05:00
Daniel Payet
b86feb1048
fix(dep-graph): set the number of workers with environment variables
In a docker container, the result of os.cpus() can be wrong (https://github.com/nodejs/node/issues/28762).
2022-01-28 14:31:47 -05:00
Kirill Metrik
1c5ad6e45a
fix(core): avoid importing posix/path but still use posix paths on Windows 2022-01-28 13:35:13 -05:00
Jason Jean
bf70569636
fix(core): deprecate, fix error, and print warning when using --only-failed (#8748) 2022-01-28 13:28:16 -05:00
Phillip Barta
15ff29640c
chore(repo): update open to 8.4.0 (#8629) 2022-01-28 13:27:44 -05:00
Phillip Barta
2b1fbfd6f6
cleanup(core): cleanup hasher and core fileutils 2022-01-28 13:26:12 -05:00
Juri Strumpflohner
d5d25a8614
docs(core): fix Nx daemon docs (#8740) 2022-01-28 10:42:10 -05:00
Colum Ferry
f4fa81338d
feat(angular): support version 13.2.0 (#8457)
Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com>
2022-01-28 09:01:51 +00:00
Benjamin Cabanes
c3d89478a4
docs(core): improve workspace-lint command (#8731) 2022-01-27 22:10:34 +00:00
Victor Savkin
86a1a6c825
fix(core): better detection whether the workspace uses git (#8720) 2022-01-27 11:13:07 -05:00
Victor Savkin
f360447677
feat(core): enable daemon by default for new projects (#8698) 2022-01-27 09:27:09 -05:00
Victor Savkin
4e474773bf
Revert "feat(core): show dep types in dep graph (#2760) (#8132)"
This reverts commit 31bb2f36261fdf222e9e8e962227dcd911dfee66.
2022-01-25 15:23:25 -05:00
Victor Savkin
7ca35b02b2
feat(misc): do not print path mappings when verbose logging is true 2022-01-25 10:06:21 -05:00
David Nunez
3d36169b49
fix(core): need to read in any base nx.json when building a workspace (#8333)
* fix(core): need to read in any base nx.json when building a workspace

* chore(core): remove changes to ngcli-adapter and cleanup nx extension

Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2022-01-24 18:46:36 -05:00
Victor Savkin
acffba7fa9
fix(core): normalize command to avoid nx run nx run (#8678) 2022-01-24 19:18:14 +00:00
Philip Fulcher
e167fd5992
fix(core): include affected projects when generating dep graph HTML file (#8679)
ISSUES CLOSED: #8657
2022-01-24 18:06:57 +00:00
Jason Jean
50066ca568
fix(core): handle merging npm scripts with project at the root (#8651) 2022-01-24 12:51:18 -05:00
Victor Savkin
27dc36fac6
feat(core): improve detection whether we are running in CI 2022-01-24 10:35:30 -05:00
Victor Savkin
298ceba5b3
chore(repo): readme fixes 2022-01-24 09:39:31 -05:00
Philip Fulcher
4577548e73
fix(core): adding missing @nrwl packages to report (#8644) 2022-01-21 23:27:15 +00:00
Victor Savkin
67e242fea9
feat(core): align the dynamic and static outputs (#8625) 2022-01-21 14:58:53 -05:00
Isaac Mann
07ebdb36a3
feat(core): add nx graph as alias of nx dep-graph (#8539)
* feat(core): add nx graph as alias of nx dep-graph

* docs(core): add note about old dep-graph syntax

* cleanup(core): formatting

* feat(core): formatting

* feat(core): formatting

Co-authored-by: Isaac Mann <isaacplmann+git@gmail.com>
2022-01-21 11:15:23 -05:00
Victor Savkin
f57d4c291e
fix(core): throw errors when collected terminal output cannot be found (#8623) 2022-01-20 16:20:32 -05:00
Jason Jean
5c921d864c
fix(misc): setup package manager workspaces for core preset (#8621) 2022-01-20 15:05:35 -05:00
Phillip Barta
75eb1c532f cleanup(core): improve list command performance 2022-01-20 12:37:33 -05:00
Victor Savkin
5af5bd7871
chore(repo): fix broken test 2022-01-20 12:32:57 -05:00
Phillip Barta
dbb7c602ff
cleanup(repo): format with prettier 2.5.1 2022-01-20 12:26:45 -05:00
Phillip Barta
b9c3c10fe4
feat(core): migrate to prettier ^2.5.1 2022-01-20 12:26:42 -05:00
Jack Hsu
f231cfc01b
feat(repo): move gatsby plugin to nx-labs repo (#8617) 2022-01-20 12:00:51 -05:00
Jon Hammerskov
4e11378954 fix(core): fix crash in hash of project when imports of unregistered npm packages
If some .ts file imports an npm package that is not directly registered as dependency
the caching of
project graph may result in an exception
when switching back and forth between branches where the
npm package
is a dependency and where it is not
This PR will just provide some dummy checksum for
unknown dependencies

ISSUES CLOSED: #7225
2022-01-20 11:37:09 -05:00
Luís Miguel Cabral
bc2d9c0cc6 fix(core): Leave passthrough parameters untouched
Previously when the passing through complex parameters nx would alter
the original parameters in the following  scenarios:
- When passing through parameters, dot notation parameters would be
parsed and no longer would be passthrough the the following process
correctly ( --cucumberOpts.timeout=10000" would instead be passed as
"--cucumberOpts=[Object]")
- strings with spaces (delimited by quotes) would be rendered as
multiple words instead ('--tags="not @exclude"' would be passed as
'--tags=not @exclude' where '@exclude' no longer is part of the tags
param)

This would that when running nx  cli to run a command the final command
would not get the correct parameters
2022-01-20 11:33:35 -05:00
Victor Savkin
3e0e30eceb fix(core): add an extra check to list for lock file changes 2022-01-20 11:09:50 -05:00
Victor Savkin
950c94155e feat(core): do not use the daemon when inotify limit is reached 2022-01-20 11:09:50 -05:00
Victor Savkin
56e7407ebe
feat(core): enable dynamic output by default 2022-01-20 09:45:24 -05:00
James Henry
b173b449b7
chore(core): remove indent on static command, dynamic updates (#8611) 2022-01-20 09:42:27 -05:00
Victor Savkin
7c236a24e9
fix(core): move life cycle file out life-cycles to fix deep imports 2022-01-19 15:40:36 -05:00
Victor Savkin
9e75918154
feat(core): speed up file map creation (#8597) 2022-01-19 15:30:21 -05:00
James Henry
faef0d8c85
chore(core): task runner dynamic output life cycle (#8590) 2022-01-19 14:52:10 -05:00
Jason Jean
e69b893829
fix(angular): fix adding nx to angular workspace with cypress (#8550) 2022-01-19 13:52:14 -05:00