feat: scaffold Astro project replacing Gatsby

- Remove gatsby-config.js, yarn.lock, src/gatsby-theme-blog/
- Create package.json with astro, @astrojs/mdx, @astrojs/rss deps
- Create astro.config.mjs with site/base for GitHub Pages
- Create tsconfig.json extending astro/tsconfigs/strict
- Create src/env.d.ts with astro/client reference
- Create minimal src/pages/index.astro placeholder
- Update .gitignore: replace gatsby section with astro (dist/, .astro/)
- Add scaffold verification tests
- Verified: npm run build succeeds with output in dist/
This commit is contained in:
Ken
2026-05-26 22:32:22 +00:00
parent c36c48b684
commit cf0c07f2a9
12 changed files with 6561 additions and 13183 deletions
+1
View File
@@ -0,0 +1 @@
/// <reference types="astro/client" />
@@ -1,7 +0,0 @@
import React, { Fragment } from "react"
/**
* Change the content to add your own bio
*/
export default () => <Fragment>Ken Chau</Fragment>
@@ -1,25 +0,0 @@
import merge from "deepmerge"
import defaultThemeColors from "gatsby-theme-blog/src/gatsby-plugin-theme-ui/colors"
/*
* Want to change your theme colors?
* Try uncommenting the color overrides below
* to go from default purple to a blue theme
*/
const darkBlue = `#007acc`
const lightBlue = `#66E0FF`
const blueGray = `#282c35`
export default merge(defaultThemeColors, {
text: blueGray,
primary: darkBlue,
heading: blueGray,
modes: {
dark: {
background: blueGray,
primary: lightBlue,
highlight: lightBlue,
},
},
})
+14
View File
@@ -0,0 +1,14 @@
---
---
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Crash Test Dev</title>
</head>
<body>
<h1>Crash Test Dev</h1>
<p>Blog by Ken Chau</p>
</body>
</html>