Skip to content

Commit

Permalink
chore(nuxt): add extend layer example for automatically imports folder
Browse files Browse the repository at this point in the history
  • Loading branch information
wzc520pyfm committed Nov 9, 2024
1 parent 853174c commit 3f4442f
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 1 deletion.
6 changes: 6 additions & 0 deletions packages/nuxt/playground/play-extends-layer/app.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<script setup lang="ts">
const counter = useCounter()
useTestStore()
useSomeStoreStore()
</script>
9 changes: 9 additions & 0 deletions packages/nuxt/playground/play-extends-layer/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineNuxtConfig } from 'nuxt/config'

export default defineNuxtConfig({
extends: ['..'],

devtools: { enabled: true },

compatibilityDate: '2024-09-26',
})
8 changes: 8 additions & 0 deletions packages/nuxt/playground/play-extends-layer/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"private": true,
"type": "module",
"name": "pinia-nuxt-playground-extends-layer",
"scripts": {
"dev": "nuxt dev"
}
}
3 changes: 3 additions & 0 deletions packages/nuxt/playground/play-extends-layer/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "./.nuxt/tsconfig.json"
}
3 changes: 2 additions & 1 deletion packages/nuxt/playground/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"extends": "./.nuxt/tsconfig.json"
"extends": "./.nuxt/tsconfig.json",
"exclude": ["./play-extends-layer"]
}

0 comments on commit 3f4442f

Please sign in to comment.