feat: Initialize project with configuration files and basic structure
This commit is contained in:
1
.env.example
Normal file
1
.env.example
Normal file
@@ -0,0 +1 @@
|
||||
NUXT_PUBLIC_API_BASE_URL=http://localhost:3000
|
||||
6
.gitignore
vendored
Normal file
6
.gitignore
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
node_modules/
|
||||
.nuxt/
|
||||
.output/
|
||||
.env
|
||||
dist/
|
||||
coverage/
|
||||
6
app.vue
Normal file
6
app.vue
Normal file
@@ -0,0 +1,6 @@
|
||||
<template>
|
||||
<NuxtRouteAnnouncer />
|
||||
<NuxtLayout>
|
||||
<NuxtPage />
|
||||
</NuxtLayout>
|
||||
</template>
|
||||
9
nuxt.config.ts
Normal file
9
nuxt.config.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export default defineNuxtConfig({
|
||||
devtools: { enabled: true },
|
||||
modules: ['@nuxtjs/tailwindcss'],
|
||||
runtimeConfig: {
|
||||
public: {
|
||||
apiBaseUrl: '', // set via NUXT_PUBLIC_API_BASE_URL
|
||||
},
|
||||
},
|
||||
})
|
||||
25
package.json
Normal file
25
package.json
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "nest-vitrine",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "nuxt build",
|
||||
"dev": "nuxt dev",
|
||||
"generate": "nuxt generate",
|
||||
"preview": "nuxt preview",
|
||||
"test": "vitest run",
|
||||
"test:watch": "vitest",
|
||||
"test:update": "vitest --update-snapshots"
|
||||
},
|
||||
"dependencies": {
|
||||
"nuxt": "^3.15.0",
|
||||
"vue": "^3.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nuxt/test-utils": "^3.15.0",
|
||||
"@nuxtjs/tailwindcss": "^6.13.0",
|
||||
"@vitest/coverage-v8": "^3.0.0",
|
||||
"typescript": "^5.7.0",
|
||||
"vitest": "^3.0.0"
|
||||
}
|
||||
}
|
||||
13
pages/index.vue
Normal file
13
pages/index.vue
Normal file
@@ -0,0 +1,13 @@
|
||||
<script setup lang="ts">
|
||||
useSeoMeta({
|
||||
title: 'Home — Headless Hazard',
|
||||
description: 'Welcome to CrowMate Studio and Headless Hazard.',
|
||||
ogImage: '/images/og-default.jpg',
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="min-h-screen flex items-center justify-center">
|
||||
<h1 class="text-4xl font-bold">Welcome</h1>
|
||||
</div>
|
||||
</template>
|
||||
3
tsconfig.json
Normal file
3
tsconfig.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "./.nuxt/tsconfig.json"
|
||||
}
|
||||
7
vitest.config.ts
Normal file
7
vitest.config.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { defineVitestConfig } from '@nuxt/test-utils/config';
|
||||
|
||||
export default defineVitestConfig({
|
||||
test: {
|
||||
environment: 'nuxt',
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user