84 Commits

Author SHA1 Message Date
Jack Hsu
e45c2f24ba
feat(nextjs): improve support for custom server (#11325)
- Add new generator for custom server
- Add @nrwl/js:node executor for serving custom server
- Deprecate @nrwl/node:node in favor of the above
2022-08-02 18:37:23 +00:00
Jack Hsu
c76eb7fb74
chore(nextjs): clean up constants import path and remove support for Next.js 10 (#11287) 2022-07-25 17:51:22 +00:00
Jack Hsu
2bcf1c28aa
Next version update (#11280)
* feat(react): update eslint a11y plugin version

* feat(next): update next.js versions
2022-07-25 14:08:27 +00:00
Jack Hsu
8075cb9a9f
chore(nextjs): remove outdir from Next.js config since it is no longer needed (#11257) 2022-07-22 11:06:22 -04:00
Leosvel Pérez Espinosa
01f7376169
cleanup(misc): consolidate tslib version in generated projects (#11185) 2022-07-19 12:59:37 -04:00
Jack Hsu
d657f912d9
feat(web): upgrade webpack plugin versions (#11191) 2022-07-18 15:23:30 -04:00
Jack Hsu
b042b80e2d
feat(next): update next.js versions (#11115) 2022-07-13 18:30:12 +00:00
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
Jack Hsu
f95b1c3c7d
feat(next): update package versions (#10658) 2022-06-09 14:26:34 +00:00
Jason Jean
04985be149
chore(repo): switch publishing to use lerna (#10293) 2022-05-20 00:35:47 +00:00
Jack Hsu
e07ef9f216
fix(nextjs): fix support for custom distDir (#10106) 2022-05-02 20:50:44 +00: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
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
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
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
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
Noriyuki Shinpuku
fe96a33173
feat(nextjs): bump Next.js version to 12.0.7 (#7788) 2021-12-08 20:06:02 +00:00
Jack Hsu
39bc2e293e
feat(nextjs): bump Next.js version to 12.0.0 (#7524) 2021-10-27 00:37:14 +00:00
Kirils L
67ff4acea2
fix(nextjs): sourcemaps display transpiled code (#7487) 2021-10-25 10:01:07 -04:00
Jack Hsu
22294e98a5
chore(react): update react packages (#7434) 2021-10-19 22:08:55 -04:00
Jack Hsu
bedad1cc77
fix(core): patch resolve logic for tsconfig paths (#7387) 2021-10-15 20:47:18 +00:00
Jack Hsu
724b0c0e3c
feat(core): upgrade to webpack 5 (#7283)
* feat(core): upgrade to webpack 5

* chore(core): update webpack 5 docs
2021-10-13 00:34:28 -04:00
Kirils L
22c22a11cc
feat(nextjs): use next 11.1.2 (#7310) 2021-10-11 17:12:05 +03:00
Jack Hsu
fec1c39be0
feat(react): add migration to replace deprecated node-sass with sass (#7105) 2021-09-23 12:01:38 -04:00
Victor Savkin
d79bba3630 chore(repo): update to nx 12.10 2021-09-20 16:39:13 -04:00
Jason Jean
0772cb3642
Revert "chore(repo): update nx to 12.8.0-beta.1 (#6804)" (#6831)
This reverts commit 8e8191f22c7bce330c2c314f37bdf57c71cabadb.
2021-08-24 01:48:50 +00:00
Jason Jean
8e8191f22c
chore(repo): update nx to 12.8.0-beta.1 (#6804) 2021-08-23 18:03:59 +00:00
Phumrapee Limpianchop
fc11571178
fix(nextjs): Next 11.1.0 compatibility (#6699)
Co-authored-by: Kirils L <9858620+kirjai@users.noreply.github.com>
2021-08-16 08:00:19 -07:00
Juri
79ea377a65 fix(nextjs): allow plain url-loader inlining of SVGs not just SVGR 2021-08-11 15:58:30 +02:00
Kirils L
434e2915f0
feat(nextjs): support next 11 (#6131) 2021-07-08 11:48:54 -04:00
Juri Strumpflohner
c5a881d338
fix(nextjs): wrong deprecation message for createGlobPatternsOfDependentProjects (#6299) 2021-07-08 14:04:33 +00:00
Miroslav Jonaš
8ab463e386
cleanup(core): replace deprecated usage of appRootPath (#6241)
* cleanup(core): replace deprecated usage of appRootPath

* cleanup(core): revert migration changes
2021-07-05 15:51:19 -04:00
Juri
bcdf5a75c8 feat(nextjs): add improved createGlobPatternsForDependencies utility useful for Tailwind CSS purging 2021-06-25 15:54:56 -04:00
Juri Strumpflohner
e182700f78
feat(core): expose utilities for retrieving source dirs of dependent projects (#5976)
* feat(core): expose utilities for retrieving source dirs of dependent projects

* feat(nextjs): utility to generate glob patterns from dependent projects
2021-06-15 10:11:05 -04:00
kirjai
8801930553 feat(nextjs): support webpack 5 2021-06-11 16:45:14 +01:00
kirjai
f723613929 feat(nextjs): add buildLibsFromSource option 2021-06-02 17:40:28 +01:00
Kirils L
d251a4f49f
feat(nextjs): update to 10.2.0 (#5503) 2021-05-06 00:05:40 +03:00
Jack Hsu
a7d8e2a735
feat(nextjs): add incremental build support to Next.js apps (#5360) 2021-04-20 12:01:27 -04:00
Kirils L
ffc69d41b4
feat(nextjs): add option to disable svgr (#5200) 2021-04-06 22:40:52 -04:00
Jack Hsu
76bc890f34
feat(nextjs): update Next.js to 10.1.3 (#5254) 2021-04-06 14:28:39 -04:00
kirjai
aefdf26a03 feat(nextjs): support next 10.1.2 2021-03-31 21:09:17 -04:00
Vivek More 🧐
212fb00548 cleanup(misc): use more es6 features
- Single char alternation (e.g. a|b|c|d) in a RegExp can be simplified to use a character class ([abcd]) instead.
  This usually also provides slightly better matching performance.
- Character escapes that are replaceable with the unescaped character without a change in meaning. Inside the square brackets of a character class, many escapes are unnecessary that would be necessary outside of a character class. For example the regex [\.] is identical to [.]
- If several qualified expressions occur after the qualifier having been checked for nullable, they can be replaced with optional chaining
2021-03-24 20:11:32 -04:00
Jack Hsu
3587492bb8
fix(nextjs): improve documentation for "nextConfig" option and provide better error messages (#5098) 2021-03-24 10:29:47 -04:00
Kirils L
14888e50f4
fix(nextjs): leverage nextjs for loading svgs (#5060)
omit our own svg loading fallback, so that next.js webpack config is used instead
2021-03-23 15:14:09 -04:00
Kirils L
0822d00e0c
fix(nextjs): support next 10.0.9 (#5033) 2021-03-17 19:40:42 +00:00