From 721e4dfc614f861524fcd0d677c2d312041fe8f0 Mon Sep 17 00:00:00 2001 From: Nicholas Cunningham Date: Thu, 10 Aug 2023 12:41:40 -0600 Subject: [PATCH] docs(core): Update vue recipe to include a library (#18575) --- docs/shared/recipes/add-stack/add-vue.md | 90 +++++++++++++++++++++--- 1 file changed, 82 insertions(+), 8 deletions(-) diff --git a/docs/shared/recipes/add-stack/add-vue.md b/docs/shared/recipes/add-stack/add-vue.md index 20fc62513bfbc..c340cf5ce1c68 100644 --- a/docs/shared/recipes/add-stack/add-vue.md +++ b/docs/shared/recipes/add-stack/add-vue.md @@ -34,21 +34,21 @@ create-nx-workspace@latest acme --preset=ts-standalone --nx-cloud=true {%tab label="npm"%} ```shell -npm install --save-dev @nx/vite vue vue-tsc vitest vite-tsconfig-paths vite-plugin-dts vite @vitejs/plugin-vue @vitejs/plugin-vue-jsx +npm install --save-dev @nx/vite @nx/js vue vue-tsc vitest vite-tsconfig-paths vite-plugin-dts vite @vitejs/plugin-vue @vitejs/plugin-vue-jsx ``` {% /tab %} {%tab label="yarn"%} ```shell -yarn add --dev @nx/vite vue vue-tsc vitest vite-tsconfig-paths vite-plugin-dts vite @vitejs/plugin-vue @vitejs/plugin-vue-jsx +yarn add --dev @nx/vite @nx/js vue vue-tsc vitest vite-tsconfig-paths vite-plugin-dts vite @vitejs/plugin-vue @vitejs/plugin-vue-jsx ``` {% /tab %} {%tab label="pnpm"%} ```shell -pnpm add --dev @nx/vite vue vue-tsc vitest vite-tsconfig-paths vite-plugin-dts vite @vitejs/plugin-vue @vitejs/plugin-vue-jsx +pnpm add --dev @nx/vite @nx/js vue vue-tsc vitest vite-tsconfig-paths vite-plugin-dts vite @vitejs/plugin-vue @vitejs/plugin-vue-jsx ``` {% /tab %} @@ -90,7 +90,7 @@ createApp(App).mount('#app'); Create a new file `src/App.vue` with the following content: -```vue +```ts + +``` + +Test it out + +**Build** + +```shell +nx build acme +``` + +**Serve** + +```shell +nx serve acme +``` + ## More Documentation A larger example including libraries, tests, and more is available at [Nx Vue Example](https://github.com/nrwl/nx-recipes/tree/main/vue) on Github.