initialize nuxt project for rank.pompy.dev
This commit is contained in:
parent
0ab70eac57
commit
c481fcf0c1
14 changed files with 5417 additions and 63 deletions
1
.vscode/extensions.json
vendored
1
.vscode/extensions.json
vendored
|
@ -8,6 +8,7 @@
|
||||||
"bradlc.vscode-tailwindcss",
|
"bradlc.vscode-tailwindcss",
|
||||||
"unifiedjs.vscode-mdx",
|
"unifiedjs.vscode-mdx",
|
||||||
"svelte.svelte-vscode",
|
"svelte.svelte-vscode",
|
||||||
|
"Vue.volar",
|
||||||
"redhat.vscode-xml",
|
"redhat.vscode-xml",
|
||||||
"github.vscode-github-actions",
|
"github.vscode-github-actions",
|
||||||
"editorconfig.editorconfig",
|
"editorconfig.editorconfig",
|
||||||
|
|
4
.vscode/settings.json
vendored
4
.vscode/settings.json
vendored
|
@ -23,6 +23,7 @@
|
||||||
"nojs",
|
"nojs",
|
||||||
"noopener",
|
"noopener",
|
||||||
"noto",
|
"noto",
|
||||||
|
"nuxt",
|
||||||
"pkgs",
|
"pkgs",
|
||||||
"pnpm",
|
"pnpm",
|
||||||
"pompy",
|
"pompy",
|
||||||
|
@ -73,6 +74,9 @@
|
||||||
"[typescriptreact]": {
|
"[typescriptreact]": {
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
},
|
},
|
||||||
|
"[vue]": {
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
|
},
|
||||||
|
|
||||||
// Tailwind
|
// Tailwind
|
||||||
"css.lint.unknownAtRules": "ignore",
|
"css.lint.unknownAtRules": "ignore",
|
||||||
|
|
|
@ -25,6 +25,16 @@ must build the dependencies first
|
||||||
pnpm build
|
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
|
## Testing
|
||||||
|
|
||||||
1. Run E2E Tests
|
1. Run E2E Tests
|
||||||
|
|
24
apps/rank/.gitignore
vendored
Normal file
24
apps/rank/.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
apps/rank/app.vue
Normal file
3
apps/rank/app.vue
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<template>
|
||||||
|
<NuxtPage />
|
||||||
|
</template>
|
17
apps/rank/nuxt.config.ts
Normal file
17
apps/rank/nuxt.config.ts
Normal 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
17
apps/rank/package.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
10
apps/rank/pages/content-creators.vue
Normal file
10
apps/rank/pages/content-creators.vue
Normal 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>
|
8
apps/rank/pages/index.vue
Normal file
8
apps/rank/pages/index.vue
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<template>
|
||||||
|
<h1>
|
||||||
|
pomp's<br />
|
||||||
|
biased & opinionated<br />
|
||||||
|
rankings DB
|
||||||
|
</h1>
|
||||||
|
<NuxtLink href="/content-creators">Content Creators</NuxtLink>
|
||||||
|
</template>
|
BIN
apps/rank/public/favicon.ico
Normal file
BIN
apps/rank/public/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.2 KiB |
1
apps/rank/public/robots.txt
Normal file
1
apps/rank/public/robots.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
|
3
apps/rank/server/tsconfig.json
Normal file
3
apps/rank/server/tsconfig.json
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"extends": "../.nuxt/tsconfig.server.json"
|
||||||
|
}
|
4
apps/rank/tsconfig.json
Normal file
4
apps/rank/tsconfig.json
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
// https://nuxt.com/docs/guide/concepts/typescript
|
||||||
|
"extends": "./.nuxt/tsconfig.json"
|
||||||
|
}
|
5378
pnpm-lock.yaml
generated
5378
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