docs(core): update svelte workspace setup (#18939)

Co-authored-by: Isaac Mann <isaacplmann@users.noreply.github.com>
This commit is contained in:
Josh Wiegand 2023-09-06 17:06:59 -04:00 committed by GitHub
parent 8308e306d4
commit 712bcb2256
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,10 +24,30 @@ Because we are not using a Nx plugin for Svelte, there are a few items we'll hav
**Create a new Nx workspace**
{% tabs %}
{%tab label="npm"%}
```shell
create-nx-workspace@latest workspace --preset=react-monorepo --style=css --bundler=vite --nx-cloud=true --appName=acme
npx create-nx-workspace@latest workspace --preset=react-monorepo --style=css --bundler=vite --nx-cloud=true --appName=acme
```
{% /tab %}
{%tab label="yarn"%}
```shell
npx create-nx-workspace@latest workspace --preset=react-monorepo --style=css --bundler=vite --nx-cloud=true --appName=acme --pm yarn
```
{% /tab %}
{%tab label="pnpm"%}
```shell
npx create-nx-workspace@latest workspace --preset=react-monorepo --style=css --bundler=vite --nx-cloud=true --appName=acme --pm pnpm
```
{% /tab %}
{% /tabs %}
**Add @nx/vite, svelte, and other dependencies to your workspace**
{% tabs %}
@ -45,7 +65,6 @@ yarn add --dev @nx/vite @nx/js vitest vite svelte svelte-check @sveltejs/vite-pl
```
{% /tab %}
{%tab label="pnpm"%}
```shell