Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stolinski committed Oct 15, 2021
1 parent f79a9a7 commit 1aa6edc
Show file tree
Hide file tree
Showing 79 changed files with 54,804 additions and 4,137 deletions.
591 changes: 0 additions & 591 deletions #2AddingSvelte/package-lock.json

This file was deleted.

591 changes: 0 additions & 591 deletions #3ReactiveDataWithMeteor/package-lock.json

This file was deleted.

591 changes: 0 additions & 591 deletions #4RealTimeFormData/package-lock.json

This file was deleted.

591 changes: 0 additions & 591 deletions #5UpdateAndDelete/package-lock.json

This file was deleted.

591 changes: 0 additions & 591 deletions #6UserAccounts/package-lock.json

This file was deleted.

591 changes: 0 additions & 591 deletions #7ReactiveUsers/package-lock.json

This file was deleted.

Binary file added .DS_Store
Binary file not shown.
18 changes: 18 additions & 0 deletions astro-for-everyone-code/4AstroProjectStructure/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# build output
dist

# dependencies
node_modules/
.snowpack/

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# environment variables
.env
.env.production

# macOS-specific files
.DS_Store
2 changes: 2 additions & 0 deletions astro-for-everyone-code/4AstroProjectStructure/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
## force pnpm to hoist
shamefully-hoist = true
6 changes: 6 additions & 0 deletions astro-for-everyone-code/4AstroProjectStructure/.stackblitzrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"startCommand": "npm start",
"env": {
"ENABLE_CJS_IMPORTS": true
}
}
53 changes: 53 additions & 0 deletions astro-for-everyone-code/4AstroProjectStructure/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Astro Starter Kit: Blog

```
npm init astro -- --template blog
```

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/snowpackjs/astro/tree/latest/examples/blog)

> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
Features:

- ✅ SEO-friendly setup with canonical URLs and OpenGraph data
- ✅ Full Markdown support
- ✅ RSS 2.0 generation
- ✅ Sitemap.xml generation

## 🚀 Project Structure

Inside of your Astro project, you'll see the following folders and files:

```
/
├── public/
│ ├── robots.txt
│ └── favicon.ico
├── src/
│ ├── components/
│ │ └── Tour.astro
│ └── pages/
│ └── index.astro
└── package.json
```

Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.

There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.

Any static assets, like images, can be placed in the `public/` directory.

## 🧞 Commands

All commands are run from the root of the project, from a terminal:

| Command | Action |
|:----------------|:--------------------------------------------|
| `npm install` | Installs dependencies |
| `npm run dev` | Starts local dev server at `localhost:3000` |
| `npm run build` | Build your production site to `./dist/` |

## 👀 Want to learn more?

Feel free to check [our documentation](https://github.com/snowpackjs/astro) or jump into our [Discord server](https://astro.build/chat).
13 changes: 13 additions & 0 deletions astro-for-everyone-code/4AstroProjectStructure/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Full Astro Configuration API Documentation:
// https://docs.astro.build/reference/configuration-reference

// @type-check enabled!
// VSCode and other TypeScript-enabled text editors will provide auto-completion,
// helpful tooltips, and warnings if your exported object is invalid.
// You can disable this by removing "@ts-check" and `@type` comments below.

// @ts-check
export default /** @type {import('astro').AstroUserConfig} */ ({
// Enable the Preact renderer to support Preact JSX components.
renderers: ['@astrojs/renderer-preact'],
});
Loading

0 comments on commit 1aa6edc

Please sign in to comment.