Skip to content

Commit a3c6e8b

Browse files
committed
Init from template
0 parents  commit a3c6e8b

10 files changed

+3893
-0
lines changed

.gitignore

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# build output
2+
dist/
3+
.output/
4+
5+
# dependencies
6+
node_modules/
7+
8+
# logs
9+
npm-debug.log*
10+
yarn-debug.log*
11+
yarn-error.log*
12+
pnpm-debug.log*
13+
14+
15+
# environment variables
16+
.env
17+
.env.production
18+
19+
# macOS-specific files
20+
.DS_Store

.npmrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Expose Astro dependencies for `pnpm` users
2+
shamefully-hoist=true

README.md

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Welcome to [Astro](https://astro.build)
2+
3+
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/astro/tree/latest/examples/starter)
4+
5+
> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
6+
7+
## 🚀 Project Structure
8+
9+
Inside of your Astro project, you'll see the following folders and files:
10+
11+
```
12+
/
13+
├── public/
14+
│ └── favicon.ico
15+
├── src/
16+
│ ├── components/
17+
│ │ └── Layout.astro
18+
│ └── pages/
19+
│ └── index.astro
20+
└── package.json
21+
```
22+
23+
Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
24+
25+
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components or layouts.
26+
27+
Any static assets, like images, can be placed in the `public/` directory.
28+
29+
## 🧞 Commands
30+
31+
All commands are run from the root of the project, from a terminal:
32+
33+
| Command | Action |
34+
| :---------------- | :------------------------------------------- |
35+
| `npm install` | Installs dependencies |
36+
| `npm run dev` | Starts local dev server at `localhost:3000` |
37+
| `npm run build` | Build your production site to `./dist/` |
38+
| `npm run preview` | Preview your build locally, before deploying |
39+
40+
## 👀 Want to learn more?
41+
42+
Feel free to check [our documentation](https://github.com/withastro/astro) or jump into our [Discord server](https://astro.build/chat).

astro.config.mjs

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { defineConfig } from 'astro/config';
2+
3+
import solid from "@astrojs/solid-js";
4+
import sitemap from "@astrojs/sitemap";
5+
6+
// https://astro.build/config
7+
export default defineConfig({
8+
integrations: [solid(), sitemap()]
9+
});

package.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "@example/basics",
3+
"version": "0.0.1",
4+
"private": true,
5+
"scripts": {
6+
"dev": "astro dev",
7+
"start": "astro dev",
8+
"build": "astro build",
9+
"preview": "astro preview"
10+
},
11+
"devDependencies": {
12+
"@astrojs/sitemap": "^0.1.0",
13+
"@astrojs/solid-js": "^0.1.2",
14+
"astro": "^1.0.0-beta.20",
15+
"solid-js": "^1.3.6"
16+
}
17+
}

0 commit comments

Comments
 (0)