chore: add playground

This commit is contained in:
Benjamin Canac
2023-07-19 13:21:39 +02:00
parent 914d156103
commit 403899f11a
4 changed files with 18 additions and 0 deletions

View File

@@ -21,6 +21,7 @@
"build": "nuxt-module-build",
"prepack": "pnpm build",
"dev": "nuxi dev docs",
"play": "nuxi dev playground",
"build:docs": "nuxi generate docs",
"lint": "eslint .",
"lint:fix": "eslint . --fix",

7
playground/app.vue Normal file
View File

@@ -0,0 +1,7 @@
<template>
<UContainer class="min-h-screen flex items-center">
<UCard class="flex-1 text-center">
Welcome to the playground!
</UCard>
</UContainer>
</template>

View File

@@ -0,0 +1,7 @@
import module from '../src/module'
export default defineNuxtConfig({
modules: [
module
]
})

3
playground/tsconfig.json Normal file
View File

@@ -0,0 +1,3 @@
{
"extends": "./.nuxt/tsconfig.json"
}