Our Elm "library" for sharing code :
- between Rudder and plugins
- factorized data types and logics, split into modules (to a certain extent, some are "components" which require Nested TEA)
This git repo is installed using elm-git-install :
- to have our own versioning semantic, and not the one enforced by Elm ("Semantic versioning")
- to be able to facilitate development on the library by changing git branch
To install :
-
add a
elm-git.jsonfile next to theelm.jsonfile, with the desired version of this library :{ "git-dependencies": { "direct": { "https://github.com/Normation/rudder-elm-library.git": "x.x.x" }, "indirect": {} } } -
add the
elm-github-installnpm package to your npm project -
add an npm script to run
elm-git-install:{ "scripts": { "elm-git-install": "cd elm && elm-git-install" }, ... } -
add
npm run elm-git-installto your build script
- Elm dependency management is not automatic when installing this library, it will require dependencies of modules that are imported to be installed