Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 919 Bytes

cookbooks.md

File metadata and controls

38 lines (28 loc) · 919 Bytes

Developing Cookbooks

Cookbooks should only have the necessary code for illustrating a scenario. code should follow KISS principle with good comments

Getting started

see development for initial setup

Running an existing cookbook

cd cookbooks/app-react
pnpm dev

Creating a new cookbook

cp -r cookbooks/app-react cookbooks/app-react-2
rm cookbooks/app-react-2/CHANGELOG.md
  • change name in package.json
  • reset the version to 0.0.0 in package.json

Dependencies

when adding internal dependencies, the tsconfig.json should also reflect those packages.

{
  "references": [
    { "path": "../../packages/react/app" },
    { "path": "../../packages/cli" },
  ],
}

the CLI might not register changes in dependencies, sp good practice is to rebuild all packages when changes are made