nx/packages/nuxt/docs/application-examples.md
2023-10-10 14:21:36 +00:00

35 lines
855 B
Markdown

---
title: Nuxt application generator examples
description: This page contains examples for the @nx/nuxt:app generator.
---
## Examples
{% tabs %}
{% tab label="Create app in a directory" %}
{% callout type="note" title="Directory Flag Behavior Changes" %}
The command below uses the `as-provided` directory flag behavior, which is the default in Nx 16.8.0. If you're on an earlier version of Nx or using the `derived` option, use `--directory=nested`. See the [workspace layout documentation](/reference/nx-json#workspace-layout) for more details.
{% /callout %}
```shell
nx g app myapp --directory=apps/nested/myapp
```
{% /tab %}
{% tab label="Use a custom Express server" %}
```shell
nx g app myapp --custom-server
```
{% /tab %}
{% tab label="Use plain JavaScript (not TypeScript)" %}
```shell
nx g app myapp --js
```
{% /tab %}
{% /tabs %}