Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

skooch/glitch-svelte

Repository files navigation

glitch-svelte

This is a WIP, it's not production ready, don't use it

Everything you need to build a Svelte project on glitch.com, powered by create-svelte and Tailwind.

Remixing on Glitch

Glitch will attempt to run npm install despite the version of Node that Glitch uses being not new enough to support SvelteKit. Glitch will still run whatever is in package.json's start field anyway afterwards, at which point we delete node_modules, enable pnpm, and install the correct version of Node. This means your first startup time will be longer than usual if your app doesn't have a production build. Subsequent launches will be faster after a build is completed.

Glitch uses docker containers of an old version of Ubuntu, which uses an old version of the Linux kernel and associated glibc, Node 16 is the newest version of node that will ever run on Glitch, unless they update their container.

Developing

Run ./glitch-dev.sh if you're using the terminal on Glitch.

If you're developing in a different environment, install dependencies with pnpm install, start a development server:

pnpm run dev

# or start the server and open the app in a new browser tab
pnpm run dev -- --open

Building

To create a production version of your app:

pnpm run build

Glitch will attempt to run the production built version by default, ensure you build your changes. If it can't find a production build, it will fall back to the development version. You can force it to always run in development mode by changing the start command in package.json to ./glitch-dev.sh

About

A basic template for glitch.com using SvelteKit and Tailwind

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published