Everything you need to build a Svelte project, powered by sv.
If you're seeing this, you've probably already done this step. Congrats!
# create a new project
npx sv create my-appTo recreate this project with the same configuration:
# recreate this project
pnpm dlx sv@0.15.1 create --template minimal --types ts --add tailwindcss="plugins:none" prettier eslint --install pnpm ./Once you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --openTo create a production version of your app:
npm run buildYou can preview the production build with npm run preview.
To deploy your app, you may need to install an adapter for your target environment.
Build and run the app locally:
docker build -t technikpool:dev .
docker run --rm -p 3000:3000 technikpool:devThis repo includes a release helper that updates package.json version, commits, tags, and pushes.
pnpm release patch
pnpm release minor
pnpm release major
# or set an explicit version
pnpm release 1.2.3Pushing a git tag like v1.2.3 triggers the GitHub Action that builds and pushes a Docker Hub image tagged as dev and 1.2.3.
GitHub repository configuration required for Docker Hub publishing:
DOCKERHUB_TOKEN(secret): Docker Hub access tokenDOCKERHUB_USERNAME(secret): Docker Hub username
The workflow publishes docker.io/hrueger/technikpool and tags images as dev and the semver version (e.g. 1.2.3 for git tag v1.2.3).