A vite template for building apps with elm and typescript.
- Hot Module Replacement thanks to vite and vite-plugin-elm.
- Vite static asset handling provided by vite-plugin-elm.
- Elm tooling installation via elm-tooling.
- CI pipeline.
- Netlify CD.
- Elm linting provided by elm-review.
- Configured Elm unit test environment.
- Automatic Ports and Flags type generation thanks to elm-ts-interop.
- Code linting and formatting on precommit (see config) provided by lintstaged and husky.
https://vite-elm-ts-template.netlify.app/
Either open it on your browser (codesandbox) or clone the repository.
npm i
npm run dev
npm run build
npm run generate:elm-ts
npm run test
npm run fmt
npm run lint:elm && npm run lint:ts
On pre-commit, changes are formatted and linted using Husky and lint-staged. See .lintstagedrc.mjs for more details.