0.1.6 • Published 4 years ago

svenerate v0.1.6

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

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 the pages directory
  • generates a .js file for every entrypoint into the assets directory
  • generates a .html file for each entrypoint into the public directory
  • generates a .css file for every entrypoint into the assets directory