1578 Commits

Author SHA1 Message Date
Julien Saguet
df197cf194 fix(core): fix move schematic issues
Use slashes as path separator even when used on windows environments to avoid mis-identifying escaped characters in file path
Use slash as path separator even when used on windows to get a correct path in extends property
Fix an issue when renaming jest project name where substrings were replaced as well in the file
Fix an issue when renaming imports where substrings in imports where replaced too
2020-03-06 11:00:23 +00:00
Victor Savkin
b52e97c816 fix(repo): fix formatting 2020-03-05 17:32:45 -05:00
Victor Savkin
923f3541df fix(repo): fix ci 2020-03-04 21:18:45 -05:00
Victor Savkin
f0ca8394d5 fix(core): fix the ordering of unrelated tasks
Closes #2599
2020-03-04 17:26:44 -05:00
Victor Savkin
115a1abd75 fix(core): use default configuration when the provided one is not available 2020-03-04 16:31:19 -05:00
Jack Hsu
642d598086 fix(core): handle npm package deletion and whole file changes 2020-03-04 14:29:19 -05:00
Bucky Maler
e2e3412768 feat(misc): support formatting .mdx files 2020-03-04 14:25:47 -05:00
Jay Bell
a39587a350
feat(nest): implement nest lib schematic (#2540) 2020-03-02 11:20:45 -05:00
Victor Savkin
ff6b434548 feat(core): add ability to run targets against project's deps 2020-02-28 16:42:38 -05:00
Victor Savkin
bbf5738b19 feat(core): add runtimeCacheInputs to capture node version, os in the cache key 2020-02-28 15:51:27 -05:00
Jason Jean
c45ee2ab87 fix(misc): parse args for format command 2020-02-28 15:28:40 -05:00
Jason Jean
2145d36281 feat(core): update prettier to 1.19.1 2020-02-28 15:17:58 -05:00
Julien Saguet
dfb09179ee
fix(core): use file full path in git show (#2537)
Use file full path in git show to identify affected files to fix an issue when nx workspace is not at the root of git repository

Closes #2292
2020-02-28 13:44:25 -05:00
Rares Matei
ddde8af6db
fix(linter): outputFile at non-existing directory path throws
ISSUES CLOSED: 2567
2020-02-28 09:42:52 +00:00
Mathias Remshardt
7aaa09bfff
cleanup(node): moves some schematic helper to shared workspace rules 2020-02-26 20:19:17 -05:00
Victor Savkin
65ac855536 feat(core): memoize project source hashing 2020-02-26 14:43:38 -05:00
Juri
2c7d6a101d fix(core): don't generate test related things in README when no unitTestRunner 2020-02-26 14:29:33 -05:00
Jeff Cross
180c990d34 fix(core): change mkdir logic to avoid race condition
The process of checking for directory existence then creating
A directory was causing race conditions when running scripts
In parallel. I inverted the logic to always try to
Create the directory without checking 1st, then handle any errors.
2020-02-26 14:26:44 -05:00
Victor Savkin
90879eb469 feat(core): add ability to skip cache 2020-02-25 16:38:43 -05:00
Victor Savkin
33e12754fe cleanup(core): improve the handling of edge cases determining task's outputs 2020-02-25 15:32:15 -05:00
Rares Matei
564ff5a642
docs(core): improve run-commands documentation (#2546) 2020-02-25 15:11:02 -05:00
Jimmy
06b0e7fe6e
fix(nx-plugin): ignoring Additional Files from Affected Commands (#2519)
* fix(nx-plugin): ignoring Additional Files from Affected Commands

ISSUES CLOSED: #2517
2020-02-22 17:06:10 -05:00
Jack Hsu
74716df4fc fix(core): improve performance of affected computation
- Uses a shared mutable state between project traversals so we don't create new objects unnecessarily
- Closes #2367
2020-02-21 16:12:57 -05:00
Victor Savkin
49168c10e3
feat(react): rework react buildable libraries to read deps from dist (#2513) 2020-02-20 11:00:13 -05:00
Juri
7723e941c0 docs(core): adjusts description on library schematics
right now "where the app is placed" is displayed which might be confusing given we generate a
library
2020-02-20 08:26:28 -05:00
Rares Matei
c04f8afeba
feat(core): "cwd" option for commands runner (#2501)
* feat(core): add cwd option to commands runner

* docs(core): add docs for new cwd option in commands runner

* cleanup(core): remove unecesarry import in test

* fix(core): fix failing unit test

* feat(core): allow additionalProperties for run commands

* docs(core): format docs for command runner
2020-02-20 11:21:13 +00:00
Rares Matei
eee8c18ebc
feat(core): specify a custom .env file for workspace:run-commands (#2505)
* feat(core): add envFile option to commands runner

* feat(core): add tests for dotenv functionality in command runner
2020-02-19 15:07:26 -05:00
Jack Hsu
f1599f5ad7
fix(core): mark all projects as affected when npm package is deleted (#2508) 2020-02-19 12:55:08 -05:00
x87
647a657827
fix(core): find the most qualifying project for a changed file (#2468)
* fix(core): find the most qualifying project for a changed file
2020-02-19 08:47:51 -05:00
Jason Jean
1d1063fb1a fix(core): recalculate dep-graph when root files are touched 2020-02-16 17:20:56 -05:00
Victor Savkin
a8f9e12fb6 fix(core): update ts eslint version to remove the warning 2020-02-16 12:50:12 -05:00
Victor Savkin
dd598e215d fix(core): update create-nx-workspace to perform unit testing and linting 2020-02-16 12:50:12 -05:00
Bradley Zeggelaar
4d8b38b7ce feat(core): adds host binding option to dep-graph command 2020-02-16 10:28:24 -05:00
Jason Jean
e5db43f92b fix(misc): loosen dependencies for angular dependencies 2020-02-16 09:59:11 -05:00
Jack Hsu
a0a9180cec
fix(core): perform package.json update if one of the deps is missing (#2481)
* fix(core): perform package.json update if one of the deps is missing

* fix(core): add test for package.json update

Co-authored-by: Juri Strumpflohner <juri.strumpflohner@gmail.com>
2020-02-14 09:43:30 -05:00
Philip Fulcher
1719e04a5a fix(core): fix 'group by folder' checkbox, small style changes 2020-02-13 17:31:07 -05:00
Philip Fulcher
9f81564d7c feat(core): add better filtering to dep-graph visualization 2020-02-13 17:31:07 -05:00
Victor Savkin
5a994fd0d3 fix(core): set the version of rxjs with a caret 2020-02-09 16:49:04 -05:00
Brandon Roberts
c4a35e7d16 fix(core): check semver before updating dependencies using migrations.json 2020-02-07 13:49:03 -05:00
Jason Jean
fd0b192161 feat(core): update to devkit 9.0.1 2020-02-07 13:47:54 -05:00
Brandon Roberts
56c1c358ce fix(core): update @nrwl/workspace migration versions 2020-02-07 13:47:47 -05:00
Jason Jean
35e3be2469 feat(angular): update to angular 9.0.0 2020-02-06 15:16:21 -05:00
Jason Jean
3c6d8c67f8
feat(angular): update angular to 9-rc.14 (#2437) 2020-02-06 13:01:04 -05:00
Jason Jean
be495c27ef fix(core): fix migration adding duplicate implicit dependencies 2020-02-04 15:14:18 -05:00
Victor Savkin
04a9c5edbb feat(core): minor cache improvements to improve dev ergonomics 2020-02-04 15:02:19 -05:00
Victor Savkin
e70f91170f feat(core): add life cycle methods to the new tasks runner 2020-02-01 21:14:26 -05:00
Jason Jean
6e069c4a34
fix(misc): fix paths for ng add @nrwl/workspace (#2413) 2020-02-01 11:41:02 -05:00
Jason Jean
b6e6b3f1c3
Revert "Revert "feat(core): update to next version of angular deps"" (#2264)
This reverts commit f816fc424d4b0d850e0a49d0ed8e4a30ddca308c.
2020-01-31 13:08:50 -05:00
Jonathan Cammisuli
1c4078986f
TypeScript module resolution and lint updates (#2309)
* Revert "Revert "fix(core): sort node names for module resolution""

This reverts commit 0b77072fcfe63f8d02fccb73ba138aca99cb7f66.

* fix(core): add target project locator

This will sort nodes by length of the root (high to low) then nodes that have no root.

It also uses TypeScript to first try and resolve a module. If it is not found via TypeScript, it will
fall back to using a string match.
2020-01-31 13:08:12 -05:00
Jason Jean
f923697358 fix(core): invalidate previous failed projects 2020-01-29 17:43:21 -05:00