first commit
This commit is contained in:
+31
@@ -0,0 +1,31 @@
|
||||
# dependencies
|
||||
node_modules/
|
||||
|
||||
# build outputs
|
||||
dist/
|
||||
.astro/
|
||||
|
||||
# logs
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
|
||||
# environment variables
|
||||
.env
|
||||
.env.local
|
||||
.env.*.local
|
||||
|
||||
# macOS / Windows / Linux 系统文件
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
*.swp
|
||||
*~
|
||||
|
||||
# IDE / 编辑器
|
||||
.idea/
|
||||
.vscode/
|
||||
*.iml
|
||||
|
||||
# misc
|
||||
.cache/
|
||||
@@ -0,0 +1,37 @@
|
||||
# Violin CV
|
||||
|
||||
个人简历 / 项目展示页。基于 [Astro](https://astro.build)。
|
||||
|
||||
## 开发
|
||||
|
||||
```bash
|
||||
npm install
|
||||
npm run dev # http://localhost:4321
|
||||
npm run build # 产出 dist/
|
||||
npm run preview # 预览 build 产物
|
||||
```
|
||||
|
||||
## 目录
|
||||
|
||||
```
|
||||
violin-cv/
|
||||
├── src/
|
||||
│ ├── pages/ # 路由文件(每个 .astro / .md 是一个页面)
|
||||
│ │ ├── index.astro → /
|
||||
│ │ ├── about.astro → /about
|
||||
│ │ └── projects/ → /projects
|
||||
│ ├── layouts/ # 共享布局
|
||||
│ │ └── BaseLayout.astro
|
||||
│ └── styles/
|
||||
│ └── global.css
|
||||
├── public/ # 静态资源(不打包)
|
||||
└── astro.config.mjs
|
||||
```
|
||||
|
||||
## ICP
|
||||
|
||||
页面 footer 必须保留 ICP 链接——公网安部强制要求。
|
||||
|
||||
## License
|
||||
|
||||
Private.
|
||||
@@ -0,0 +1,14 @@
|
||||
// @ts-check
|
||||
import { defineConfig } from 'astro/config'
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
site: 'https://cv.violin-work.online',
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
port: 4321
|
||||
},
|
||||
build: {
|
||||
outDir: 'dist'
|
||||
}
|
||||
})
|
||||
Generated
+4531
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"name": "violin-cv",
|
||||
"type": "module",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "astro dev",
|
||||
"start": "astro dev",
|
||||
"build": "astro build",
|
||||
"preview": "astro preview",
|
||||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^5.0.0"
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"extends": "astro/tsconfigs/strict",
|
||||
"include": [".astro/types.d.ts", "**/*"],
|
||||
"exclude": ["dist"]
|
||||
}
|
||||
Reference in New Issue
Block a user