JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 39
  • Score
    100M100P100Q56671F
  • License Apache-2.0

Web assets generated from Catala programs about the French law

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@catala-lang/catala-web-assets) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    catala-web-assets

    Web assets generated from Catala programs about the French law:

    To use

    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 local dev

    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

    Generating 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.

    Websites using this assets

    [!IMPORTANT] If the generated schemas is intended to be used with @codegouvfr/rjsf-dsfr, please refer to the Notes on writing schemas section.