Skip to content

Commit 820be2d

Browse files
authored
WIP: Add react (#1)
* adding vitest + react, updating packages * cleaning readme * adding react support * adding react component to page * fixing props for head * removing debug styles * adding tests * cleaning up pronounceGuide component functionality
1 parent 3b7fa41 commit 820be2d

File tree

13 files changed

+1226
-335
lines changed

13 files changed

+1226
-335
lines changed

.github/workflows/test.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Run Tests
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Set up Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: '20'
18+
cache: 'npm'
19+
20+
- name: Install dependencies
21+
run: npm ci
22+
23+
- name: Run tests
24+
run: npm test

README.md

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
1-
# Astro Starter Kit: Basics
2-
3-
```sh
4-
npm create astro@latest -- --template basics
5-
```
6-
7-
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics)
8-
[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/basics)
9-
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/basics/devcontainer.json)
10-
11-
> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
12-
13-
![just-the-basics](https://github.com/withastro/astro/assets/2244813/a0a5533c-a856-4198-8470-2d67b1d7c554)
1+
# dot work
142

153
## 🚀 Project Structure
164

@@ -42,6 +30,7 @@ All commands are run from the root of the project, from a terminal:
4230
| `npm run preview` | Preview your build locally, before deploying |
4331
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
4432
| `npm run astro -- --help` | Get help using the Astro CLI |
33+
| `npx @astrojs/upgrade` | updates all astro packages in one shot via CLI |
4534

4635
## 👀 Want to learn more?
4736

astro.config.mjs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22
import { defineConfig } from "astro/config";
33
import vercel from "@astrojs/vercel";
44

5+
import react from "@astrojs/react";
6+
57
// https://astro.build/config
68
export default defineConfig({
7-
site: "https://taurean.work",
8-
output: "server",
9-
adapter: vercel(),
10-
});
9+
site: "https://taurean.work",
10+
output: "server",
11+
adapter: vercel(),
12+
integrations: [react()],
13+
});

0 commit comments

Comments
 (0)