We use this repo to develop, test and demo the calesi plugins. It is a monorepo with two workspaces configured in package.json
:
"workspaces": [
"incidents-app",
"plugins/*"
],
incidents-app
is the reference app we use to showcase all calesi effects; added here as a git submodule.plugins/*
is place to put in your CAP plugin packages; as standard git clones.
As a monorepo it allows to refer to all packages in one of the above folders with standard npm dependencies. This is particularly helpful when your plugin is not yet published.
To get started clone the repository and run npm install:
git clone --recursive https://github.com/cap-js/calesi.git
Add your work-in-progress plugin repo into the ./plugins
folder:
git clone https://github.com/cap-js/attachments.git plugins/attachments
Use your plugin with the enclosed incidents-app
as if it had been released already:
cd incidents-app
npm add @cap-js/attachments #> will be linked to ../plugins/attachements
cds watch #... as usual
Go on adding plugin-specific content...