ming-ders-MacBook.local💩➜ x2 git:(main) bun i
bun install v1.1.20 (ae194892)
+ @astrojs/react@4.2.5
+ @tailwindcss/vite@4.1.4
+ @types/react@19.1.2
+ @types/react-dom@19.1.2
+ astro@5.7.5
+ daisyui@5.0.28
+ react@19.1.0
+ react-dom@19.1.0
+ swr@2.3.3
+ tailwindcss@4.1.4
350 packages installed [11.95s]
ming-ders-MacBook.local💩➜ x2 git:(main) ✗ bun dev
$ astro dev
10:25:53 [WARN] Unsupported file type /Users/ming-derwang/src/x2/src/pages/FastQC_on_data_69__Webpage/Trimmomatic on hcc1395_tumor_rep3_r2_fastq_gz _R2 paired__fastqc.zip found. Prefix filename with an underscore (`_`) to ignore.
10:25:53 [WARN] Unsupported file type /Users/ming-derwang/src/x2/src/pages/FastQC_on_data_69__Webpage/Trimmomatic on hcc1395_tumor_rep3_r2_fastq_gz _R2 paired__fastqc/fastqc.fo found. Prefix filename with an underscore (`_`) to ignore.
10:25:53 [WARN] Unsupported file type /Users/ming-derwang/src/x2/src/pages/FastQC_on_data_69__Webpage/Trimmomatic on hcc1395_tumor_rep3_r2_fastq_gz _R2 paired__fastqc/fastqc_data.txt found. Prefix filename with an underscore (`_`) to ignore.
10:25:53 [WARN] Unsupported file type /Users/ming-derwang/src/x2/src/pages/FastQC_on_data_69__Webpage/Trimmomatic on hcc1395_tumor_rep3_r2_fastq_gz _R2 paired__fastqc/summary.txt found. Prefix filename with an underscore (`_`) to ignore.
10:25:53 [WARN] Unsupported file type /Users/ming-derwang/src/x2/src/pages/FastQC_on_data_69__Webpage/Trimmomatic on hcc1395_tumor_rep3_r2_fastq_gz _R2 paired__fastqc/Icons/error.png found. Prefix filename with an underscore (`_`) to ignore.
10:25:53 [WARN] Unsupported file type /Users/ming-derwang/src/x2/src/pages/FastQC_on_data_69__Webpage/Trimmomatic on hcc1395_tumor_rep3_r2_fastq_gz _R2 paired__fastqc/Icons/fastqc_icon.png found. Prefix filename with an underscore (`_`) to ignore.
10:25:53 [WARN] Unsupported file type /Users/ming-derwang/src/x2/src/pages/FastQC_on_data_69__Webpage/Trimmomatic on hcc1395_tumor_rep3_r2_fastq_gz _R2 paired__fastqc/Icons/tick.png found. Prefix filename with an underscore (`_`) to ignore.
10:25:53 [WARN] Unsupported file type /Users/ming-derwang/src/x2/src/pages/FastQC_on_data_69__Webpage/Trimmomatic on hcc1395_tumor_rep3_r2_fastq_gz _R2 paired__fastqc/Icons/warning.png found. Prefix filename with an underscore (`_`) to ignore.
10:25:53 [WARN] Unsupported file type /Users/ming-derwang/src/x2/src/pages/FastQC_on_data_69__Webpage/Trimmomatic on hcc1395_tumor_rep3_r2_fastq_gz _R2 paired__fastqc/Images/adapter_content.png found. Prefix filename with an underscore (`_`) to ignore.
10:25:53 [WARN] Unsupported file type /Users/ming-derwang/src/x2/src/pages/FastQC_on_data_69__Webpage/Trimmomatic on hcc1395_tumor_rep3_r2_fastq_gz _R2 paired__fastqc/Images/duplication_levels.png found. Prefix filename with an underscore (`_`) to ignore.
10:25:53 [WARN] Unsupported file type /Users/ming-derwang/src/x2/src/pages/FastQC_on_data_69__Webpage/Trimmomatic on hcc1395_tumor_rep3_r2_fastq_gz _R2 paired__fastqc/Images/per_base_n_content.png found. Prefix filename with an underscore (`_`) to ignore.
10:25:53 [WARN] Unsupported file type /Users/ming-derwang/src/x2/src/pages/FastQC_on_data_69__Webpage/Trimmomatic on hcc1395_tumor_rep3_r2_fastq_gz _R2 paired__fastqc/Images/per_base_quality.png found. Prefix filename with an underscore (`_`) to ignore.
10:25:53 [WARN] Unsupported file type /Users/ming-derwang/src/x2/src/pages/FastQC_on_data_69__Webpage/Trimmomatic on hcc1395_tumor_rep3_r2_fastq_gz _R2 paired__fastqc/Images/per_base_sequence_content.png found. Prefix filename with an underscore (`_`) to ignore.
10:25:53 [WARN] Unsupported file type /Users/ming-derwang/src/x2/src/pages/FastQC_on_data_69__Webpage/Trimmomatic on hcc1395_tumor_rep3_r2_fastq_gz _R2 paired__fastqc/Images/per_sequence_gc_content.png found. Prefix filename with an underscore (`_`) to ignore.
10:25:53 [WARN] Unsupported file type /Users/ming-derwang/src/x2/src/pages/FastQC_on_data_69__Webpage/Trimmomatic on hcc1395_tumor_rep3_r2_fastq_gz _R2 paired__fastqc/Images/per_sequence_quality.png found. Prefix filename with an underscore (`_`) to ignore.
10:25:53 [WARN] Unsupported file type /Users/ming-derwang/src/x2/src/pages/FastQC_on_data_69__Webpage/Trimmomatic on hcc1395_tumor_rep3_r2_fastq_gz _R2 paired__fastqc/Images/per_tile_quality.png found. Prefix filename with an underscore (`_`) to ignore.
10:25:53 [WARN] Unsupported file type /Users/ming-derwang/src/x2/src/pages/FastQC_on_data_69__Webpage/Trimmomatic on hcc1395_tumor_rep3_r2_fastq_gz _R2 paired__fastqc/Images/sequence_length_distribution.png found. Prefix filename with an underscore (`_`) to ignore.
10:25:53 [WARN] Unsupported file type /Users/ming-derwang/src/x2/src/pages/assets/app.css found. Prefix filename with an underscore (`_`) to ignore.
10:25:53 [WARN] Unsupported file type /Users/ming-derwang/src/x2/src/pages/components/Profile.tsx found. Prefix filename with an underscore (`_`) to ignore.
10:25:53 [WARN] Unsupported file type /Users/ming-derwang/src/x2/src/pages/components/X.tsx found. Prefix filename with an underscore (`_`) to ignore.
10:25:53 [types] Generated 7ms
10:25:53 [content] Syncing content
10:25:53 [content] Synced content
astro v5.7.5 ready in 3392 ms
┃ Local http://localhost:4321/
┃ Network use --host to expose
10:25:53 watching for file changes...ming-ders-MacBook.local💩➜ x git:(main) ✗ cat src/pages/assets/app.css
@import "tailwindcss";
@plugin "daisyui" {
themes: all;
}
ming-ders-MacBook.local💩➜ x git:(main) ✗ cat src/pages/layouts/Layout.astro
---
import "../assets/app.css";
const { content } = Astro.props;
console.log(content);
---
<html data-theme="cyberpunk" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<title>title</title>
<script src="https://cdn.jsdelivr.net/npm/theme-change@2.0.2/index.js"></script>
</head>
<body>
<div class="grid place-items-center h-screen content-center">
<button data-toggle-theme="cupcake,cyberpunk" data-act-class="ACTIVECLASS">👉 switch themes</button>
<slot />
</div>
</body>
</html>
ming-ders-MacBook.local💩➜ x git:(main) ✗ cat src/pages/index.astro
---
import Layout from "./layouts/Layout.astro";
import X from "./components/X.tsx";
---
<Layout title="ming">
<X/>
</Layout>
ming-ders-MacBook.local💩➜ x git:(main) ✗
npm create astro@latest -- --template minimal🧑🚀 Seasoned astronaut? Delete this file. Have fun!
Inside of your Astro project, you'll see the following folders and files:
/
├── public/
├── src/
│ └── pages/
│ └── index.astro
└── package.json
Astro looks for .astro or .md files in the src/pages/ directory. Each page is exposed as a route based on its file name.
There's nothing special about src/components/, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
Any static assets, like images, can be placed in the public/ directory.
All commands are run from the root of the project, from a terminal:
| Command | Action |
|---|---|
npm install |
Installs dependencies |
npm run dev |
Starts local dev server at localhost:4321 |
npm run build |
Build your production site to ./dist/ |
npm run preview |
Preview your build locally, before deploying |
npm run astro ... |
Run CLI commands like astro add, astro check |
npm run astro -- --help |
Get help using the Astro CLI |
Feel free to check our documentation or jump into our Discord server.