perk-cli 0.1.0

The `perk` command: create apps, add pages, check them, and run a development server that reloads on save
perk-cli-0.1.0 is not a library.
Visit the last successful build: perk-cli-0.0.0

perk-cli

The perk command for Perk, a small web framework that renders pages in Rust and ships just enough JavaScript.

cargo install perk-cli
perk new my-app
cd my-app && perk dev

perk new writes a working app: a prerendered home page, a counter with browser state, a page that loads data from a Rust resolver, a layout, a component and tests. --tailwind turns on Tailwind.

Command What it does
perk new <path> Creates an app
perk add page blog/[slug] Adds a page; also add layout <dir> and add component <Name>
perk dev Runs the app; rebuilds, restarts and updates open pages on save
perk check Compiles every page and reports errors, without running Cargo
perk routes Lists routes, static or per-request, with JS and CSS bytes
perk build [dir] Release build, then prerenders into dist/
perk serve [addr] Runs a release build

Licensed under either of MIT or Apache-2.0, at your option.