Initialize Vite project

This commit is contained in:
sss
2025-08-13 16:06:17 -07:00
parent 3567a779db
commit 06af334434
6 changed files with 78 additions and 1 deletions

26
.gitignore vendored Normal file
View File

@@ -0,0 +1,26 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
package-lock.json

View File

@@ -1 +1,9 @@
# sune
# sune
Simple Vite-powered Hello World site.
## Scripts
- `npm install` to install dependencies.
- `npm run dev` to start the development server.
- `npm run build` to build the site into the `docs/` directory for GitHub Pages.

11
docs/index.html Normal file
View File

@@ -0,0 +1,11 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Hello World</title>
</head>
<body>
<h1>Hello world</h1>
</body>
</html>

11
index.html Normal file
View File

@@ -0,0 +1,11 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Hello World</title>
</head>
<body>
<h1>Hello world</h1>
</body>
</html>

14
package.json Normal file
View File

@@ -0,0 +1,14 @@
{
"name": "sune",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"devDependencies": {
"vite": "^7.1.2"
}
}

7
vite.config.js Normal file
View File

@@ -0,0 +1,7 @@
import { defineConfig } from 'vite'
export default defineConfig({
build: {
outDir: 'docs'
}
})