1226 Commits

Author SHA1 Message Date
Victor Savkin
5c49345c34 feat(core): provide a way to handle get unparsed args in the executor 2022-06-10 14:04:08 -04:00
Craigory Coppola
6132ad7472
fix(js): preset should use packages folder (#10691) 2022-06-10 13:25:16 -04:00
Phillip Barta
b9e623d84d
cleanup(repo): refactored fileutils (#10503) 2022-06-08 10:38:34 -04:00
Craigory Coppola
838170e200
fix(linter): relative paths should be correct on windows (#10604) 2022-06-06 20:09:25 -04:00
Craigory Coppola
4d7e5ba29a
chore(misc): remove defaultCollection from generators (#10601) 2022-06-06 20:03:46 +00:00
Victor Savkin
932404303a cleanup(core): use npm.json instead core.json as the preset name for npm workspaces 2022-06-06 15:10:29 -04:00
Craigory Coppola
7f7bc1a095
fix(core): require.resolve(m/package.json) is not guarunteed to work for modern module format (#10497)
* fix(core): require.resolve(m/package.json) is not guarunteed to work for modern module format

* chore(repo): update usage of new readModulePackageJson function
2022-06-03 20:54:15 +00:00
Phillip Barta
d53000ae67
feat(core): migrate to prettier ^2.6.2 (#10499) 2022-06-03 11:18:28 -04:00
Leosvel Pérez Espinosa
eea2470619
feat(angular): support angular v14.0.0 (#10559) 2022-06-03 10:23:09 -04:00
Leosvel Pérez Espinosa
914f0ce707
feat(misc): update typescript to 4.7 (#10560) 2022-06-02 13:29:11 -04:00
Leosvel Pérez Espinosa
26edb49302
feat(angular): support angular v14.0.0-rc.3 (#10543) 2022-06-01 16:26:09 +00:00
Victor Savkin
e491c6f738 feat(core): make nx.json optional 2022-05-31 15:35:28 -04:00
Miroslav Jonaš
daa5cfe558
fix(core): ensure pnpm v7 install when peer deps are missing (#10522) 2022-05-30 21:27:28 +00:00
Leosvel Pérez Espinosa
62afcb79b0
feat(angular): support angular v14.0.0-rc.2 (#8883) 2022-05-30 16:09:00 -04:00
Denis Frenademetz
7ee93f03fe
fix(core): ensure createPackageJson sorts dependencies consistently (#10476) 2022-05-27 17:47:55 -04:00
Craigory Coppola
c9897c61e6
fix(core): swc should be an optional peer dependency (#10461) 2022-05-26 12:09:27 -04:00
Chau Tran
124fd7d206
fix(core): ensure updateStorybook in nrwl/workspace:move handle direc… (#10399)
* fix(core): ensure updateStorybook in nrwl/workspace:move handle directories and files

* chore(core): remove console log
2022-05-20 12:58:29 +03:00
Miroslav Jonaš
c17a086390
fix(core): include types/node in deps when adding workspace-generator (#10388) 2022-05-20 09:52:52 +02:00
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
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
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
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
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
Noriyuki Shinpuku
945ee01147
fix(core): fix migration for tasks runners (#9778) 2022-04-12 09:10:55 -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