Getting started with Poveste
Overview
poveste is the Romanian word for "story", pronounced
/poˈveste/(po-VES-teh). Coming from histoire? See the migration guide.
Poveste is a tool to generate stories applications (or "books").
Learn more about Poveste here »
Installation
Install the poveste and @poveste/plugin-svelte packages into your project:
pnpm i -D poveste @poveste/plugin-svelte
# OR
npm i -D poveste @poveste/plugin-svelte
# OR
yarn add -D poveste @poveste/plugin-svelteCreate a poveste.config.js or poveste.config.ts file in your project root to enable the Svelte plugin:
import { HstSvelte } from '@poveste/plugin-svelte'
import { defineConfig } from 'poveste'
export default defineConfig({
plugins: [
HstSvelte(),
],
})Command Line Interface
Poveste provides the following commands:
poveste dev: starts a development server with hot-reloadpoveste build: builds the app for productionpoveste preview: starts an HTTP server that serves the built app
You can add these to your package.json like this:
{
"scripts": {
"story:dev": "poveste dev",
"story:build": "poveste build",
"story:preview": "poveste preview"
}
}And then run them with npm run story:dev or npm run story:build.
You can specify additional CLI options like --port. For a full list of CLI options, run npx poveste --help in your project.
Configuration
Learn more about configuring Poveste here.
Community
If you have questions or need help, reach out to the community on GitHub Discussions.
Try it in a live editor