1 год назад
История
README.md
Sauer
Sauer is a command-line scaffolder for Kraut-powered Karax SPAs.
Installation
Install Sauer with Nimble:
$ nimble install -y sauer
or add to your .nimble file:
requires "sauer >= 1.0.0"
Usage
- Generate a new Nim project with
nimble init
. - In the project directory, run
sauer init
. - Build the app by running
nimble make
orsauer make
. - See the app in action by running
nimble serve
orsauer serve
and openinghttp://localhost:1337/app.html#/"
in your browser. - To add a new page, run
sauer page new mynewpage --route="#/my/new/location/"
and rebuild the app. You should now see your page onhttp://localhost:1337/app.html#/my/new/location/
. - To add a page with URL params, use placeholders:
sauer page new cat --route="#/cats/{catName}/"
- During development, run
sauer make --watch --serve
to automatically rebuild your app when it’s source is updated and serve it locally.
Конвейеры
0 успешных
0 с ошибкой