-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(vue): set @nx/vue as public (#19582)
- Loading branch information
Showing
4 changed files
with
56 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
## Examples | ||
|
||
{% tabs %} | ||
{% tab label="Simple Application" %} | ||
|
||
Create an application named `my-app`: | ||
|
||
```shell | ||
nx g @nx/vue:application my-app | ||
``` | ||
|
||
{% /tab %} | ||
|
||
{% tab label="Application using Vite as bundler" %} | ||
|
||
Create an application named `my-app`: | ||
|
||
```shell | ||
nx g @nx/vue:app my-app | ||
``` | ||
|
||
{% /tab %} | ||
|
||
{% tab label="Specify directory and style extension" %} | ||
|
||
Create an application named `my-app` in the `my-dir` directory and use `scss` for styles: | ||
|
||
{% 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=my-dir`. See the [workspace layout documentation](/reference/nx-json#workspace-layout) for more details. | ||
{% /callout %} | ||
|
||
```shell | ||
nx g @nx/vue:app my-app --directory=apps/my-dir/my-app --style=scss | ||
``` | ||
|
||
{% /tab %} | ||
|
||
{% tab label="Add tags" %} | ||
|
||
Add tags to the application (used for linting). | ||
|
||
```shell | ||
nx g @nx/vue:app my-app --tags=scope:admin,type:ui | ||
``` | ||
|
||
{% /tab %} | ||
{% /tabs %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters