Add Nuxt playground
This commit is contained in:
parent
5040fb1dcd
commit
fd74047e5b
8 changed files with 4805 additions and 34 deletions
|
|
@ -44,6 +44,7 @@
|
|||
"bench": "vitest bench",
|
||||
"version-packages": "node ./scripts/version-packages.mjs",
|
||||
"vite": "pnpm run --filter=vite-playground dev",
|
||||
"nuxt": "pnpm run --filter=nuxt-playground dev",
|
||||
"nextjs": "pnpm run --filter=nextjs-playground dev"
|
||||
},
|
||||
"license": "MIT",
|
||||
|
|
|
|||
24
playgrounds/nuxt/.gitignore
vendored
Normal file
24
playgrounds/nuxt/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# Nuxt dev/build outputs
|
||||
.output
|
||||
.data
|
||||
.nuxt
|
||||
.nitro
|
||||
.cache
|
||||
dist
|
||||
|
||||
# Node dependencies
|
||||
node_modules
|
||||
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
|
||||
# Misc
|
||||
.DS_Store
|
||||
.fleet
|
||||
.idea
|
||||
|
||||
# Local env files
|
||||
.env
|
||||
.env.*
|
||||
!.env.example
|
||||
3
playgrounds/nuxt/app.vue
Normal file
3
playgrounds/nuxt/app.vue
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<template>
|
||||
<div class="underline">Hello world!</div>
|
||||
</template>
|
||||
1
playgrounds/nuxt/assets/css/main.css
Normal file
1
playgrounds/nuxt/assets/css/main.css
Normal file
|
|
@ -0,0 +1 @@
|
|||
@import 'tailwindcss'
|
||||
12
playgrounds/nuxt/nuxt.config.ts
Normal file
12
playgrounds/nuxt/nuxt.config.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import tailwindcss from '@tailwindcss/vite'
|
||||
|
||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||
export default defineNuxtConfig({
|
||||
vite: {
|
||||
plugins: [tailwindcss()],
|
||||
},
|
||||
|
||||
css: ['~/assets/css/main.css'],
|
||||
devtools: { enabled: true },
|
||||
compatibilityDate: '2024-08-30',
|
||||
})
|
||||
18
playgrounds/nuxt/package.json
Normal file
18
playgrounds/nuxt/package.json
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"name": "nuxt-playground",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"build": "nuxt build",
|
||||
"dev": "nuxt dev",
|
||||
"generate": "nuxt generate",
|
||||
"preview": "nuxt preview",
|
||||
"postinstall": "nuxt prepare"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tailwindcss/vite": "workspace:^",
|
||||
"nuxt": "^3.13.0",
|
||||
"tailwindcss": "workspace:^",
|
||||
"vue": "latest"
|
||||
}
|
||||
}
|
||||
4
playgrounds/nuxt/tsconfig.json
Normal file
4
playgrounds/nuxt/tsconfig.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
// https://nuxt.com/docs/guide/concepts/typescript
|
||||
"extends": "./.nuxt/tsconfig.json"
|
||||
}
|
||||
4776
pnpm-lock.yaml
generated
4776
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue