Built a block? Share it with the world
Once you've built a block, you can add it to the Block Hub, so that:
To publish a block on the hub, the initial process is as follows:
blockprotocol
repository@
symbol (e.g. @myusername
)The JSON metadata file should look like this:
{
// REQUIRED - path to the repository with your block's source code
repository: "https://github.com/hashintel/hash.git",
// REQUIRED - commit hash (pins block to a specific version)
commit: "adb915bf8fc4f84e33a2cd21f217225e50c3d7fa",
// IF NEEDED - see below
distDir: "dist",
folder: "packages/blocks/block-embed",
workspace: "@hashintel/block-embed",
}
workspace
folder
pathdistDir
where the build artifacts will appearNote
We assume that running yarn install && yarn build
will build your block (after switching to the relevant folder/workspace, if provided).
The specified distDir
will be relative to the workspace directory or folder, if provided.