Skip to content

Commit edc432c

Browse files
committed
update playground
1 parent 60c844b commit edc432c

File tree

4 files changed

+13
-18
lines changed

4 files changed

+13
-18
lines changed

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@
4444
"release": "bumpp --commit --push --tag && npm publish",
4545
"prepare": "nr build && nuxi prepare playground"
4646
},
47-
"peerDependencies": {
48-
"http-proxy-middleware": ">=3.0.0"
49-
},
5047
"dependencies": {
5148
"@nuxt/kit": "3.0.0-rc.4",
5249
"dedent": "^0.7.0",

playground/app.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
22
<div>
3-
Hello world
3+
<NuxtPage />
44
</div>
55
</template>

playground/pages/index.vue

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<script setup lang="ts">
2+
const { data } = useFetch<{ id: number; title: string }[]>('http://localhost:3000/api/todos')
3+
</script>
4+
5+
<template>
6+
<ul>
7+
<li v-for="t in data" :key="t.id">
8+
{{ t.title }}
9+
</li>
10+
</ul>
11+
</template>

tsconfig.json

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
11
{
2-
"compilerOptions": {
3-
"target": "ESNext",
4-
"module": "ESNext",
5-
"moduleResolution": "node",
6-
"esModuleInterop": true,
7-
"strict": true,
8-
"resolveJsonModule": true,
9-
"allowSyntheticDefaultImports": true,
10-
"strictNullChecks": true,
11-
"skipLibCheck": true,
12-
"skipDefaultLibCheck": true,
13-
"allowJs": true,
14-
"noEmit": true
15-
}
2+
"extends": "./playground/.nuxt/tsconfig.json"
163
}

0 commit comments

Comments
 (0)