Web assets generated from Catala programs about the French law:
Add the package to your project:
yarn add catala-web-assets
Import the wanted file from the assets
folder:
require("catala-web-assets/assets/<file_name>");
In order to test and update the assets without having to publish a new package version you can:
# In this repo
yarn link
# In the website repo
yarn link catala-web-assets
The assets
folder is generated from the Catala compiler. To generate these
assets, please refer to the dedicated section of the Catala compiler
INSTALL.md
.
Important
If the generated schemas is intended to be used with
@codegouvfr/rjsf-dsfr
, please
refer to the Notes on writing
schemas
section.