0.1.0 • Published 5 months ago
@barelyhuman/prev v0.1.0
@barelyhuman/prev
Opinionated Execution Engine for preact-island-plugins
Warning: This is still in alpha development, things might change, avoid using it for production
Note: It is not recommended to use this CLI without the barelyhuman/prev template, since you'll have to configure your structure accordingly anyway. Easier to clone it instead.
Installation
npm add @barelyhuman/prev
# or
yarn add @barelyhuman/prev
# or
pnpm add @barelyhuman/prev
Usage
The CLI has basically 3 functions,
- Create a Server based on the Kernel(HonoJS)
- Allow live reloading if the
--dev
flag is passed.
npx @barelyhuman/prev ./path/to/root-of-project
npx @barelyhuman/prev --dev ./path/to/root-of-project
- Inject Plugins, you can add in simple plugins to improve the DX like adding one for goober/twind for css-in-js. Or even postcss to add in something like tailwindcss
Documentation
TBD