buntic 0.0.0-stage → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +135 -2
- package/dist/assets/cache.d.ts +10 -0
- package/dist/assets/image-processor.d.ts +39 -0
- package/dist/assets/photo-tag.d.ts +19 -0
- package/dist/builder/builder.d.ts +28 -0
- package/dist/builder/collisions.d.ts +10 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +4210 -0
- package/dist/config.d.ts +11 -0
- package/dist/env.d.ts +18 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.js +5066 -0
- package/dist/init.d.ts +15 -0
- package/dist/router/routes.d.ts +48 -0
- package/dist/runtime.d.ts +24 -0
- package/dist/seo/feeds.d.ts +11 -0
- package/dist/seo/metadata.d.ts +33 -0
- package/dist/seo/robots.d.ts +2 -0
- package/dist/seo/sitemap.d.ts +2 -0
- package/dist/server/dev-helpers.d.ts +29 -0
- package/dist/server/dev.d.ts +8 -0
- package/dist/storage/loader.d.ts +17 -0
- package/dist/storage/oras/adapter.d.ts +17 -0
- package/dist/storage/oras/auth.d.ts +46 -0
- package/dist/storage/oras/client.d.ts +83 -0
- package/dist/storage/oras/index.d.ts +6 -0
- package/dist/storage/oras/manifests.d.ts +42 -0
- package/dist/storage/oras/reference.d.ts +15 -0
- package/dist/storage/oras/types.d.ts +161 -0
- package/dist/template/css-graph.d.ts +49 -0
- package/dist/template/css-resolver.d.ts +19 -0
- package/dist/template/css-scoper.d.ts +12 -0
- package/dist/template/data-loader.d.ts +8 -0
- package/dist/template/directives.d.ts +13 -0
- package/dist/template/dsd-renderer.d.ts +23 -0
- package/dist/template/engine.d.ts +39 -0
- package/dist/template/html-scanner.d.ts +37 -0
- package/dist/template/scoped-css.d.ts +30 -0
- package/dist/template/svg-component.d.ts +32 -0
- package/dist/template/vfs.d.ts +57 -0
- package/dist/template/web-components.d.ts +91 -0
- package/dist/types.d.ts +152 -0
- package/dist/utils/html.d.ts +23 -0
- package/dist/utils/logger.d.ts +6 -0
- package/dist/utils/paths.d.ts +20 -0
- package/package.json +54 -4
- package/templates/blank/_gitignore +5 -0
- package/templates/blank/bustatic.config.ts +15 -0
- package/templates/blank/src/layouts/main.html +14 -0
- package/templates/blank/src/pages/index.html +11 -0
- package/templates/blank/src/public/robots.txt +2 -0
- package/templates/blank/src/styles/main.css +40 -0
- package/templates/blank/tsconfig.json +26 -0
- package/templates/simple/README.md +35 -0
- package/templates/simple/_gitignore +5 -0
- package/templates/simple/bustatic.config.ts +11 -0
- package/templates/simple/src/components/card.css +27 -0
- package/templates/simple/src/components/card.html +7 -0
- package/templates/simple/src/components/footer.css +14 -0
- package/templates/simple/src/components/footer.html +5 -0
- package/templates/simple/src/components/header.css +33 -0
- package/templates/simple/src/components/header.html +10 -0
- package/templates/simple/src/data/features.json +14 -0
- package/templates/simple/src/data/site.json +11 -0
- package/templates/simple/src/layouts/main.html +17 -0
- package/templates/simple/src/pages/about.html +16 -0
- package/templates/simple/src/pages/contact.html +13 -0
- package/templates/simple/src/pages/index.html +17 -0
- package/templates/simple/src/public/robots.txt +2 -0
- package/templates/simple/src/styles/main.css +67 -0
- package/templates/simple/tsconfig.json +26 -0
- package/templates/skills/bustatic/SKILL.md +359 -0
- package/templates/skills/bustatic/examples/README.md +177 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--color-bg: #ffffff;
|
|
3
|
+
--color-text: #111827;
|
|
4
|
+
--color-muted: #4b5563;
|
|
5
|
+
--color-accent: #2563eb;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
* {
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
body {
|
|
13
|
+
margin: 0;
|
|
14
|
+
font-family: system-ui, -apple-system, sans-serif;
|
|
15
|
+
background: var(--color-bg);
|
|
16
|
+
color: var(--color-text);
|
|
17
|
+
line-height: 1.6;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
main {
|
|
21
|
+
max-width: 720px;
|
|
22
|
+
margin: 4rem auto;
|
|
23
|
+
padding: 0 1.5rem;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.hero h1 {
|
|
27
|
+
margin-bottom: 0.75rem;
|
|
28
|
+
color: var(--color-accent);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.hero p {
|
|
32
|
+
color: var(--color-muted);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
code {
|
|
36
|
+
padding: 0.15rem 0.35rem;
|
|
37
|
+
border-radius: 4px;
|
|
38
|
+
background: #f3f4f6;
|
|
39
|
+
font-size: 0.9em;
|
|
40
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"lib": ["ESNext", "DOM"],
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"target": "ESNext",
|
|
6
|
+
"moduleResolution": "bundler",
|
|
7
|
+
"moduleDetection": "force",
|
|
8
|
+
"allowImportingTsExtensions": true,
|
|
9
|
+
"noEmit": true,
|
|
10
|
+
"strict": true,
|
|
11
|
+
"skipLibCheck": true,
|
|
12
|
+
"forceConsistentCasingInFileNames": true,
|
|
13
|
+
"paths": {
|
|
14
|
+
"bun-bustatic": [
|
|
15
|
+
"./node_modules/bun-bustatic/dist/index.d.ts",
|
|
16
|
+
"./.bustatic/types/index.d.ts"
|
|
17
|
+
],
|
|
18
|
+
"bustatic": [
|
|
19
|
+
"./node_modules/bun-bustatic/dist/index.d.ts",
|
|
20
|
+
"./node_modules/bustatic/dist/index.d.ts",
|
|
21
|
+
"./.bustatic/types/index.d.ts"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"include": ["src/**/*", "bustatic.config.ts"]
|
|
26
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# ⚡ Bustatic Simple
|
|
2
|
+
|
|
3
|
+
Sitio multipágina estático creado con **Bustatic** (sin `package.json` ni `node_modules`).
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 📁 Estructura con `src/`
|
|
8
|
+
|
|
9
|
+
```text
|
|
10
|
+
mi-sitio/
|
|
11
|
+
├── src/
|
|
12
|
+
│ ├── pages/ # index.html, about.html, contact.html
|
|
13
|
+
│ ├── layouts/ # main.html
|
|
14
|
+
│ ├── components/ # header, footer, card (HTML + CSS scoped)
|
|
15
|
+
│ ├── data/ # site.json, features.json
|
|
16
|
+
│ ├── styles/ # main.css
|
|
17
|
+
│ └── public/ # robots.txt
|
|
18
|
+
├── bustatic.config.ts
|
|
19
|
+
└── tsconfig.json
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## 🚀 Comandos
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
# Servidor de desarrollo con live-reload
|
|
28
|
+
bustatic dev
|
|
29
|
+
|
|
30
|
+
# Compilar para producción en dist/
|
|
31
|
+
bustatic build
|
|
32
|
+
|
|
33
|
+
# Limpiar dist/ y caché
|
|
34
|
+
bustatic clean
|
|
35
|
+
```
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
& {
|
|
2
|
+
background-color: #1e293b;
|
|
3
|
+
border: 1px solid #334155;
|
|
4
|
+
border-radius: 8px;
|
|
5
|
+
padding: 1.5rem;
|
|
6
|
+
transition: transform 0.2s, border-color 0.2s;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
&:hover {
|
|
10
|
+
transform: translateY(-2px);
|
|
11
|
+
border-color: #38bdf8;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
h3 {
|
|
15
|
+
color: #38bdf8;
|
|
16
|
+
font-size: 1.25rem;
|
|
17
|
+
margin-bottom: 0.5rem;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
p {
|
|
21
|
+
color: #cbd5e1;
|
|
22
|
+
font-size: 0.95rem;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.extra {
|
|
26
|
+
margin-top: 1rem;
|
|
27
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
& {
|
|
2
|
+
background-color: #1e293b;
|
|
3
|
+
border-bottom: 1px solid #334155;
|
|
4
|
+
padding: 1rem 1.5rem;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.header-inner {
|
|
8
|
+
max-width: 960px;
|
|
9
|
+
margin: 0 auto;
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: space-between;
|
|
12
|
+
align-items: center;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.logo {
|
|
16
|
+
font-size: 1.25rem;
|
|
17
|
+
font-weight: 700;
|
|
18
|
+
color: #38bdf8;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.nav {
|
|
22
|
+
display: flex;
|
|
23
|
+
gap: 1.5rem;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.nav a {
|
|
27
|
+
color: #e2e8f0;
|
|
28
|
+
font-weight: 500;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.nav a:hover {
|
|
32
|
+
color: #38bdf8;
|
|
33
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"title": "100% Nativo de Bun",
|
|
4
|
+
"description": "Aprovecha al máximo el runtime y el compilador de Bun para builds instantáneos."
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"title": "Cero Dependencias",
|
|
8
|
+
"description": "Sin paquetes npm pesados ni carpetas node_modules de cientos de megabytes."
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"title": "Estilos Scoped",
|
|
12
|
+
"description": "CSS encapsulado por componente con selector & y deduplicación automática."
|
|
13
|
+
}
|
|
14
|
+
]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Bustatic Simple",
|
|
3
|
+
"description": "Ejemplo estático sencillo y moderno creado con Bustatic",
|
|
4
|
+
"year": 2026,
|
|
5
|
+
"author": "Equipo Bustatic",
|
|
6
|
+
"navLinks": [
|
|
7
|
+
{ "label": "Inicio", "url": "/" },
|
|
8
|
+
{ "label": "Acerca de", "url": "/about" },
|
|
9
|
+
{ "label": "Contacto", "url": "/contact" }
|
|
10
|
+
]
|
|
11
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="es">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title><slot name="title">{{ site.title }}</slot></title>
|
|
7
|
+
<link rel="stylesheet" href="/styles/main.css">
|
|
8
|
+
<slot name="head"></slot>
|
|
9
|
+
</head>
|
|
10
|
+
<body>
|
|
11
|
+
<component src="../components/header.html" />
|
|
12
|
+
<main>
|
|
13
|
+
<slot></slot>
|
|
14
|
+
</main>
|
|
15
|
+
<component src="../components/footer.html" />
|
|
16
|
+
</body>
|
|
17
|
+
</html>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<layout src="../layouts/main.html">
|
|
2
|
+
<span slot="title">Acerca de | {{ site.title }}</span>
|
|
3
|
+
|
|
4
|
+
<article>
|
|
5
|
+
<h1>Acerca de este proyecto</h1>
|
|
6
|
+
<p>
|
|
7
|
+
Este es un ejemplo simple y completamente estático generado con <strong>Bustatic</strong>,
|
|
8
|
+
demostrando la estructura de carpetas <code>src/</code> y componentes modulares.
|
|
9
|
+
</p>
|
|
10
|
+
<br>
|
|
11
|
+
<p>
|
|
12
|
+
Todo el código HTML y CSS se compila a páginas ultrarrápidas con cero JavaScript en el cliente
|
|
13
|
+
y cero dependencias de terceros.
|
|
14
|
+
</p>
|
|
15
|
+
</article>
|
|
16
|
+
</layout>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<layout src="../layouts/main.html">
|
|
2
|
+
<span slot="title">Contacto | {{ site.title }}</span>
|
|
3
|
+
|
|
4
|
+
<article>
|
|
5
|
+
<h1>Contacto</h1>
|
|
6
|
+
<p>¿Tienes dudas o comentarios? Puedes encontrarnos en:</p>
|
|
7
|
+
<br>
|
|
8
|
+
<ul>
|
|
9
|
+
<li>GitHub: <a href="https://github.com" target="_blank">Repositorio de Bustatic</a></li>
|
|
10
|
+
<li>Correo: contacto@example.com</li>
|
|
11
|
+
</ul>
|
|
12
|
+
</article>
|
|
13
|
+
</layout>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<layout src="../layouts/main.html">
|
|
2
|
+
<span slot="title">Inicio | {{ site.title }}</span>
|
|
3
|
+
|
|
4
|
+
<section class="hero">
|
|
5
|
+
<h1>{{ site.title }}</h1>
|
|
6
|
+
<p>{{ site.description }}</p>
|
|
7
|
+
</section>
|
|
8
|
+
|
|
9
|
+
<section>
|
|
10
|
+
<h2>Características Principales</h2>
|
|
11
|
+
<div class="grid">
|
|
12
|
+
<each src="../data/features.json">
|
|
13
|
+
<component src="../components/card.html" />
|
|
14
|
+
</each>
|
|
15
|
+
</div>
|
|
16
|
+
</section>
|
|
17
|
+
</layout>
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--bg-color: #0f172a;
|
|
3
|
+
--text-color: #f8fafc;
|
|
4
|
+
--card-bg: #1e293b;
|
|
5
|
+
--primary: #38bdf8;
|
|
6
|
+
--primary-hover: #0284c7;
|
|
7
|
+
--border-color: #334155;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
* {
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
margin: 0;
|
|
13
|
+
padding: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
body {
|
|
17
|
+
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
18
|
+
background-color: var(--bg-color);
|
|
19
|
+
color: var(--text-color);
|
|
20
|
+
line-height: 1.6;
|
|
21
|
+
min-height: 100vh;
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
main {
|
|
27
|
+
flex: 1;
|
|
28
|
+
max-width: 960px;
|
|
29
|
+
width: 100%;
|
|
30
|
+
margin: 0 auto;
|
|
31
|
+
padding: 2rem 1rem;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
a {
|
|
35
|
+
color: var(--primary);
|
|
36
|
+
text-decoration: none;
|
|
37
|
+
transition: color 0.2s;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
a:hover {
|
|
41
|
+
color: var(--primary-hover);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.hero {
|
|
45
|
+
text-align: center;
|
|
46
|
+
padding: 3rem 1rem;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.hero h1 {
|
|
50
|
+
font-size: 2.5rem;
|
|
51
|
+
margin-bottom: 1rem;
|
|
52
|
+
color: var(--primary);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.hero p {
|
|
56
|
+
font-size: 1.25rem;
|
|
57
|
+
color: #94a3b8;
|
|
58
|
+
max-width: 600px;
|
|
59
|
+
margin: 0 auto 2rem;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.grid {
|
|
63
|
+
display: grid;
|
|
64
|
+
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
|
65
|
+
gap: 1.5rem;
|
|
66
|
+
margin-top: 2rem;
|
|
67
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"lib": ["ESNext", "DOM"],
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"target": "ESNext",
|
|
6
|
+
"moduleResolution": "bundler",
|
|
7
|
+
"moduleDetection": "force",
|
|
8
|
+
"allowImportingTsExtensions": true,
|
|
9
|
+
"noEmit": true,
|
|
10
|
+
"strict": true,
|
|
11
|
+
"skipLibCheck": true,
|
|
12
|
+
"forceConsistentCasingInFileNames": true,
|
|
13
|
+
"paths": {
|
|
14
|
+
"bun-bustatic": [
|
|
15
|
+
"./node_modules/bun-bustatic/dist/index.d.ts",
|
|
16
|
+
"./.bustatic/types/index.d.ts"
|
|
17
|
+
],
|
|
18
|
+
"bustatic": [
|
|
19
|
+
"./node_modules/bun-bustatic/dist/index.d.ts",
|
|
20
|
+
"./node_modules/bustatic/dist/index.d.ts",
|
|
21
|
+
"./.bustatic/types/index.d.ts"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"include": ["src/**/*", "bustatic.config.ts"]
|
|
26
|
+
}
|