vite-elm-template
test
vite-elm-template | test | |
---|---|---|
4 | 3 | |
121 | 232 | |
- | 0.4% | |
4.4 | 5.4 | |
3 months ago | 2 months ago | |
Elm | Elm | |
MIT License | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
vite-elm-template
-
Learning Elm because of work into Vue/React but why is the code so ugly?
After that point I started looking into how Elm works from the web dev perspective with resources like Elm in Action and Frontend Masters courses (first working in ellie-app-for-elm-dev then upgrading to vite-elm-template).
- Easy Questions / Beginners Thread (Week of 2022-08-08)
-
Utilizing Elm in a Web Worker
Using vanilla HTML and JS is nice, but most of the time at work or in larger projects we're using some sort of build tooling to have a more streamlined experience. I'm personally a big fan of Vite, the frontend tooling solution by the creator of Vue. I maintain a Vite template for building Elm applications, which utilized the excellent Elm plugin for Vite to achieve hot module reload and directly importing our .elm files into our Javascript.
-
Setting up an Elm project in 2022
This was a template I created to scratch my own itch. As a Vue developer, I love working with Vite, and really wanted a base template for Vite that I could use to build Elm applications. vite-elm-template is a basic Vite template intended to get you started writing in Elm without having to spend time configuring everything yourself. Unlike elm-pages or elm-spa, it's not a framework of any sort. If you want to bring in single-page application features, or other functionalities, you will have to build those in yourself. That said, it's perfect for getting started with a basic environment.
test
-
Setting up an Elm project in 2022
The de-facto standard for testing an Elm application is elm-test. However, as noted in the README:
-
Porting Elm to WebAssembly
Once all that handwritten C code was solid, I needed to make sure the C generated from Elm was working properly. I found the source for the core library's unit tests and decided to port them into my project and add some of my own tests. You can run the tests in WebAssembly in your browser too. (Funnily enough, one of the biggest challenges was getting the Elm Test framework itself to run! The framework is more complex than the tests themselves. I still need to come back to the fuzzer tests!)
-
Causing Bedlam in Elm
Lesson Learned: Elm has built in recursion improvements for a variety of positive reasons, and you should think in recursion to solve looping problems. Use property/fuzz tests and bounds checking with early exit to prevent this from locking up your UI (i.e if > 9000, omg abort). If you’re algorithm is reasonable, but the data set is just gigantic, offload to a server instead for more horsepower. Or Workers if you don’t have server chops, can’t upload the large data, or don’t trust your server devs. (“But Doc, I’m the server dev!” Good joke. Ever̸y̴b̸ody laugh. Roll on s̵͓̆nâ̶̱re drum. Curtains.)
What are some alternatives?
elm-test-rs - Fast and portable executable to run your Elm tests
Google Test - GoogleTest - Google Testing and Mocking Framework
node-test-runner - Runs elm-test suites from Node.js. Get it with npm install -g elm-test
ut - C++20 μ(micro)/Unit Testing Framework
elm-webpack-loader - Webpack loader for the Elm programming language.
CppUTest - CppUTest unit testing and mocking framework for C/C++
elm-format - elm-format formats Elm source code according to a standard set of rules based on the official Elm Style Guide
Catch - A modern, C++-native, test framework for unit-tests, TDD and BDD - using C++14, C++17 and later (C++11 support is in v2.x branch, and C++03 on the Catch1.x branch)
browser - Create Elm programs that run in browsers!
Google Mock
ellie - The Elm Live Editor
benchmark - A microbenchmark support library