mirror of
https://github.com/kou029w/_.git
synced 2025-01-30 22:08:02 +00:00
create astro-ssg
This commit is contained in:
parent
fbff9b126a
commit
938427a63d
6 changed files with 5752 additions and 0 deletions
2
astro-ssg/.gitignore
vendored
Normal file
2
astro-ssg/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
/node_modules/
|
||||
/dist/
|
6
astro-ssg/astro.config.mjs
Normal file
6
astro-ssg/astro.config.mjs
Normal file
|
@ -0,0 +1,6 @@
|
|||
/** @type {import("astro").AstroUserConfig} */
|
||||
const config = {
|
||||
renderers: ["@astrojs/renderer-preact"],
|
||||
};
|
||||
|
||||
export default config;
|
13
astro-ssg/package.json
Normal file
13
astro-ssg/package.json
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"devDependencies": {
|
||||
"@astrojs/renderer-preact": "^0.2.2",
|
||||
"@exampledev/new.css": "^1.1.3",
|
||||
"astro": "^0.20.11",
|
||||
"preact": "^10.5.15"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "astro dev",
|
||||
"build": "astro build",
|
||||
"preview": "astro preview"
|
||||
}
|
||||
}
|
1
astro-ssg/src/components/App.tsx
Normal file
1
astro-ssg/src/components/App.tsx
Normal file
|
@ -0,0 +1 @@
|
|||
export default () => <>ようこそ!</>;
|
12
astro-ssg/src/pages/index.astro
Normal file
12
astro-ssg/src/pages/index.astro
Normal file
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
import "@exampledev/new.css"
|
||||
import App from "../components/App.jsx"
|
||||
---
|
||||
<html lang="ja">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>ようこそ</title>
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
</head>
|
||||
<body><App /></body>
|
||||
</html>
|
5718
astro-ssg/yarn.lock
Normal file
5718
astro-ssg/yarn.lock
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue