Skip to content

Commit

Permalink
chore: remove nuxt playground package
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr.Mao committed Dec 15, 2023
1 parent 45cc8d9 commit cff3159
Show file tree
Hide file tree
Showing 10 changed files with 44 additions and 6,537 deletions.
4 changes: 2 additions & 2 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/ban-ts-comment */
import { fileURLToPath } from 'url'
import type { DefaultTheme } from 'vitepress'
import { defineConfig } from 'vitepress'
Expand All @@ -15,6 +14,7 @@ const themeConfig: DefaultTheme.Config = {
items: [
{ text: 'Quick Start', link: '/guide/quick-start' },
{ text: 'Usage', link: '/guide/usage' },
{ text: 'Nuxtjs', link: '/guide/nuxtjs' },
{ text: 'API Reference', link: '/guide/api-reference/renderer' },
{ text: 'Elements', link: '/guide/elements/animated-sprite' },
{ text: 'Components', link: '/guide/components/application' },
Expand Down Expand Up @@ -45,6 +45,7 @@ const themeConfig: DefaultTheme.Config = {
{ text: 'Introduction', link: '/guide/introduction' },
{ text: 'Quick Start', link: '/guide/quick-start' },
{ text: 'Usage', link: '/guide/usage' },
{ text: 'Nuxtjs', link: '/guide/nuxtjs' },
],
},
{
Expand Down Expand Up @@ -244,7 +245,6 @@ export default defineConfig({
config: md => md.use(mdPlugin),
},
vite: {
// @ts-expect-error
plugins: [unocss()],
ssr: { noExternal: ['naive-ui', 'gsap'] },
resolve: {
Expand Down
42 changes: 42 additions & 0 deletions docs/guide/nuxtjs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Using in Nuxtjs

Repository is [here](https://github.com/hairyf/vue3-pixi/tree/main/packages/vue3-pixi-nuxt)

如果你要在 Nuxtjs 中使用,安装以下模块:


## Install

::: code-group

```bash [npm]
npm install vue3-pixi vue3-pixi-nuxt
```

```bash [yarn]
yarn add vue3-pixi vue3-pixi-nuxt
```

```bash [pnpm]
pnpm add vue3-pixi vue3-pixi-nuxt
```

:::

## Features

- Auto-import components and composable from the vue3-pixi
- `<Application>` client only, you don't need to add `<ClientOnly />`
- Automatically configures `isCustomElement` for vue compiler

## Usage

Add `vue3-pixi-nuxt` to the `modules` section of `nuxt.config.ts`

```ts
export default defineNuxtConfig({
modules: ['vue3-pixi-nuxt'],
})
```

now, you can use `vue3-pixi` in your Nuxt app
24 changes: 0 additions & 24 deletions packages/vue3-pixi-nuxt/playground/app.vue

This file was deleted.

92 changes: 0 additions & 92 deletions packages/vue3-pixi-nuxt/playground/components/GraphicsDynamic.vue

This file was deleted.

27 changes: 0 additions & 27 deletions packages/vue3-pixi-nuxt/playground/components/TransitionBasic.vue

This file was deleted.

7 changes: 0 additions & 7 deletions packages/vue3-pixi-nuxt/playground/nuxt.config.ts

This file was deleted.

22 changes: 0 additions & 22 deletions packages/vue3-pixi-nuxt/playground/package.json

This file was deleted.

Loading

0 comments on commit cff3159

Please sign in to comment.