feat: add astro.js

This commit is contained in:
Jewgeni Lewash 2024-02-15 23:26:17 +01:00
parent 6358e5e7ba
commit 9fc02b366d
6 changed files with 3428 additions and 1 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
node_modules/
dist/

View File

@ -1 +1,25 @@
# Astro Deploy Starter # Astro Deploy Starter
## How to use this template
```sh
npm i -g pnpm
git clone https://github.com/deployn/astro-deploy new-astro-project
cd new-astro-project
pnpm install
pnpm build
pnpm preview
```
## 🧞 Commands
All commands are run from the root of the project, from a terminal:
| Command | Action |
| :------------------------- | :----------------------------------------------- |
| `pnpm install` | Installs dependencies |
| `pnpm run dev` | Starts local dev server at `localhost:4321` |
| `pnpm run build` | Build your production site to `./dist/` |
| `pnpm run preview` | Preview your build locally, before deploying |
| `pnpm run astro ...` | Run CLI commands like `astro add`, `astro check` |
| `pnpm run astro -- --help` | Get help using the Astro CLI |

View File

@ -2,5 +2,15 @@
"name": "astro-deploy", "name": "astro-deploy",
"version": "0.0.0-development", "version": "0.0.0-development",
"description": "A custom Astro.js template", "description": "A custom Astro.js template",
"private": true "private": true,
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"astro": "^4.4.0"
}
} }

3381
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

1
src/env.d.ts vendored Normal file
View File

@ -0,0 +1 @@
/// <reference types="astro/client" />

9
src/pages/index.astro Normal file
View File

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