Skip to content

feat(renderer): implement EJS renderer skeleton to emit pages & lib files #8

@thopatevijay

Description

@thopatevijay
  • Add packages/cli/src/renderer.ts.

  • Provide EJS templates under /templates/shadcn:

    • pages/_app.ejs

    • pages/index.ejs

    • pages/instruction.ejs

    • lib/anchorClient.ejs

    • lib/pdaHelpers.ejs

    • components/FormControls minimal

  • Implement renderToDir(ir, outDir, opts) that writes files accordingly.

Acceptance criteria

  • Running the render function with the sample IR writes a package.json, pages/_app.tsx, one instruction page, and lib/anchorClient.ts in the target outDir.

  • Generated files contain program ID and instruction placeholders where expected.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions