0.3.1 • Published 1 year ago

@leanweb/fullstack v0.3.1

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Core

🚧 WIP

✨ Features

  • Templates with Svelte and Markdown
  • Markdown (.svx)
  • Hot reload
  • HTML asset bundling
  • Autogenerated environment variables types
  • Islands (coming soon)

Configuration

Fullstack is simple a vite plugin, you configure it like any other vite plugin

import { defineConfig } from "vite";
import { fullstack } from "@leanweb/fullstack";

export default defineConfig({
  plugins: [
    fullstack({
      /* ...config */
    }),
  ],
});

API

  • publicEnvPrefix: default PUBLIC\_
  • extensions: default .svelte, .svx
  • serverEntry: default src/entry.{js,ts,mjs,mts}
  • preprocess: see here
  • compilerOptions: see here

Svelte SSR

To import svelte files as SSR components include ssr query in file import i.e

import About from "./views/about.svelte?ssr";

Which also gives you TypeScript types for the SSR output.

Non SSR components can be imported normally i.e

import About from "./views/about.svelte";
0.3.0

1 year ago

0.3.1

1 year ago

0.2.0

1 year ago

0.1.4

1 year ago

0.1.5

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.0

1 year ago

0.1.1

1 year ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago