fuz_template Svelte Themes

Fuz_template

a static web app and Node library template for SvelteKit with TypeScript, Svelte, Vite, esbuild, Fuz, and Gro ❄

@fuzdev/fuz_template ❄

a friendly pixelated spider facing you

a static web app and Node library template with TypeScript, Svelte, SvelteKit, Vite, esbuild, Gro, and Fuz UI

template.fuz.dev

contents

usage

This project uses SvelteKit with the static adapter and Vite, so the normal commands like vite dev work as expected. It also uses Gro for tasks like deploying and more.

If you're logged into GitHub, click "Use this template" above or clone with degit:

npx degit fuzdev/fuz_template cooltoy
cd cooltoy
npm i
# then
vite dev
# or
npm run dev
# or
gro dev # npm i -g @ryanatkn/gro
gro sync # called by `gro dev`, refreshes generated files and calls `svelte-kit sync`

learn more about SvelteKit, Vite, Gro, and Fuz UI

To opt into publishing the package.json and a map of the src/ directory to static/.well-known/ during the build using this Gro feature. This can leak sensitive information, so enable it only if you intend it to be public!

// package.json
+ "public": true, // add this to opt into publishing public `.well-known` files
- "private": true, // if you want to enable public npm publishing, remove this

Windows will not be suported because I chose Bash instead - Fuz recommends WSL

The template includes @sveltejs/adapter-static so it can deploy with no further configuration. To learn how to swap it out for another deployment target, see the SvelteKit adapter docs.

To make it your own, change @fuzdev/fuz_template and template.fuz.dev to your project name in the following files:

Then run npm i to update package-lock.json.

Optionally add a license file and package.json value, like "license": "MIT".

build

npm run build
# or
gro build

See Gro's build docs for more.

test

npm test
# or
gro test
gro test filepattern1 filepatternB
gro test -- --forwarded-args 'to vitest'

See Vitest, src/lib/example.test.ts, and Gro's test docs for more.

deploy

Deploy (build, commit, and push) to the deploy branch, e.g. for GitHub Pages:

npm i -D @sveltejs/package # enables Gro's library plugin by default
npm run deploy
# or
gro deploy

credits 🐢🐢🐢

SvelteSvelteKitViteesbuildVitestTypeScriptESLintPrettierFuz CSSFuzGro@fuzdev/fuz_utilZod ∙ & more

🐦

Top categories

Loading Svelte Themes