elm-spa cli
the command-line interface for elm-spa
installation
npm install -g elm-spa@latest
usage
$ elm-spa help
elm-spa – version 6.0.4
Commands:
elm-spa new . . . . . . . . . create a new project
elm-spa add <url> . . . . . . . . create a new page
elm-spa build . . . . . . one-time production build
elm-spa server . . . . . . start a live dev server
Other commands:
elm-spa gen . . . . generates code without elm make
elm-spa watch . . . . runs elm-spa gen as you code
Visit https://elm-spa.dev for more!
learn more
Check out the official guide at https://elm-spa.dev!
contributing
The CLI is written with TypeScript + NodeJS. Here's how you can get started contributing:
git clone git@github.com:ryannhg/elm-spa
cd elm-spa/src/cli
npm start
npm run dev
npm run build
npm run test
playing with the CLI locally
Here's how you can make the elm-spa
command work with your local build of this
repo.
npm remove -g elm-spa
npm link