Skip to content

Commit 3f4442f

Browse files
committed
chore(nuxt): add extend layer example for automatically imports folder
1 parent 853174c commit 3f4442f

File tree

5 files changed

+28
-1
lines changed

5 files changed

+28
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<script setup lang="ts">
2+
const counter = useCounter()
3+
4+
useTestStore()
5+
useSomeStoreStore()
6+
</script>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { defineNuxtConfig } from 'nuxt/config'
2+
3+
export default defineNuxtConfig({
4+
extends: ['..'],
5+
6+
devtools: { enabled: true },
7+
8+
compatibilityDate: '2024-09-26',
9+
})
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"private": true,
3+
"type": "module",
4+
"name": "pinia-nuxt-playground-extends-layer",
5+
"scripts": {
6+
"dev": "nuxt dev"
7+
}
8+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "./.nuxt/tsconfig.json"
3+
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"extends": "./.nuxt/tsconfig.json"
2+
"extends": "./.nuxt/tsconfig.json",
3+
"exclude": ["./play-extends-layer"]
34
}

0 commit comments

Comments
 (0)