1524 Commits

Author SHA1 Message Date
Caleb Ukle
39331d1e17
feat(testing): move jest config to .ts files (#9854)
* feat(testing): move jest config to .ts

move jest config and preset to ts files

ISSUES CLOSED: #8344

* fix(testing): update tests for jest.config.ts changes

update tests broken by renaming jest fils to ts files
2022-04-21 17:58:40 +00:00
Miroslav Jonaš
d27563ba1e
fix(core): improve generated workflows (#9921) 2022-04-21 12:55:02 +02:00
Miroslav Jonaš
ec0f4b4173
fix(core): handle failed CI workflows in CNW CLI (#9915) 2022-04-20 20:46:13 -04:00
Miroslav Jonaš
ea9fbd5454
feat(core): throw error on ci generator if nx cloud not set (#9914) 2022-04-21 00:26:59 +02:00
Miroslav Jonaš
5fe8d84396
feat(core): add CI generation to create-nx-workspace (#9611) 2022-04-20 14:51:15 -04:00
Jason Jean
cb7fb22bca
feat(core): remove @types/node from default workspace (#9853)
Signed-off-by: Jason Jean <jasonjean1993@gmail.com>
2022-04-20 12:43:23 -04:00
Jason Jean
ad4233fe56 feat(core): migrate @nrwl/workspace:run-script to nx:run-script 2022-04-13 17:46:52 -04:00
Jason Jean
f255030c09 feat(core): migrate nx.json presets to come from nx package 2022-04-13 17:46:52 -04:00
Jason Jean
bfbe8fcb21
fix(core): remove @nrwl/workspace when adding nx to monorepo (#9813) 2022-04-13 14:40:24 -04:00
James Henry
46e7b4d49c
chore(core): improve help output for generators and executors (#9800) 2022-04-12 14:05:55 -04:00
Noriyuki Shinpuku
945ee01147
fix(core): fix migration for tasks runners (#9778) 2022-04-12 09:10:55 -04:00
Jason Jean
c0471515d2
fix(core): fix migrate race conditions (#9794) 2022-04-12 09:09:42 -04:00
Giora Guttsait
32b49b6f7c
feat(core): respect packageGroup in nx migrate (#9667)
* cleanup(core): refactor migrate.ts

* feat(core): respect packageGroup in nx migrate

ISSUES CLOSED: #4575

* fix build

* chore(repo): trigger CI

* chore(core): fix review comments, without packageGroup extension

* chore(core): revert `withTempNpmDirectory` changes

* chore(repo): trigger ci

* chore(core): fix unit tests

* chore(core): remove view and pack from pmc

* chore(repo): kick off CI

* chore(core): add tests for recursive packageGroup

* chore(core): add another test for cyclic packageGroup

* chore(repo): kickoff CI

Co-authored-by: Craigory Coppola <craigorycoppola@gmail.com>
2022-04-08 15:57:24 -04:00
zhaoyunfeng
0e68c616fe
fix(node): webpack executor doesn't respect option outputFileName (#9740)
Co-authored-by: zhaoyunfeng <zhaoyunfeng@worktile.com>
2022-04-08 14:16:54 -04:00
Colum Ferry
9cef14d302
fix(core): replaceAppNameWithPath should not consider defaultConfiguration #9706 (#9729) 2022-04-08 15:33:25 +01:00
Pedro Rodrigues
8e3f7d8605
fix(core): build project's that have buildable dependencies without package.json's (#9466) 2022-04-08 14:28:24 +00:00
Miroslav Jonaš
9d89ea8f1f
chore(linter): update eslint version (#9708) 2022-04-07 00:02:09 +02:00
Craigory Coppola
704b6c88e0
fix(core): preset core should remove workspace.json (#9710) 2022-04-06 15:38:56 +00:00
Miroslav Jonaš
87fd3ffdbe
cleanup(core): remove unused npm scope from target project locator (#9695) 2022-04-05 23:05:21 +02:00
CommanderRoot
05a9544806
cleanup(misc): replace deprecated String.prototype.substr()
* cleanup(misc): replace deprecated String.prototype.substr()

.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated

Signed-off-by: Tobias Speicher <rootcommander@gmail.com>

* fix(js): fix slice change

Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2022-04-01 23:04:26 +00:00
Victor Savkin
428106f6be
cleanup(core): create more meaningful file structure in nx package (#9621) 2022-03-31 09:07:22 -04:00
Miroslav Jonaš
5b34fa4c74
fix(core): add missing lint info to library generator (#9627) 2022-03-31 08:56:23 +00:00
Jason Jean
7880de546f
chore(repo): update nx to 13.10.0-beta.9 (#9587) 2022-03-31 03:56:35 +00:00
Miroslav Jonaš
3b21f4dfea
fix(core): switch from appRootPath to workspaceRoot (#9600) 2022-03-30 09:15:20 -04:00
Jason Jean
1bcfe27689
chore(repo): re-export after consolidating packages (#9595) 2022-03-29 19:14:39 +00:00
Craigory Coppola
9123665bed
fix(core): normalize file path for node-hasher (#9585)
Node hasher paths need to be normalized, since on windows they return with '\' instead of '/' and don't match keys in workspace configuration.

Fixes #9584
Fixes #9581
2022-03-29 14:16:24 -04:00
Miroslav Jonaš
9e06020575
feat(core): toggle additional prompts in CNW with a flag (#9546)
* feat(core): toggle additional prompts in CNW with a flag

* feat(repo): handle cli params with yargs

* feat(core): add docs generation

* chore(repo): add colors

* fix(core): migrate to yargs 17.x

* fix(core): update markup generation
2022-03-29 14:00:07 -04:00
Jay Bell
70492f3939
fix(core): add more descriptive dependencies build error (#9031)
Co-authored-by: Craigory Coppola <craigorycoppola@gmail.com>
2022-03-28 16:50:45 -04:00
swuendri
0ad3eb34cb
feat(core): add option importPath to workspace remove library (#9486)
Co-authored-by: Sven Wuendrich <sven.wuendrich@ottogroup.com>
2022-03-28 15:28:28 -04:00
Melanie Seltzer
9a16371bf0
fix(core): un-scope the node_modules entry in generated .gitignore (#9544)
ISSUES CLOSED: #9412
2022-03-28 12:40:38 -04:00
Jason Jean
b7ed00ffa3
chore(core): re-export from core/project-graph and core/file-utils (#9560) 2022-03-28 16:26:48 +00:00
Colum Ferry
8e09875cb3
fix(core): add log line to inform install after migration (#9559) 2022-03-28 16:17:51 +00:00
Jason Jean
8b0f9d25e7
chore(core): update yargs to 17.4.0 (#9511) 2022-03-28 11:28:14 -04:00
Benjamin Cabanes
ad5c6c3cbe
docs(core): add description to workspace package (#9527) 2022-03-25 19:31:34 +00:00
Victor Savkin
4d10cec58b
fix(core): fix a perf regression in the lint executor 2022-03-25 12:52:09 -04:00
Victor Savkin
fe846882aa
chore(repo): update repo to 13.10 (#9497) 2022-03-24 12:21:07 -04:00
Benjamin Cabanes
6dae32cc3a
docs(nxdev): support packages schemas metadata & discoverability (#9383) 2022-03-24 12:00:06 -04:00
Victor Savkin
d4b5c30eba
cleanup(core): remove the indirection left after inlining ta… (#9469) 2022-03-23 22:18:17 -04:00
Miroslav Jonaš
c7e621f6f6
fix(core): fix missing versions from nx report (#9450) 2022-03-23 10:07:31 -04:00
Benjamin Cabanes
1723e8e6b3
docs(nxdev): remove unused versions & flavors feature (#9462) 2022-03-22 17:44:35 +00:00
Craigory Coppola
9261105630
fix(js): return success false if tsc compilation fails (#9438) 2022-03-21 16:39:40 -04:00
Leosvel Pérez Espinosa
e427de68dc
fix(angular): update library package.json only with direct dependencies (#9315) 2022-03-21 09:24:13 +00:00
Craigory Coppola
ccfc527b20
fix(core): projects inferrred in apps directory should be inferred as an application (#9379)
* fix(core): projects inferrred in apps directory should be inferred as an application

* chore(repo): add jest setup back for `nx`
2022-03-18 19:14:04 -04:00
Enoyao
bf836f4313
cleanup(core): use full variable name in git-hasher.ts (#9143) 2022-03-18 22:32:02 +00:00
Leosvel Pérez Espinosa
88a7ad7654
cleanup(angular): move the angular cli migration generator from @nrwl/workspace to @nrwl/angular (#9244)
* cleanup(angular): move the angular cli migration generator from @nrwl/workspace to @nrwl/angular

* cleanup(angular): support merged packages (cli, tao, nx)

* cleanup(angular): update make-angular-cli-faster to support packages consolidation
2022-03-18 17:18:10 -04:00
Miroslav Jonaš
f50f0bc845
chore(core): split hasher filter types for node and workspace project (#9293)
* chore(core): split hasher filter types for node and workspace project

* fix(core): change leftover hash filter to node hash filter
2022-03-18 16:26:37 -04:00
Sorin Davidoi
75f9ece440
fix(core): don't allow arbitrary code execution when manipulating cache (#9329)
The Node documentation for `exec` states:

> Never pass unsanitized user input to this function. Any input containing shell metacharacters may be used to trigger arbitrary command execution.

The `folder` variable comes directly from the `NX_CACHE_DIRECTORY` environment variable (or from `nx.json`). Careful crafting of this variable can result in NX executing arbitrary commands.

This patch fixes this by using `execFile`, which does not spawn a shell.
2022-03-18 16:19:12 -04:00
Craigory Coppola
05f72c96ea
fix(core): targets referred to by targetDependencies should be optional by default (#9344) 2022-03-18 15:30:48 -04:00
Colum Ferry
a8ede441eb
feat(angular): support angular v13.3.0 (#9311) 2022-03-18 14:59:04 +00:00
Jason Jean
731e57098e chore(core): fix snapshots 2022-03-16 17:26:16 -04:00