/elm-review-install-code

Elm review rule to add magic token code to a Lamdera app

Primary LanguageElm

Elm-review-install-code

May 14, 2024

This aim of this project is to write a set of elm-review rules which make it easy to add new abilities to an existing Elm app.

Consider, for example, the "magic-token" authentification system for Lamdera apps at jxxcarlson/kitchen-sink. While the code from this app can be extracted by hand and implanted in another, that process is laborious, time-consuming, and utterly routine. In other words, it is a task best carried out by a computer program.

The project is still in development, so expect it to change a lot over the next weeks and likely months. Consider it an experiment.

To test the review code in its current state, clone the project, make sure that elm-review is installed, and run npx elm-review at the root of the project. A total of five changes should be made to the Lamdera code in src.

See the comments at the top of Install/ClauseInCase.elm for more information.

Once the code stabilized, it will be published on the package manager.

Note. The Lamdera code is not working: the Lamdera codecs have bee removed for the time being so that elm-review will run. An issue to be addresed.