Skip to content

Commit c96ddd8

Browse files
committed
snowpack
1 parent a7d9483 commit c96ddd8

16 files changed

+5827
-0
lines changed

.gitignore

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

103122
# TernJS port file
104123
.tern-port
124+

.npmrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
## force pnpm to hoist
2+
shamefully-hoist = true

README.md

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

astro.config.mjs

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
export default {
2+
// projectRoot: '.', // Where to resolve all URLs relative to. Useful if you have a monorepo project.
3+
// pages: './src/pages', // Path to Astro components, pages, and data
4+
// dist: './dist', // When running `astro build`, path to final static output
5+
// public: './public', // A folder of static files Astro will copy to the root. Useful for favicons, images, and other files that don’t need processing.
6+
buildOptions: {
7+
// site: 'http://example.com', // Your public domain, e.g.: https://my-site.dev/. Used to generate sitemaps and canonical URLs.
8+
sitemap: true, // Generate sitemap (set to "false" to disable)
9+
},
10+
devOptions: {
11+
// hostname: 'localhost', // The hostname to run the dev server on.
12+
// port: 3000, // The port to run the dev server on.
13+
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
14+
},
15+
renderers: [
16+
"@astrojs/renderer-solid"
17+
],
18+
};

package.json

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "@example/starter",
3+
"version": "0.0.1",
4+
"private": true,
5+
"scripts": {
6+
"start": "astro dev",
7+
"build": "astro build"
8+
},
9+
"dependencies": {
10+
"@codemirror/autocomplete": "^0.18.8",
11+
"@codemirror/basic-setup": "^0.18.2",
12+
"@codemirror/closebrackets": "^0.18.0",
13+
"@codemirror/commands": "^0.18.3",
14+
"@codemirror/comment": "^0.18.1",
15+
"@codemirror/fold": "^0.18.1",
16+
"@codemirror/highlight": "^0.18.4",
17+
"@codemirror/history": "^0.18.1",
18+
"@codemirror/lang-javascript": "^0.18.0",
19+
"@codemirror/lint": "^0.18.4",
20+
"@codemirror/rectangular-selection": "^0.18.1",
21+
"@codemirror/search": "^0.18.4",
22+
"@codemirror/view": "^0.18.19",
23+
"@typescript/vfs": "^1.3.4",
24+
"typescript": "^4.4.0-beta"
25+
},
26+
"devDependencies": {
27+
"@astrojs/renderer-solid": "^0.1.0",
28+
"astro": "^0.18.6"
29+
}
30+
}

0 commit comments

Comments
 (0)