beet_build 0.0.6-rc.2

The Unistack Metaframework 🦄
docs.rs failed to build beet_build-0.0.6-rc.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: beet_build-0.0.7

Beet Build

flowchart TD
	A[File Changed] --> B[SourceFile]
	B --> C[ParseRsxTokens]
	C --> D[GenerateLangSnippets]
	C --> E[Generate RsxSnippets]
	C --> F[HashFileExprs]
	F -- changed --> G[Generate Routes]

Plugins for building a beet application, currently only for building websites. The build process includes reactively passing information between the cli and the application.

File Snippets

Export the lang snippets and rsx snippets collected by statically analyzing files, see SnippetsPlugin.

Triggers:

  • Startup - load_all_template_files
  • A File specified in [WorkspaceConfig] changes - load_changed_template_files

Route Codegen

Export the routes specified in RouteCodegenConfig into their respective paths, for example generating collection code for routes in src/pages/.. into files in src/codegen/.., see RouteCodegenPlugin.

Triggers:

  • Startup - RouteCodegenConfig::collections
  • A FileExprHash for a file specified in [RouteCodegenConfig] changes.

Recompile Server

Recompile the server.

Triggers:

  • A FileExprHash for a file specified in [WorkspaceConfig] changes, including output from route codegen.

Server Output

Run the server with the export-static flag, which will generate ssg html files and a ClientIslandMap for each route.

Triggers:

  • The server recompiles.
  • The static scene output changes.

Client Island Codegen

Generate the client islands entrypoint codegen, which will load/mount client islands as required. This step always results in recompilation of the wasm binary.

Triggers:

  • The ClientIslandMap changed