24 Commits

Author SHA1 Message Date
Jack Hsu
042049c785
feat(js): generate package.json with overrides and resolutions (#27601)
This PR ensures that `overrides` and `resolutions` are in the generated
package.json file as well. If they are missing, then using
`--frozen-lockfile` will fail due to mismatched overrides in the
lockfile.

Also adds a `skipOverrides` flag to the affected executors and plugins
-- same as `skipPackageManger` that was added previously.

Affected executors/plugins:
- `@nx/vite:build`
- `@nx/webpack:webpack`
- `@nx/remix:build`
- `@nx/next:build`
- `NxAppWebpackPlugin`


<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
<!-- This is the behavior we have today -->

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #26884
2024-08-22 17:21:49 -04:00
Jack Hsu
83237a8670
feat(js): add skipPackageManager option to build executors in order to skip generating "packageManager" entry in package.json (#27518)
This PR adds `skipPackageManager` option to several build executors in
order to disable generating the `packageManager` field in the resulting
`package.json` file. This field may be problematic on different
platforms so we want a way to work around it.

Affected executors:
- `@nx/webpack:webpack`
- `@nx/vite:build`
- `@nx/next:build`
- `@nx/remix:build`




<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
<!-- This is the behavior we have today -->

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #27027
2024-08-20 09:18:30 -04:00
dfr-exnaton
0ca7df7495
feat(nextjs): add experimental-build-mode option to support compile only (#26465)
## Current Behavior

The nextjs build executor does not support all build flags such as
`--experimental-build-mode` (see
https://nextjs.org/docs/app/api-reference/next-cli#build).

## Expected Behavior

For certain deployment models (e.g. mult-environment builds), it is
helpful to only compile but not generate pages at build time. See
https://github.com/vercel/next.js/discussions/46544 for a discussion.

---------

Co-authored-by: Emily Xiong <xiongemi@gmail.com>
Co-authored-by: Craigory Coppola <craigorycoppola@gmail.com>
2024-06-26 14:54:49 -06:00
Jack Hsu
53345f2241
fix(nextjs): additional experimental HTTPS options (#23334)
There are three additional flags if user wishes to generate their own
key, cert, ca files rather than the auto-generated ones by Next.js.



## Current Behavior
Cannot pass additional CLI options.

## Expected Behavior

Can  pass additional CLI options for custom files.

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Closes https://github.com/nrwl/nx/discussions/23331
2024-05-17 14:50:47 -04:00
Nicholas Cunningham
e7f60dabcb
feat(nextjs): Add https option for custom server (#22921) 2024-04-19 15:46:03 -06:00
beeman
a9974d3f25
docs(misc): change http:// to https:// (#19534) 2024-01-30 11:33:13 -05:00
Nicholas Cunningham
9d7a724bd3
feat(nextjs): Add support for experimental-https when running dev server (#20836) 2023-12-18 14:18:05 -07:00
Miroslav Jonaš
388611854f
Revert "fix(nextjs): set localhost as hostname default (#17856)" (#17931) 2023-07-04 00:19:18 +02:00
Yannick
88c655f5a9
fix(nextjs): set localhost as hostname default (#17856) 2023-06-30 09:26:36 -06:00
Nicholas Cunningham
fc0ef3570e
docs(nextjs): Update nextjs docs since --root was removed (#17796) 2023-06-26 13:35:53 -04:00
Nicholas Cunningham
bfe8e47d23
fix(nextjs): cleanup old options for server executor (proxyConfig) (#17626) 2023-06-16 12:00:17 -04:00
Nicholas Cunningham
334ed07037
docs(nextjs): Add examples for executors (#17116) 2023-06-05 11:10:37 -06:00
Craigory Coppola
8efb67a549
chore(repo): reenable documentation check in CI (#17256) 2023-05-26 18:33:16 -04:00
Victor Savkin
ac417301e8
fix(react): use pipe output capture 2023-05-26 14:54:44 -04:00
Nicholas Cunningham
8ce9606a5b
feat(nextjs): Add --turbo support (#17069) 2023-05-18 11:17:00 -06:00
Nicholas Cunningham
3d76d95b29
feat(nextjs): Use next.js cli for build and serve targets (#16896) 2023-05-17 11:09:11 -04:00
Miroslav Jonaš
f004e22b7c
fix(repo): replace remaining instances of yarn with pnpm (#16571) 2023-04-27 11:16:42 -04:00
Nicholas Cunningham
d24862d358
fix(nextjs): Add debug ability when verbose is passed to build (#16545) 2023-04-26 11:21:13 -04:00
Jack Hsu
c3c77d525e
feat(nextjs): remove "--server=..." app generator option (#16312) 2023-04-14 13:56:43 -04:00
Jack Hsu
e611a0bab7
feat(nextjs): deprecate proxy config option for server executor (#15855) 2023-03-23 09:14:17 -06:00
Jack Hsu
d20cf91e6c
feat(misc): add x-priority tags to next, react, webpack, rollup, esbuild (#14352) 2023-01-13 11:50:01 -05:00
Jack Hsu
d98d2462aa
fix(react): add deprecated messages to react and next generators (#14310) 2023-01-12 11:11:33 -05:00
Jack Hsu
d3ba6447d0
fix(nextjs): hide lockfile generation behind a flag so it can be toggled on and off (#14204) 2023-01-06 20:26:10 +00:00
Benjamin Cabanes
19fd40ddc7
docs(nxdev): refactor docs sources generation and app consumption (#13834) 2022-12-19 18:59:50 +00:00