From 06af33443473c9390d562b6c34018549e86e9657 Mon Sep 17 00:00:00 2001 From: sss Date: Wed, 13 Aug 2025 16:06:17 -0700 Subject: [PATCH] Initialize Vite project --- .gitignore | 26 ++++++++++++++++++++++++++ README.md | 10 +++++++++- docs/index.html | 11 +++++++++++ index.html | 11 +++++++++++ package.json | 14 ++++++++++++++ vite.config.js | 7 +++++++ 6 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 docs/index.html create mode 100644 index.html create mode 100644 package.json create mode 100644 vite.config.js diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b398d22 --- /dev/null +++ b/.gitignore @@ -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 diff --git a/README.md b/README.md index cf7ee05..74d2c32 100644 --- a/README.md +++ b/README.md @@ -1 +1,9 @@ -# sune \ No newline at end of file +# 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. diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..85b991c --- /dev/null +++ b/docs/index.html @@ -0,0 +1,11 @@ + + + + + + Hello World + + +

Hello world

+ + diff --git a/index.html b/index.html new file mode 100644 index 0000000..85b991c --- /dev/null +++ b/index.html @@ -0,0 +1,11 @@ + + + + + + Hello World + + +

Hello world

+ + diff --git a/package.json b/package.json new file mode 100644 index 0000000..328d67c --- /dev/null +++ b/package.json @@ -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" + } +} diff --git a/vite.config.js b/vite.config.js new file mode 100644 index 0000000..9e27cca --- /dev/null +++ b/vite.config.js @@ -0,0 +1,7 @@ +import { defineConfig } from 'vite' + +export default defineConfig({ + build: { + outDir: 'docs' + } +})