create-lineadraw
v0.3.0
Published
Scaffold a Linea marketplace repository — npm create lineadraw
Readme
create-lineadraw
Scaffold a Linea marketplace repository — a git repo of parametric blocks and macro commands the Linea editor can browse and install from.
npm create lineadraw my-blocksThis creates my-blocks/ with:
blocks/+commands/— your modules (a typed sample block included)tsconfig.jsonwired to thelineadrawtypings, soimport { defineBlock } from "lineadraw"type-checks in any editor.lineadraw/marketplace.json— the generated catalog the editor reads.github/workflows/marketplace.yml— CI that validates every module and fails when the committed catalog is stalepackage.jsonscripts:npm run manifest(regenerate the catalog) andnpm run check(validate only)
The scaffolder is deliberately thin: it writes a minimal package.json,
runs git init and npm install, then delegates all content to
lineadraw init — so for an
existing project, run that instead:
npm i -D lineadraw && npx lineadraw initNext steps
- Edit the sample in
blocks/, or add*.block.ts/*.cmd.tsmodules. npm run manifest, commit, push to GitHub.- In the editor: Library → Marketplace tab → +
→ enter
owner/repo. Private repos work with a fine-grained personal access token (read-only Contents).
Authoring guide and real examples: github.com/lineadraw/lineadraw.
