Skip to content

Commit

Permalink
feat: use Astro instead
Browse files Browse the repository at this point in the history
  • Loading branch information
jlengstorf committed Sep 28, 2021
1 parent 2a4017b commit 9f6ef0b
Show file tree
Hide file tree
Showing 37 changed files with 13,512 additions and 8,219 deletions.
3 changes: 0 additions & 3 deletions .eslintrc.json

This file was deleted.

38 changes: 12 additions & 26 deletions .gitignore
@@ -1,34 +1,20 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# build output
dist

# dependencies
/node_modules
/.pnp
.pnp.js
node_modules/
.snowpack/

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

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

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local
# environment variables
.env
.env.production

# macOS-specific files
.DS_Store

# vercel
.vercel
_old/
2 changes: 2 additions & 0 deletions .npmrc
@@ -0,0 +1,2 @@
## force pnpm to hoist
shamefully-hoist = true
4 changes: 4 additions & 0 deletions .prettierrc
@@ -0,0 +1,4 @@
{
"tabWidth": 2,
"useTabs": false
}
6 changes: 6 additions & 0 deletions .stackblitzrc
@@ -0,0 +1,6 @@
{
"startCommand": "npm start",
"env": {
"ENABLE_CJS_IMPORTS": true
}
}
Empty file removed OUTLINE.md
Empty file.
43 changes: 40 additions & 3 deletions README.md
@@ -1,5 +1,42 @@
# Netlify Feature Tour
# Welcome to [Astro](https://astro.build)

> **NOTE:** This is a work in progress.
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/snowpackjs/astro/tree/latest/examples/starter)

[![Deploy To Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/netlify/feature-tour)
> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
## 🚀 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).
16 changes: 16 additions & 0 deletions astro.config.mjs
@@ -0,0 +1,16 @@
export default {
// projectRoot: '.', // Where to resolve all URLs relative to. Useful if you have a monorepo project.
// pages: './src/pages', // Path to Astro components, pages, and data
// dist: './dist', // When running `astro build`, path to final static output
// 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.
buildOptions: {
// site: 'http://example.com', // Your public domain, e.g.: https://my-site.dev/. Used to generate sitemaps and canonical URLs.
sitemap: true, // Generate sitemap (set to "false" to disable)
},
devOptions: {
// hostname: 'localhost', // The hostname to run the dev server on.
// port: 3000, // The port to run the dev server on.
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
},
renderers: [],
};
46 changes: 0 additions & 46 deletions components/layout.js

This file was deleted.

6 changes: 0 additions & 6 deletions netlify/functions/hello-world.js

This file was deleted.

6 changes: 0 additions & 6 deletions next.config.js

This file was deleted.

0 comments on commit 9f6ef0b

Please sign in to comment.