initialize nuxt project for rank.pompy.dev

This commit is contained in:
Kim, Jimin 2025-03-17 21:43:15 +09:00
parent 0ab70eac57
commit c481fcf0c1
Signed by: pomp
GPG key ID: D3932F82A0667A3B
14 changed files with 5417 additions and 63 deletions

24
apps/rank/.gitignore vendored Normal file
View 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
apps/rank/app.vue Normal file
View file

@ -0,0 +1,3 @@
<template>
<NuxtPage />
</template>

17
apps/rank/nuxt.config.ts Normal file
View file

@ -0,0 +1,17 @@
const title = "pomp's biased & opinionated rankings DB"
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: "2024-11-01",
devServer: { port: 3001 },
devtools: { enabled: true },
app: {
head: {
title, // default fallback title
titleTemplate: `%s | ${title}`,
htmlAttrs: {
lang: "en",
},
},
},
})

17
apps/rank/package.json Normal file
View file

@ -0,0 +1,17 @@
{
"name": "@pompydev/rank",
"private": true,
"type": "module",
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
},
"dependencies": {
"nuxt": "3.16.0",
"vue": "3.5.13",
"vue-router": "4.5.0"
}
}

View file

@ -0,0 +1,10 @@
<script setup lang="ts">
useHead({
title: "Content creators",
})
</script>
<template>
<h1>Content creators ranking</h1>
<NuxtLink href="/">Back</NuxtLink>
</template>

View file

@ -0,0 +1,8 @@
<template>
<h1>
pomp's<br />
biased & opinionated<br />
rankings DB
</h1>
<NuxtLink href="/content-creators">Content Creators</NuxtLink>
</template>

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View file

@ -0,0 +1 @@

View file

@ -0,0 +1,3 @@
{
"extends": "../.nuxt/tsconfig.server.json"
}

4
apps/rank/tsconfig.json Normal file
View file

@ -0,0 +1,4 @@
{
// https://nuxt.com/docs/guide/concepts/typescript
"extends": "./.nuxt/tsconfig.json"
}