Skip to content

Commit

Permalink
Merge pull request #17 from hayato-osh/feature/remove-react
Browse files Browse the repository at this point in the history
React を削除
  • Loading branch information
hayato-osh authored Apr 14, 2024
2 parents 8f986ee + 2dc5b38 commit f722a7a
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 171 deletions.
5 changes: 2 additions & 3 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { defineConfig } from "astro/config";
import react from "@astrojs/react";

import tailwind from "@astrojs/tailwind";

// https://astro.build/config
export default defineConfig({
integrations: [react(), tailwind()]
});
integrations: [tailwind()],
});
151 changes: 0 additions & 151 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,14 @@
},
"dependencies": {
"@astrojs/check": "^0.5.10",
"@astrojs/react": "^3.1.1",
"@astrojs/tailwind": "^5.1.0",
"astro": "^4.5.16",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"tailwindcss": "^3.4.3",
"typescript": "^5.4.3"
},
"devDependencies": {
"@biomejs/biome": "1.6.4",
"@textlint/textlint-plugin-markdown": "^14.0.4",
"@types/react": "^18.2.74",
"@types/react-dom": "^18.2.23",
"husky": "^9.0.11",
"npm-run-all2": "^6.1.2",
"textlint": "^14.0.4",
Expand Down
3 changes: 3 additions & 0 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
---
<footer class="sticky top-[100vh]">footer</footer>
3 changes: 3 additions & 0 deletions src/components/Header.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
---
<header class="h-8">header</header>
5 changes: 0 additions & 5 deletions src/layouts/Footer.tsx

This file was deleted.

4 changes: 2 additions & 2 deletions src/layouts/GlobalLayout.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
import { Footer } from "./Footer";
import { Header } from "./Header";
import Footer from "@/components/Footer.astro";
import Header from "@/components/Header.astro";
---
<html lang="ja" class="h-full">
<head>
Expand Down
5 changes: 0 additions & 5 deletions src/layouts/Header.tsx

This file was deleted.

0 comments on commit f722a7a

Please sign in to comment.