Skip to content

Commit 3bcebcd

Browse files
authored
feat(website): init (#2)
2 parents c72eddd + 14b3453 commit 3bcebcd

11 files changed

Lines changed: 4314 additions & 578 deletions

File tree

apps/.gitkeep

Whitespace-only changes.

apps/website/.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Nuxt dev/build outputs
2+
.output
3+
.data
4+
.nuxt
5+
.nitro
6+
.cache
7+
dist
8+
9+
# Node dependencies
10+
node_modules
11+
12+
# Logs
13+
logs
14+
*.log
15+
16+
# Misc
17+
.DS_Store
18+
.fleet
19+
.idea
20+
21+
# Local env files
22+
.env
23+
.env.*
24+
!.env.example

apps/website/README.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Nuxt 3 Minimal Starter
2+
3+
Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
4+
5+
## Setup
6+
7+
Make sure to install the dependencies:
8+
9+
```bash
10+
# npm
11+
npm install
12+
13+
# pnpm
14+
pnpm install
15+
16+
# yarn
17+
yarn install
18+
19+
# bun
20+
bun install
21+
```
22+
23+
## Development Server
24+
25+
Start the development server on `http://localhost:3000`:
26+
27+
```bash
28+
# npm
29+
npm run dev
30+
31+
# pnpm
32+
pnpm run dev
33+
34+
# yarn
35+
yarn dev
36+
37+
# bun
38+
bun run dev
39+
```
40+
41+
## Production
42+
43+
Build the application for production:
44+
45+
```bash
46+
# npm
47+
npm run build
48+
49+
# pnpm
50+
pnpm run build
51+
52+
# yarn
53+
yarn build
54+
55+
# bun
56+
bun run build
57+
```
58+
59+
Locally preview production build:
60+
61+
```bash
62+
# npm
63+
npm run preview
64+
65+
# pnpm
66+
pnpm run preview
67+
68+
# yarn
69+
yarn preview
70+
71+
# bun
72+
bun run preview
73+
```
74+
75+
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.

apps/website/app.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<template>
2+
<div>
3+
<NuxtWelcome />
4+
</div>
5+
</template>

apps/website/nuxt.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// https://nuxt.com/docs/api/configuration/nuxt-config
2+
export default defineNuxtConfig({
3+
devtools: { enabled: true },
4+
})

apps/website/package.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "@alanlu-dev/website",
3+
"type": "module",
4+
"version": "0.0.0",
5+
"private": true,
6+
"scripts": {
7+
"build": "nuxt build",
8+
"dev": "nuxt dev",
9+
"generate": "nuxt generate",
10+
"preview": "nuxt preview",
11+
"postinstall": "nuxt prepare"
12+
},
13+
"dependencies": {
14+
"nuxt": "^3.11.1",
15+
"vue": "^3.4.21",
16+
"vue-router": "^4.3.0"
17+
}
18+
}

apps/website/public/favicon.ico

4.19 KB
Binary file not shown.

apps/website/server/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "../.nuxt/tsconfig.server.json"
3+
}

apps/website/tsconfig.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
// https://nuxt.com/docs/guide/concepts/typescript
3+
"extends": "./.nuxt/tsconfig.json"
4+
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
"coverage": "turbo run coverage",
3939
"lint:cspell": "pnpm cspell . --unique --no-progress --no-must-find-files",
4040
"lint:cspell:only-changed": "git diff --name-only | npx cspell --file-list stdin",
41-
"nuxt-demo": "pnpm --filter=@alanlu-dev/nuxt-demo",
42-
"nuxt-demo:dev": "turbo run dev --filter=@alanlu-dev/nuxt-demo --filter=./packages/**",
41+
"web": "pnpm --filter=@alanlu-dev/website",
42+
"web:dev": "turbo run dev --filter=@alanlu-dev/website --filter=./packages/**",
4343
"taze": "npx taze",
4444
"change": "changeset",
4545
"change:commit": "pnpm auto-changeset",

0 commit comments

Comments
 (0)