0.1.6 • Published 4 years ago
svenerate v0.1.6
sven
npm i -g svelte svenerate
sven
is a small static site generator for svelte.
It implements a very small number of features. If you have a complex use-case, it may be better to evsluate one of these:
Quickstart
There are a few different ways you can use sven
.
- cli (coming soon)
- manual (coming soon)
- rollup
Rollup
// rollup.config.js
import { Sven } from 'svenerate';
export default new Sven().generateConfig()
API
Under the hood, all sven
is doing is dynamically generating rollup config. Here are the high-level steps it performs:
- generates an entrypoint for every
.svelte
file in thepages
directory - generates a
.js
file for every entrypoint into theassets
directory - generates a
.html
file for each entrypoint into thepublic
directory - generates a
.css
file for every entrypoint into theassets
directory