More documentation at https://elm-spa.dev
You can get this site up and running with one command:
npm start
There are a handful of commands in the package.json.
Command | Description |
---|---|
npm run dev |
Run a dev server and automatically build changes. |
npm run test:watch |
Run tests as you code. |
npm run build |
Build the site for production. |
npm run test |
Run the test suite once, great for CI |
After you run npm run build
, the contents of the public
folder can be hosted as a static site. If you haven't hosted a static site before, I'd recommend using Netlify (it's free!)
Add a netlify.toml
file next to this README, for standard SPA routing:
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
Build command: npm run build
Publish directory: public