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
package/dist/config.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { BustaticConfig, ResolvedConfig } from "./types.js";
|
|
2
|
+
export declare function defineConfig(config: BustaticConfig): BustaticConfig;
|
|
3
|
+
/**
|
|
4
|
+
* Discovers the Bustatic project root:
|
|
5
|
+
* 1. If an explicit target directory is passed, verifies its existence.
|
|
6
|
+
* 2. If no target (or ".") is passed, walks up from startCwd until it finds
|
|
7
|
+
* either a "pages" (or "src/pages") directory or a "bustatic.config.*" file.
|
|
8
|
+
* 3. Throws a helpful, actionable error if no root is detected.
|
|
9
|
+
*/
|
|
10
|
+
export declare function findProjectRoot(cliTarget?: string, startCwd?: string): string;
|
|
11
|
+
export declare function resolveConfig(cliRootDir?: string, overrides?: Partial<BustaticConfig>): Promise<ResolvedConfig>;
|
package/dist/env.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const RESERVED_NAMESPACES: Set<string>;
|
|
2
|
+
/**
|
|
3
|
+
* Checks if a key name is one of the reserved template namespaces.
|
|
4
|
+
*/
|
|
5
|
+
export declare function isReservedNamespace(name: string): boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Simple zero-dependency .env format parser.
|
|
8
|
+
* Handles KEY=VALUE, comments (#), and quoted values.
|
|
9
|
+
*/
|
|
10
|
+
export declare function parseEnvContent(content: string): Record<string, string>;
|
|
11
|
+
/**
|
|
12
|
+
* Loads public environment variables:
|
|
13
|
+
* 1. Reads variables from `.env.public` in projectRoot (if exists).
|
|
14
|
+
* 2. Scans process.env for any variable starting with "PUBLIC_".
|
|
15
|
+
*
|
|
16
|
+
* Internal secrets (like DATABASE_URL, SECRET_KEY) are NEVER included.
|
|
17
|
+
*/
|
|
18
|
+
export declare function loadPublicEnv(projectRoot: string): Record<string, string>;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { BustaticConfig } from "./types.js";
|
|
2
|
+
import type { BuildOptions, BuildResult } from "./builder/builder.js";
|
|
3
|
+
import type { DevServerInstance } from "./server/dev.js";
|
|
4
|
+
export type { BustaticConfig, ResolvedConfig, PageInfo, PageRouteInfo, StaticPathResult, PaginateOptions, PaginatePage, SiteConfig, SeoConfig, SeoImageConfig, FeedsConfig, PageSeo, FeedItem, PhotoAttributes, StorageAssetResult, StorageLoaderFn, } from "./types.js";
|
|
5
|
+
export { defineConfig, resolveConfig, findProjectRoot } from "./config.js";
|
|
6
|
+
export { TemplateEngine } from "./template/engine.js";
|
|
7
|
+
export { loadPublicEnv, isReservedNamespace, parseEnvContent } from "./env.js";
|
|
8
|
+
export { resolveAllRoutes, createPaginator, buildCleanUrl, validateRouteParams, extractRouteTokens, isDynamicPattern, findCoLocatedLoader, } from "./router/routes.js";
|
|
9
|
+
export { AssetCache } from "./assets/cache.js";
|
|
10
|
+
export { ImageProcessor } from "./assets/image-processor.js";
|
|
11
|
+
export { PhotoProcessor } from "./assets/photo-tag.js";
|
|
12
|
+
export { StorageManager } from "./storage/loader.js";
|
|
13
|
+
export { OrasClient, createOrasStorage, parseOciReference, formatOciReference, AuthManager, loadStoredCredentials, parseWwwAuthenticate, type OrasClientOptions, type OrasStorageOptions, type OCIReference, type OCIManifest, type OCIDescriptor, type PushOptions, type PushResult, type PullOptions, type PullResult, type BlobStreamResult, type AuthCredentials, type BasicAuth, type TokenAuth, } from "./storage/oras/index.js";
|
|
14
|
+
export { SeoMetadataEngine } from "./seo/metadata.js";
|
|
15
|
+
export { generateSitemapXml } from "./seo/sitemap.js";
|
|
16
|
+
export { generateRobotsTxt } from "./seo/robots.js";
|
|
17
|
+
export { generateRss2Xml, generateAtomXml, extractFeedEntries } from "./seo/feeds.js";
|
|
18
|
+
export { Builder, detectPublicCollisions, assertNoPublicCollisions, type BuildResult, type BuildOptions, type PublicCollision, } from "./builder/builder.js";
|
|
19
|
+
export { startDevServer, type DevServerInstance } from "./server/dev.js";
|
|
20
|
+
export { initProject, AVAILABLE_TEMPLATES, type TemplateName, type InitProjectOptions, type InitProjectResult, } from "./init.js";
|
|
21
|
+
export { registerBustaticModuleResolver, syncProjectTypes, } from "./runtime.js";
|
|
22
|
+
export { runCLI } from "./cli.js";
|
|
23
|
+
/**
|
|
24
|
+
* Programmatic helper to build a site.
|
|
25
|
+
*/
|
|
26
|
+
export declare function build(dir?: string, overrides?: Partial<BustaticConfig>, options?: BuildOptions): Promise<BuildResult>;
|
|
27
|
+
/**
|
|
28
|
+
* Programmatic helper to start dev server.
|
|
29
|
+
*/
|
|
30
|
+
export declare function dev(dir?: string, overrides?: Partial<BustaticConfig>): Promise<DevServerInstance>;
|