1226 Commits

Author SHA1 Message Date
Craigory Coppola
79cf69b4e4
feat(core): consolidate nx.json and workspace.json (#6642)
* feat(core): consolidate settings between workspace.json + nx.json

workspace.json (and linked project.json files) now contain all project specific settings.
nx.json now contains all settings that affect the whole workspace.

* chore(core): fix angular unit tests w/ new config

* chore(core): fix failing tests

* chore(core): fix formatting

* chore(core): fix more tests

* chore(core): normalize-nx-json feedback

* chore(core): Fix more unit tests

* chore(core): fix remaining tests in workspace

* chore(linter): fix remaining linter tests

* chore(core): fix remaining spec + build issues

* chore(core): formatting fixes

* feat(core): migration script to move config options to new locations

* chore(core): fix e2e tests

* chore(core): run format

* chore(react-native): fix failing tests

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* feat(core): move properties to new location during format step

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* feat(core): initial pass on ngcli-adapter for property consolidation

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* chore(misc): fix tests

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* docs(core): update docs with changes

* chore(misc): fix tests

* chore(core): code review changes

updateWorkspaceJson -> updateWorkspace, no longer uses updater function

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* chore(core): fix bug in ngcli impl

* fix(core): fix bug in ngcli-adapter

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* fix(core): fix ngcli-adapter

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* chore(core): fix workspace e2e

* chore(core): fix nx-plugin e2e

* fix(core): move defaultProject to nx.json

* chore(core): fix broken workspace test

* chore(core): formatting

* chore(core): fix workspace format

* chore(core): add nxJson to ExecutorContext

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* chore(core): remove all references ot `NxProjectConfiguration` from our code

* chore(core): Review Changes

* fix(core): update new config locations v13 migration
2021-10-14 10:42:47 -04:00
Victor Savkin
dff26ca96c fix(core): daemon watch mode gets stuck 2021-10-13 15:52:21 -04:00
Victor Savkin
1cc1e27110 feat(core): add exponential backoff for graph recomputation 2021-10-13 15:01:17 -04:00
Miroslav Jonaš
1205d2d008
fix(core): update outdated graph version (#7334) 2021-10-13 20:48:56 +02:00
Jack Hsu
724b0c0e3c
feat(core): upgrade to webpack 5 (#7283)
* feat(core): upgrade to webpack 5

* chore(core): update webpack 5 docs
2021-10-13 00:34:28 -04:00
James Henry
9d2a304b11 chore(core): updates to daemon outputs, socket location and help 2021-10-12 20:02:00 -04:00
Leosvel Pérez Espinosa
301e11660a
fix(core): ensure workspace version format is respected when making changes to it (#7043) 2021-10-12 15:05:16 -04:00
Victor Savkin
14f7e66f46 feat(core): remove deprected project graph version 2021-10-12 14:29:03 -04:00
Victor Savkin
18c8e371ad feat(core): compute all workspace files incrementally 2021-10-12 12:10:13 -04:00
Philip Fulcher
2f675f7577
fix(misc): dep-graph --file option supports absolute paths (#7206) 2021-10-12 08:10:15 -06:00
James Henry
65475fe894 chore(core): error propagation, auto-shutdown, log forwarding, etc. 2021-10-12 09:58:30 -04:00
Victor Savkin
a81fbbac1b feat(core): clean up daemon server 2021-10-11 12:56:43 -04:00
Craigory Coppola
8435bdfb6f
feat(core): shift from 'master' to 'main' as default branch and base (#7111)
* chore(core): fix some broken tests

* docs(core): update docs to represent master -> main

* chore(core): review changes

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

* chore(core): add migration script for backwards-compat w/ main default.

Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2021-10-08 16:48:02 -04:00
Victor Savkin
4b9c00ef39 feat(core): use worker threads to construct a project graph
This reverts commit caac6ee2e9c576c44a33b4f71c59abbd5ba187d7.
2021-10-08 13:45:10 -04:00
Jason Jean
4c4826667e
fix(core): fix defaulting object properties to empty {} (#7288) 2021-10-08 13:15:37 -04:00
Victor Savkin
de680d3ace chore(core): extract daemon client into a separate file 2021-10-07 13:12:52 -04:00
Jason Jean
caac6ee2e9 Revert "feat(core): use worker threads to construct a project graph"
This reverts commit d9175d1ac6e7fbca1229b23a6f72b520a3644322.
2021-10-07 11:25:55 -04:00
Victor Savkin
d9175d1ac6 feat(core): use worker threads to construct a project graph 2021-10-07 11:23:44 -04:00
James Henry
79048fdb5c
chore(core): implement file watching in the daemon (#7232) 2021-10-06 21:42:01 -04:00
Victor Savkin
b79072a5ae feat(core): parallelize cache restoration 2021-10-04 16:55:41 -04:00
Philip Fulcher
1d8a8878dc
feat(misc): add --open option for dep-graph command (#7209) 2021-10-04 11:45:00 -04:00
James Henry
0d84a61b72
fix(core): changes to the daemon in order to support windows (#7211) 2021-10-04 11:42:45 -04:00
Jason Jean
6df11a2a18
fix(core): apply NX_variables on top of env variables (#7205) 2021-10-01 20:18:56 -05:00
Jason Jean
a57ca80a19
fix(core): fix error when tsconfig.base.json is invalid json (#7204) 2021-10-01 20:05:30 -04:00
Craigory Coppola
ec633e3dfb
feat(core): obey git's init.defaultBranch when initializing nx.json (#7192) 2021-10-01 22:19:43 +00:00
Alex Herbig
8addb45fd0
fix(angular): stop modifying tags that match app name (#7137)
ISSUES CLOSED: #7097
2021-10-01 14:57:26 -04:00
Minijus L
ae7361c0aa
fix(core): gracefully handle errors when writing the latest output hash cache files (#6959)
* fix(core): wrap writing cache hash into try/catch

Instead of failing the task run process it will allow the process to continue.

Fixes of #6957

* fix(core): ignore errors writing latest output hash cache files

Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com>
2021-10-01 17:02:38 +01:00
Gaurav Mukherjee
2b5f1aad39
fix(core): handle empty root path in angular.json (#7036)
ref https://github.com/nrwl/nx/issues/7008

Co-authored-by: gmfun <gaurav@ves.io>
2021-09-30 16:58:29 -04:00
Miroslav Jonaš
8424c69320
fix(linter): improve error message on no matching dependency restriction (#7143) 2021-09-27 12:45:20 +00:00
Miroslav Jonaš
c18a40b1f0
feat(linter): show files involved in circular dependency (#7113) 2021-09-24 09:00:15 +00:00
James Henry
8dcf391649
chore(core): daemon cache pre-serialized project graph (#7104) 2021-09-23 11:18:56 -04:00
James Henry
98527acabc chore(core): daemon uses cached project graph whenever possible 2021-09-22 09:46:10 -04:00
Victor Savkin
dca092874b feat(core): add examples and links to nx.dev when using --help 2021-09-17 10:02:44 -04:00
James Henry
4956ebea9f fix(core): ensure ANSI escape codes are stripped in git-hasher process outputs 2021-09-17 08:58:34 -04:00
Victor Savkin
a5ba9bc0c3 docs(core): add better docs for run-script 2021-09-16 20:30:00 -04:00
Himadu2000
e5b9d80abc
feat(react): updating @reduxjs/toolkit to 1.6.1 (#6939)
Updated @reduxjs/toolkit from 1.5.0 to 1.6.1
2021-09-16 14:05:32 +00:00
Benjamin Cabanes
efe780cfc9
chore(core): format fix (#7018) 2021-09-15 16:29:18 -04:00
Victor Savkin
e77f675118 fix(repo): fix a broken unit test 2021-09-15 15:21:06 -04:00
James Henry
d739f0c864 feat(core): daemon supports incremental file hashing 2021-09-15 13:54:23 -04:00
James Henry
5cce731fdb fix(core): daemon server should reinitialize file hashes on each connection 2021-09-15 13:54:23 -04:00
James Henry
36facd8948 fix(core): ensure daemon server perf logging instantiated only once 2021-09-15 13:54:23 -04:00
James Henry
fe40485e1c fix(core): git-hasher checkForDeletedFiles will now hard error 2021-09-15 13:53:40 -04:00
Wedema, D. (Daniël)
305813e3f2 fix(core): resolve nested files using tsConfig paths that have similar names
When tsConfig paths with overlapping names were configured (e.g. @my/project/*
and
@my/project-core/*), the project locator would always return the shorter name first.

ISSUES CLOSED: #6672
2021-09-15 13:25:59 -04:00
Linbudu
ebee6388cf
feat(workspace): Enable run-commands preferLocal option by default (#6807) 2021-09-15 13:08:39 -04:00
AgentEnder
a3599a525b fix(core): convert-to-nx-project should normalize paths
fixes #6968
2021-09-15 11:54:03 -04:00
mmuenker
ab2f526021
fix(core): support hidden files in assets (#6298)
The transformation of `AssetGlob` objects into `FileInputOutput` objects does not include hidden files. The glob option `dot: true` is required to include hidden files. The commit extends the AssetGlob interface with the optional property `dot`. The glob check will include hidden files when the property `dot` is set to true.

Signed-off-by: Merzough Münker <mmuenker@digitaix.com>
2021-09-15 09:45:36 -04:00
Leosvel Pérez Espinosa
bdd01ed1dd
fix(core): use defaultConfiguration in run-many and affected when no configuration is specified (#6884) 2021-08-28 18:07:41 +01:00
Jason Jean
677e481729
fix(core): hash npm projects based on version (#6879) 2021-08-27 19:26:38 -04:00
Jason Jean
9c07d7fa06
fix(core): use tao generate for angular devkit workspace-schematics (#6861) 2021-08-27 14:56:16 -04:00
Jason Jean
6d8fa39d29
chore(misc): fix failing workspace lib unit test (#6862) 2021-08-26 16:47:32 -04:00