219 Commits

Author SHA1 Message Date
Victor Savkin
c52a8c2e9b feat(core): finalize the input api 2022-06-29 10:52:14 -04:00
Chau Tran
1afad766e6
fix(core): return a list of dependents that do not have sourceRoot to calculate glob patterns (#10899)
When a library (often an implicit dependency one) does not have `sourceRoot`,
`getSourceDirOfDependentProjects` returns an array with the problematic library path as `[undefined,
libs/some-other-lib]` which causes `createGlobPatternsForDependencies` to throw an error and
ultimately returns an empty `[]` instead of `[libs/some-other-lib]`.
This PR ensures
`getSourceDirOfDependentProjects` filters out `undefined` (`sourceRoot`) as well as logs a warning
to let the users know that they have libraries that are missing `sourceRoot` and Nx cannot calculate
their glob patterns

ISSUES CLOSED: #10871
2022-06-27 13:53:40 -05:00
Craigory Coppola
5b90514008
feat(core): move workspace configuration computation to daemon (#10860) 2022-06-24 09:45:51 -04:00
Nicholas Cunningham
fd98c505e0
fix(nextjs): reorder eslint extension so that local eslint loads last (#10802)
ISSUES CLOSED: #9741

Co-authored-by: Nicholas Cunningham <ndcunningham>
2022-06-20 14:03:32 +00:00
Dylan Andersen
8cae2c9eca
docs(core): fix links to nx tutorials (#10763)
Co-authored-by: Dylan Andersen <dylan@joinhandshake.com@Dylans-MBP.attlocal.net>
2022-06-16 10:54:22 -04:00
Nicholas Cunningham
550b185921
fix(nextjs): Fixes Next JS Component generator to export component when export flag is provided (#10699)
Co-authored-by: Nicholas Cunningham <ndcunningham>
2022-06-13 09:25:19 -04:00
Jack Hsu
f95b1c3c7d
feat(next): update package versions (#10658) 2022-06-09 14:26:34 +00:00
Craigory Coppola
4d7e5ba29a
chore(misc): remove defaultCollection from generators (#10601) 2022-06-06 20:03:46 +00:00
Jason Jean
04985be149
chore(repo): switch publishing to use lerna (#10293) 2022-05-20 00:35:47 +00:00
Jonathan Wagner
c35b13dd26
fix(react): migrations should not crash when adding development configuration (#10261) 2022-05-12 14:30:33 -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
Jack Hsu
14b3419c19
fix(nextjs): update custom server setup so hostname and port are always provided (#10103) 2022-05-04 14:31:05 +00:00
Jack Hsu
e07ef9f216
fix(nextjs): fix support for custom distDir (#10106) 2022-05-02 20:50:44 +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
Jack Hsu
e7447685cc
fix(react): update migration to work without targets (#9901) 2022-04-20 18:25:57 +00: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
Jack Hsu
2b421117bf
feat(react): add default development configuration for React and Next.js apps (#9892) 2022-04-20 04:27:19 +00:00
James Henry
46e7b4d49c
chore(core): improve help output for generators and executors (#9800) 2022-04-12 14:05:55 -04:00
Jack Hsu
b02beb551b
feat(react): update to react 18 (#9613) 2022-03-30 17:48:37 +00:00
Miroslav Jonaš
3b21f4dfea
fix(core): switch from appRootPath to workspaceRoot (#9600) 2022-03-30 09:15:20 -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
Victor Savkin
6f038e7a4a feat(core): reorganize packges to consolidate all cli-related code in nx 2022-03-14 16:42:51 -04:00
Louis DeScioli
5cebe9ccdd
fix(nextjs): use posix path format for generated config.distdir (#8990)
ISSUES CLOSED: #8989
2022-03-10 14:51:15 +00:00
Leosvel Pérez Espinosa
acc29e9593
fix(misc): support workspaces using a root tsconfig.json instead of tsconfig.base.json (#9195)
* fix(misc): support workspaces using a root tsconfig.json instead of tsconfig.base.json

* cleanup(angular): address pr feedback
2022-03-09 11:30:26 -05:00
Miroslav Jonaš
06ff832ea9
chore(react): fix version on eslint-plugin-react (#9121) 2022-02-25 17:25:06 +01:00
HIKARU KOBORI
f8c614d45b
feat(nextjs): bump up Next.js v12.1.0 (#9020)
* feat(nextjs): feat(nextjs): bump up nextjs v12.1.0

bump up next.js and eslint-config-next to v12.1.0
ISSUES CLOSED: #9018

Co-authored-by: kobori.hikaru <kobori.hikaru@a-hikkoshi.co.jp>
Co-authored-by: kirjai <9858620+kirjai@users.noreply.github.com>
2022-02-18 21:01:03 +00:00
Jack Hsu
1e647b9c83
feat(next): call init when generating next.js lib (#8926) 2022-02-10 21:37:29 +00:00
Leosvel Pérez Espinosa
cf7a18bd14
fix(angular): prevent adding dependencies when generating apps and specifying skipPackageJson (#8806) 2022-02-01 16:32:47 -05:00
Phillip Barta
be91d1f99a
fix(core): stop inlining tsconfig-paths-webpack-plugin and use version with fix (#8357) 2022-01-27 08:59:46 -05:00
Isaac Mann
07ebdb36a3
feat(core): add nx graph as alias of nx dep-graph (#8539)
* feat(core): add nx graph as alias of nx dep-graph

* docs(core): add note about old dep-graph syntax

* cleanup(core): formatting

* feat(core): formatting

* feat(core): formatting

Co-authored-by: Isaac Mann <isaacplmann+git@gmail.com>
2022-01-21 11:15:23 -05:00
Jack Hsu
f231cfc01b
feat(repo): move gatsby plugin to nx-labs repo (#8617) 2022-01-20 12:00:51 -05:00
Noriyuki Shinpuku
fe2e6ee589
cleanup(nextjs): remove unnecessary type in next-env.d.ts (#8301) 2022-01-14 15:10:07 +00:00
Noriyuki Shinpuku
054d4eb775
fix(nextjs): fix .babelrc for libraries (#8075) 2022-01-06 19:03:11 +00:00
Jack Hsu
195b8f3262
chore(nextjs): remove assertion that dependencies have been built (#8325) 2021-12-29 13:04:10 -05:00
Kirils L
4b0a1322b9
docs(nextjs): page generator examples no longer shows component examples (#8262) 2021-12-21 16:16:07 -05:00
Phillip Barta
e57cef0901
cleanup(repo): use devkit instead of devkit reexports from workspace (#7773) 2021-12-21 21:06:31 +00:00
Kirils L
27f120db39
fix(nextjs): disable 13-1-1 migration (#8209)
* fix(nextjs): 13-1-1 migration - dont delete babelrc if storybook is configured

* fix(nextjs): disable 13-1-1 swc migration
2021-12-17 21:12:43 +00:00
Jack Hsu
6d6f29439d
feat(testing): add --compiler=tsc|swc|babel option for jest project generator (#8177) 2021-12-15 14:27:53 +00:00
Kirils L
232eaafc21
fix(nextjs): incorrectly named nested page component files (#8170) 2021-12-14 16:00:44 -05:00
Kirils L
68e5328de7
fix(nextjs): make flat option configurable for page generator (#8113) 2021-12-10 20:18:46 +00:00
Noriyuki Shinpuku
fe96a33173
feat(nextjs): bump Next.js version to 12.0.7 (#7788) 2021-12-08 20:06:02 +00:00
Benjamin Cabanes
66e4e85067
feat(core): new nx starter (#7912) 2021-12-03 11:05:09 -05:00
Jack Hsu
157c6e0fb0
feat(web): rename @nrwl/web:build to @nrwl/web:webpack (#7952) 2021-11-30 14:22:34 -05:00
Jack Hsu
339661f18a
fix(nextjs): fix migration path for enable-swc (#7535) 2021-10-27 14:15:54 +00:00
Jack Hsu
2cbba1748f
chore(nextjs): add a guard for SWC migration for custom babel configs (#7529) 2021-10-26 22:47:42 -04:00
Jack Hsu
1000663a91
feat(nextjs): migration to enable SWC for nextjs apps (#7528) 2021-10-26 22:06:23 -04:00
Jack Hsu
39bc2e293e
feat(nextjs): bump Next.js version to 12.0.0 (#7524) 2021-10-27 00:37:14 +00:00