feat: add astro.js
This commit is contained in:
parent
6358e5e7ba
commit
9fc02b366d
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
node_modules/
|
||||
dist/
|
||||
24
Readme.md
24
Readme.md
@ -1 +1,25 @@
|
||||
# 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 |
|
||||
|
||||
12
package.json
12
package.json
@ -2,5 +2,15 @@
|
||||
"name": "astro-deploy",
|
||||
"version": "0.0.0-development",
|
||||
"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
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
1
src/env.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
/// <reference types="astro/client" />
|
||||
9
src/pages/index.astro
Normal file
9
src/pages/index.astro
Normal 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>
|
||||
Loading…
x
Reference in New Issue
Block a user