Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/frameworks.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,12 @@
"package": "starter-sveltekit",
"buildScript": "build:sveltekit",
"measurements": ["install", "build", "dependencies"]
},
{
"name": "astro",
"displayName": "Astro",
"package": "starter-astro",
"buildScript": "build:astro",
"measurements": ["install", "build", "dependencies"]
}
]
53 changes: 53 additions & 0 deletions .github/workflows/ci-astro.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: CI - Astro

on:
push:
branches: [main]
paths:
- 'packages/starter-astro/**'
- '.github/workflows/ci-astro.yml'
- 'package.json'
- 'pnpm-lock.yaml'
- 'eslint.config.js'
- 'prettier.config.js'
pull_request:
branches: [main]
paths:
- 'packages/starter-astro/**'
- '.github/workflows/ci-astro.yml'
- 'package.json'
- 'pnpm-lock.yaml'
- 'eslint.config.js'
- 'prettier.config.js'

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Format check
run: pnpm --filter starter-astro format:check

- name: Lint
run: pnpm --filter starter-astro lint

- name: Type check
run: pnpm --filter starter-astro type-check

- name: Build
run: pnpm --filter starter-astro build
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
"build:nuxt": "pnpm --filter starter-nuxt build",
"dev:sveltekit": "pnpm --filter starter-sveltekit dev",
"build:sveltekit": "pnpm --filter starter-sveltekit build",
"dev:astro": "pnpm --filter starter-astro dev",
"build:astro": "pnpm --filter starter-astro build",
"generate:stats": "pnpm --filter @framework-tracker/stats-generator generate",
"lint": "pnpm -r --parallel lint",
"lint:fix": "pnpm -r --parallel lint:fix",
Expand Down
24 changes: 24 additions & 0 deletions packages/starter-astro/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# build output
dist/

# generated types
.astro/

# dependencies
node_modules/

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

# environment variables
.env
.env.production

# macOS-specific files
.DS_Store

# jetbrains setting folder
.idea/
4 changes: 4 additions & 0 deletions packages/starter-astro/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"recommendations": ["astro-build.astro-vscode"],
"unwantedRecommendations": []
}
11 changes: 11 additions & 0 deletions packages/starter-astro/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"command": "./node_modules/.bin/astro dev",
"name": "Development server",
"request": "launch",
"type": "node-terminal"
}
]
}
46 changes: 46 additions & 0 deletions packages/starter-astro/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Astro Starter Kit: Basics

```sh
pnpm create astro@latest -- --template basics
```

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

## 🚀 Project Structure

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

```text
/
├── public/
│ └── favicon.svg
├── src
│   ├── assets
│   │   └── astro.svg
│   ├── components
│   │   └── Welcome.astro
│   ├── layouts
│   │   └── Layout.astro
│   └── pages
│   └── index.astro
└── package.json
```

To learn more about the folder structure of an Astro project, refer to [our guide on project structure](https://docs.astro.build/en/basics/project-structure/).

## 🧞 Commands

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

| Command | Action |
| :--------------------- | :----------------------------------------------- |
| `pnpm install` | Installs dependencies |
| `pnpm dev` | Starts local dev server at `localhost:4321` |
| `pnpm build` | Build your production site to `./dist/` |
| `pnpm preview` | Preview your build locally, before deploying |
| `pnpm astro ...` | Run CLI commands like `astro add`, `astro check` |
| `pnpm astro -- --help` | Get help using the Astro CLI |

## 👀 Want to learn more?

Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
5 changes: 5 additions & 0 deletions packages/starter-astro/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// @ts-check
import { defineConfig } from 'astro/config'

// https://astro.build/config
export default defineConfig({})
19 changes: 19 additions & 0 deletions packages/starter-astro/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "starter-astro",
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"type-check": "tsc --noEmit",
"format": "prettier --write .",
"format:check": "prettier --check ."
},
"dependencies": {
"astro": "^5.16.15"
}
}
Binary file added packages/starter-astro/public/favicon.ico
Binary file not shown.
9 changes: 9 additions & 0 deletions packages/starter-astro/public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions packages/starter-astro/src/assets/astro.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions packages/starter-astro/src/assets/background.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading