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

View file

@ -8,6 +8,7 @@
"bradlc.vscode-tailwindcss",
"unifiedjs.vscode-mdx",
"svelte.svelte-vscode",
"Vue.volar",
"redhat.vscode-xml",
"github.vscode-github-actions",
"editorconfig.editorconfig",

View file

@ -23,6 +23,7 @@
"nojs",
"noopener",
"noto",
"nuxt",
"pkgs",
"pnpm",
"pompy",
@ -73,6 +74,9 @@
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
// Tailwind
"css.lint.unknownAtRules": "ignore",

View file

@ -25,6 +25,16 @@ must build the dependencies first
pnpm build
```
## Developing
- [`apps/www`](./apps/www) - http://localhost:5173
- [`apps/blog`](./apps/blog) - http://localhost:3000
- [`apps/rank`](./apps/rank) - http://localhost:3001
```
pnpm dev
```
## Testing
1. Run E2E Tests

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"
}

5378
pnpm-lock.yaml generated

File diff suppressed because it is too large Load diff