123 Commits

Author SHA1 Message Date
Jason Jean
f069d8ec71
fix(core): properly throw error when failing to read workspace (#8835) 2022-02-04 18:58:00 -05:00
Leosvel Pérez Espinosa
3a2fd3f419
fix(angular): support target aliases existing in the angular-cli (#8787) 2022-02-01 13:59:02 -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
490c66f245
fix(core): fix dot notation parsing (#8763) 2022-01-28 18:36:20 -05:00
Victor Savkin
f72c6796a5
fix(core): terminal caching fails when trying to close the file descriptor 2022-01-28 15:10:09 -05:00
Jason Jean
c319367dfe
fix(core): keep output if process exits unexpectedly (#8696) 2022-01-25 14:10:14 -05:00
Victor Savkin
6c83b59567
fix(core): only write the file with the terminal output once 2022-01-24 15:05:53 -05:00
Victor Savkin
298ceba5b3
chore(repo): readme fixes 2022-01-24 09:39:31 -05:00
Victor Savkin
67e242fea9
feat(core): align the dynamic and static outputs (#8625) 2022-01-21 14:58:53 -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
9e75918154
feat(core): speed up file map creation (#8597) 2022-01-19 15:30:21 -05:00
Phillip Barta
da39485076
cleanup(misc): removed yargs and yargs-parser from packages (#8350) 2022-01-11 12:25:18 -05:00
Victor Savkin
16e9f58f76 feat(core): optimise cache restoration and storing 2022-01-10 11:40:10 -05:00
Phillip Barta
8abcaab7c3
fix(misc): dont publish jest.config.js files (#8341) 2022-01-07 14:10:24 -05:00
Phillip Barta
e57cef0901
cleanup(repo): use devkit instead of devkit reexports from workspace (#7773) 2021-12-21 21:06:31 +00:00
Victor Savkin
88751a3685 chore(repo): clean up the language to match the new tag line 2021-12-17 16:08:38 -05:00
Victor Savkin
3ecd1c28b7 fix(core): daemon should copy file maps 2021-12-08 14:44:12 -05:00
Victor Savkin
a4e97c7356 fix(core): global nx commands throws when not in nx workspace 2021-12-04 14:52:53 -05:00
Craigory Coppola
c04686ab10
feat(core): optional workspace.json file (#7584) 2021-11-30 15:02:06 -06:00
Leosvel Pérez Espinosa
e666d3fdf0 fix(angular): do not require v8-compile-cache when it is an angular workspace 2021-11-27 14:08:14 -05:00
James Henry
98ffe8574b feat(linter): support eslint v8 (#7800)
* feat(core): support eslint v8

* fix(core): align version of eslint across all packages
2021-11-19 14:55:33 -05:00
Jason Jean
448923a1b1
chore(repo): update nx to 13.2.0-rc.4 (#7796) 2021-11-18 16:56:36 -05:00
Victor Savkin
7d14859863 fix(core): support target names with colons 2021-11-11 21:43:31 -05:00
AgentEnder
f6a562d1ec chore(repo): migrate to v13.1.4 2021-11-11 15:12:06 -05:00
Craigory Coppola
3681bb0c4b
chore(core): pass stdio: inherit during ng add alias (#7459) 2021-10-20 18:18:03 +00:00
Craigory Coppola
bbe6bebcdd chore(core): update @nrwl/cli package.json 2021-10-19 11:47:49 -04:00
AgentEnder
00615d0f36 fix(angular): ng add works in v2 workspaces 2021-10-19 11:47:49 -04:00
Craigory Coppola
bdcbac4445
feat(core): standalone project configuration is default (#7351)
* feat(core): standalone project configuration is default

* chore(core): changes to e2e tests

* fix(core): intuit projects when inside their directories when using project.json files

* chore(core): e2e changes

* fix(core): standalone configurations work with npm-project generator

* chore(core): e2e tests should use standalone configurations

* chore(core): e2e fixes per review
2021-10-16 00:07:12 +02:00
James Henry
a4e0d72edc chore(core): updates to daemon related commands and output 2021-10-14 20:10:20 -04:00
James Henry
e7d49aa55d chore(core): nx reset command, updates to cli help output and docs 2021-10-14 20:10:20 -04:00
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
James Henry
9d2a304b11 chore(core): updates to daemon outputs, socket location and help 2021-10-12 20:02:00 -04:00
Victor Savkin
d79bba3630 chore(repo): update to nx 12.10 2021-09-20 16:39:13 -04:00
Andrew Luca
fe7c25d00f
chore(misc): add repository directory for all packages.json (#6973) 2021-09-15 11:53:08 -04:00
Vivek 🧐
7c6b931705 cleanup(core): simplify code 2021-09-15 10:42:55 -04:00
AgentEnder
c9c8fa7f1c chore(core): project.json should not be included in builds
Signed-off-by: AgentEnder <craigorycoppola@gmail.com>
2021-08-20 20:22:30 -04:00
Jason Jean
85f92e740e
feat(misc): simplify npm scripts generated (#6764) 2021-08-20 12:07:26 -04:00
James Henry
3351ef80bc
chore(core): opt-in daemon for ProjectGraph creation, refactor hasher (#6572) 2021-08-12 08:56:01 -04:00
vsavkin
0e52c43665 feat(core): store file deps and only reanalyze changed files 2021-07-16 20:21:45 -04:00
Craigory V Coppola
442e4fc6a1
chore(repo): convert to project json format (#6286) 2021-07-08 11:36:35 -04:00
vsavkin
c0d66563b4 fix(core): error messase when missing targets 2021-07-03 21:20:09 -04:00
Victor Savkin
80d3999d42
fix(core): correct detect run commands when using project.json (#6221) 2021-07-02 08:15:57 -04:00
Jason Jean
4f7191e154 chore(repo): update nx to 12.5.0-beta.5 2021-06-25 17:08:37 -04:00
Phillip Barta
fe97444d78
feat(core): migrate prettier to v2.3.1 (#5623) 2021-06-17 16:44:30 +02:00
Phillip Barta
868de62ae7
feat(core): use common fileutils in @nrwl/cli and create-nx-plugin (#5940) 2021-06-14 11:08:05 +02:00
Leosvel Pérez Espinosa
8354c54b18
fix(core): nx run should not use defaultConfiguration when configuration is passed (#5796)
ISSUES CLOSED: #5793
2021-05-26 11:35:52 +01:00
vsavkin
f82344d63a chore(repo): refine the tag line 2021-05-18 20:55:40 -04:00
vsavkin
af23cc5d7d feat(misc): change the nx tag line 2021-05-18 16:07:22 -04:00
Leosvel Pérez Espinosa
678818a58b
feat(angular): upgrade Angular to v12.0.0-rc.3 (#5630)
* feat(angular): upgrade Angular to v12.0.0-rc.3

* feat(angular): target Nx v12.4.0-beta.0 for Angular v12.0.0-rc.0 upgrade

* fix(angular): use defaultConfiguration if no other configuration is passed

* cleanup(angular): sync migration folder name to target version

* fix(repo): creating custom schema flattener for docs

* chore(repo): amend yarn.lock

* feat(angular): update angular storybook to use webpack 5

* fix(angular): add legacy peer deps for angular+jest

* fix(angular): move migrations to 12.3.0-rc.0

Co-authored-by: Zack DeRose <zack.derose@gmail.com>
Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2021-05-12 12:20:12 -04:00
Jason Jean
c7ce8d2b28
fix(core): consistently process args with yargs-parser instead of minimist (#5488) 2021-04-30 19:08:59 -04:00