Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pnpm i
# Generate type stubs
pnpm dev:prepare

# Go the the playground directory
# Go to the playground directory
cd playground

# And run any commands
Expand Down
10 changes: 10 additions & 0 deletions src/utils/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,15 @@ const page: Template = ({ name, nuxtOptions }) => ({
`,
})

const layer: Template = ({ name, nuxtOptions }) => {
return {
path: resolve(nuxtOptions.srcDir, `layers/${name}/nuxt.config.ts`),
contents: `
export default defineNuxtConfig({})
`,
}
}

export const templates = {
api,
plugin,
Expand All @@ -120,6 +129,7 @@ export const templates = {
middleware,
layout,
page,
layer,
} as Record<string, Template>

// -- internal utils --
Expand Down
Loading