1592 Commits

Author SHA1 Message Date
Jason Jean
04985be149
chore(repo): switch publishing to use lerna (#10293) 2022-05-20 00:35:47 +00:00
“JamesHenry”
399f2ab70a fix(core): bump nrwl/ci workflow versions 2022-05-19 08:48:52 -04:00
Victor Savkin
6351413b98 fix(core): preserve dash casing when passing args to executors 2022-05-17 14:48:53 -04:00
AgentEnder
a2d9d5664e fix(angular): when generating --preset angular and --cli nx use angular readme at root 2022-05-12 11:18:05 -04:00
Caleb Ukle
ecf88a6995
fix(testing): update v14 migration and migrate jest.config.ts to use export default (#10035)
* fix(testing): jest.preset.ts => jest.preset.js

* fix(testing): update to export default

* fix(testing): migration for moving to export default

* fix(testing): add eslint ignore comments for jest config properties

fixes: #10021

* fix(testing): update tsconfig.spec.json for next apps with project parserOptions

fixes: #9982

* fix(testing): prevent renaming root jest preset

fixes: #9973

* fix(testing): update snapshots for export default

* fix(testing): bump migration version to run

* fix(testing): make sure default jest tests pass for various projects

* fix(js): generate correct jest config for --compiler=swc --js
2022-05-11 18:04:29 +00:00
Nicoss54
5c995a797f
docs(nxdev): update run-script documentation (#10195) 2022-05-11 11:08:12 -04:00
Chau Tran
512237caf7
feat(core): add nx.json, workspace.json, and project.json JSON schemas (#10228)
* feat(core): add nx.json, workspace.json, and project.json JSON schemas

ISSUES CLOSED: #8574, #2299

* fix(core): add ajv to test generated config files based on JSON schema

* fix(core): only add $schema to project.json if it is standalone and in create mode

* feat(core): add migration to add json schema to config files for 14.2.0

* fix(core): adjust schemas

* chore(core): adjust tests across repo to adhere to JSON schema if generated

* fix(core): construct the json schema object instead of using a boolean flag

* chore(core): add ajv tests for workspacejson and nxjson

* chore(core): remove unnecessary standalone check
2022-05-10 15:05:26 -05:00
Ilya Zyablitsev
fdd7479465
fix(core): migrate should not fail if dependencies section doesn't exist (#10202) 2022-05-09 17:16:22 -04:00
Phillip Barta
0cc7042beb
chore(repo): updated dependency fs-extra to ^10.1.0 (#9985) 2022-05-06 17:56:19 -04:00
Jason Jean
8b810879d2
fix(core): add tao to package group (#10148) 2022-05-04 22:43:40 +00:00
Jason Jean
ac8ebed1c8
fix(core): add dependency from workspace to devkit (#10147) 2022-05-04 21:27:31 +00:00
Jason Jean
e4cccfc14d
chore(repo): update nx to 14.1.1 (#10132) 2022-05-04 15:27:43 +00:00
Victor Savkin
e6738abc9f feat(misc): move run-commands executor to nx 2022-05-03 14:35:18 -04:00
Katerina Skroumpelou
bef82408b4
fix(core): refine move and remove generators for projects with a target name (#10063)
Co-authored-by: Jack Hsu <jack.hsu@gmail.com>
2022-04-29 16:15:08 +00:00
Jason Jean
5e23c07077
fix(core): automatically add root to the project.json projects (#9977)
* fix(core): automatically add root to the project.json projects

* chore(core): move project-configuration generator utils to nx package

* fix(core): add migrations to remove root
2022-04-28 13:24:35 -04:00
James Henry
13807d3a81
chore(core): remove deprecated with-deps, NxJsonProjectConfiguration + operators (#9947) 2022-04-26 10:55:24 -04:00
Jason Jean
4f99b77e42
chore(repo): update nx to 14.0.2 (#9974) 2022-04-23 18:06:01 +00:00
Caleb Ukle
88971468db
fix(testing): pass --js flag to jest generators (#9965) 2022-04-22 22:43:59 -04:00
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