1406 Commits

Author SHA1 Message Date
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
Leosvel Pérez Espinosa
ce7441217f
cleanup(misc): refactor absolute imports to self (#6667) 2021-08-10 12:45:43 +01:00
Leosvel Pérez Espinosa
3e3794c52c
fix(core): default run-many to use provided projects order (#6632) 2021-08-06 18:16:14 -04:00
Nrwl CI Machine
bc4ec52f53 cleanup(misc): avoid importing rxjs in the core path 2021-08-06 16:29:16 -04:00
jaybell
74034b272f feat(core): add an option to selectively hash tsconfig 2021-08-05 16:17:17 -04:00
Jason Jean
466826c364
fix(angular): lock version of angular-devkit to ~12.1.0 (#6620) 2021-08-05 12:13:15 -04:00
Leosvel Pérez Espinosa
6507aba28a
fix(core): fix reading nx.json without projects property (#6613) 2021-08-05 13:52:51 +01:00
Miroslav Jonaš
3aca62af68
cleanup(repo): remove unused ext from file data and fix ext regex matcher (#6550) 2021-08-04 09:45:07 -04:00
Ian Luca
1c19db5ff3
fix(core): define fileExist method for ts host (#6582)
closes #6500
2021-08-03 17:39:13 -04:00
Jason Jean
2722817d6b
fix(core): warn for project-graph error while it is experimental (#6562) 2021-08-03 10:21:34 -04:00
Miroslav Jonaš
425ccf3da1
fix(core): target project locator should handle tsconfig paths fully (#6528)
* fix(core): target project locator should handle local package versions

* fix(core): improve path matching on target project locator

* chore(core): revert appRootPath change in the typescript file

* fix(repo): normalize module path before comparison
2021-07-30 12:34:08 -04:00
Leosvel Pérez Espinosa
ddfbac50b2
fix(misc): make generated schemas compliant with json schema spec (#6548) 2021-07-30 13:33:17 +01:00
Phillip Barta
1b5498f367
feat(core): updated dotenv and switched to import 'dotenv/config' (#5615) 2021-07-29 17:49:23 -04:00
Jason Jean
89a4ac29b2
cleanup(devkit): rename all variable names of host to tree (#6541) 2021-07-29 15:46:41 -04:00
Leosvel Pérez Espinosa
7d6837ce41
fix(misc): fix moving projects with standalone configuration (#6521) 2021-07-29 14:15:02 -04:00
Leosvel Pérez Espinosa
dc02ca90b1
fix(core): do not override process.env with variables in dotenv files (#6540) 2021-07-29 12:47:40 -04:00
Miroslav Jonaš
117ee9308a
cleanup(core): use isNpmProject and cleanup project graph utils (#6522)
* cleanup(core): use isNpmProject and cleanup project graph utils

* chore(core): mark utils/buildable-libs-utils as deprecated
2021-07-29 11:17:31 -04:00
Miroslav Jonaš
9508bd9e3b
cleanup(core): remove last references to workspace appRootPath (#6527)
* cleanup(core): remove last references to local appRootPath

* chore(core): add deprecation comment to appRootPath

* chore(node): fix failing test due to typescript change
2021-07-28 17:22:30 +02:00
Leosvel Pérez Espinosa
c6fee867aa
fix(misc): handle moving to a subfolder which results in the same project name and normalize import path (#6507) 2021-07-26 14:56:30 +01:00
Jason Jean
9e8252406c
chore(repo): remove dependency from dep-graph to workspace and run-co… (#6497)
* chore(repo): remove dependency from dep-graph to workspace and run-command

* chore(repo): change default build config for dep-graph

Co-authored-by: Philip Fulcher <philip@nrwl.io>
2021-07-23 16:03:40 -04:00
Leosvel Pérez Espinosa
873e2970ae
fix(misc): allow run-commands to accept readyWhen for a single command (#6496) 2021-07-23 18:30:20 +01:00
James Henry
fedcfc4725 fix(core): ensure cache pathMappings always exist 2021-07-23 08:40:43 -04:00
Miroslav Jonaš
a9afb97307
docs(core): fix broken links and add missing latest prefix (#6471) 2021-07-23 08:16:54 -04:00
Leosvel Pérez Espinosa
f087146c55
fix(misc): make workspace tsc executor to handle dependencies (#6475) 2021-07-23 09:43:50 +01:00
Victor Savkin
0bdd53ad93
feat(core): speed up ts module resolution (#6474) 2021-07-22 16:16:25 +00:00
Leosvel Pérez Espinosa
f3b5ffc165
fix(core): handle directories with lots of files when reading the workspace files (#6469) 2021-07-22 13:36:25 +01:00
Leosvel Pérez Espinosa
0af1780b81
fix(core): improve run-commands dx for ready-when (#6448) 2021-07-22 09:17:22 +01:00
James Henry
91cfe5d927 chore(core): run-commands executor schema supports descriptions alongside commands 2021-07-21 20:38:12 -04:00
Miroslav Jonaš
6d25d204c3
fix(core): move generator should respect non-relative extends parts (#6427)
* fix(core): move generator should respect non-relative extends parts

* fix(core): fix broken test
2021-07-21 18:42:50 -04:00
Leosvel Pérez Espinosa
202c89c130
feat(core): support project and target specific env files when running a task (#6453) 2021-07-21 18:44:59 +01:00
Kirils L
d53e25a611
fix(core): caching individual files (#6445) 2021-07-21 12:15:31 -04:00
Leosvel Pérez Espinosa
9044a8f869
cleanup(misc): rename collection.json to generators.json (#6442) 2021-07-21 11:42:43 +01:00
Craigory V Coppola
2e36b20841
fix(node): no output for package executor watch mode (#6440)
Signed-off-by: AgentEnder <craigorycoppola@gmail.com>
2021-07-20 18:35:16 -04:00
Juri Strumpflohner
18c368173c
fix(core): path comparison across OS for getProjectNameFromDirPath (#6433)
ISSUES CLOSED: #6406
2021-07-20 22:17:16 +02:00
James Henry
f76a33f5bb
chore(core): add readCachedProjectGraph and deprecate previous utility (#6385)
* chore(core): add readCachedProjectGraph and deprecate previous utility

* chore(core): whitespace

* chore(core): explicitly use type ProjectGraphCache

* chore(core): fix typo
2021-07-20 11:44:48 -04:00
Jason Jean
253fd683f9
fix(core): ensure overrides are not parsed as head and base for affected (#6424) 2021-07-20 11:01:52 -04:00
Craigory V Coppola
a7220261c0
fix(misc): move generator should support project.json files (#6402) 2021-07-19 14:26:48 -04:00
vsavkin
0e52c43665 feat(core): store file deps and only reanalyze changed files 2021-07-16 20:21:45 -04:00
Jason Jean
7de111c25b
feat(core): update typescript to 4.3 (#6397) 2021-07-16 17:29:03 -04:00
Jason Jean
cd868a8a0d
fix(misc): remove import of webpack-dev-server (#6396) 2021-07-16 14:40:18 -04:00
vsavkin
f86a07367a feat(core): improve project graph creation not to invalidate nxdeps when global config change 2021-07-15 14:12:38 -04:00
Jason Jean
5ee362ad3d
fix(core): end tasks after cache is written (#6381) 2021-07-15 17:09:20 +00:00
Craigory V Coppola
84b40c8b85
fix(misc): @nrwl/workspace:rm generator should work with standalone configs (#6348)
* fix(devkit): removeProjectConfiguration should remove path for project.json from workspace.json

When using standalone config files, removing a project's config should also remove its entry in the
workspace file.

* fix(misc): @nrwl/workspace:rm should work with standalone config files

When using standalone config files, removing a project's config should also remove its entry in
the
workspace file.
2021-07-15 10:36:48 -04:00
James Henry
87e6d9dc77 chore(core): refactor createProjectGraph to be async, deprecate sync usage 2021-07-14 14:58:16 -04:00
Martin Gansler
fe7ab82d91
feat(core): add the target project name to the environment variables (#5886) 2021-07-14 11:47:26 -04:00
Daniel
8aee6cbc57
fix(core): make sanitizePath cross-platform (#6308) 2021-07-10 12:15:31 -06:00
Zachary DeRose
41234db93b
fix(testing): fixing migration and interop with move generator (#6323)
* fix(testing): fixing move tests and functionality

* fix(testing): fixing migration to no-op if getJestProjects() is already being used

* fix(misc): rming console.log statements
2021-07-09 23:22:55 +00:00
Zachary DeRose
2524fdbc3d
feat(testing): Using getJestProjects() out of the box (#5900)
* feat(testing): updating nx to use getJestProjects() itself

* feat(testing): using getJestProjects() for new workspaces

* feat(testing): accomodating for getJestConfig() when adding new project

* feat(testing): migration for updating the base jest.config.js

* testing...

* fix(testing): fixing formatting in tests and bumping to next version

* fix(testing): fixing broken tests

* fix(testing): fixing test for jest init

* fix(testing): removing unnecessary test in jest project

* fix(testing): updating remove generator to work with jest utility fn

* fix(testing): fixing line break on package.json

* fix(testing): fixing import statement

* fix(testing): using AST to update the jest config contents

* fix(testing): fixing snapshot tests

* fix(testing): fixing describe to 12.6

* fix(testing): adding back in import statement to jest.config.js

* fix(testing): updating generated docs
2021-07-09 16:32:01 -04:00
Jason Jean
033579712f
fix(core): include dependencies of projects which do not have a target (#6309) 2021-07-09 16:30:15 -04:00
Jason Jean
d35d03e55e
chore(repo): update nx to 12.6.0-beta.0 (#6266) 2021-07-09 18:44:59 +00:00