site-svelte

Create Svelte Project

1 - Created new project from gitkraken (Readme.md, License.md only)

2 - Initialize New Codespace from GitHub.com

3 - Create a Svelte project with vite in GitHub Codespaces

npm init vite
  • installs create-vite@4.4.1 (y)
  • set project name (site-vite-project)
  • select Svelte, JavaScript (project is created)
    cd site-vite-project
    npm install
    npm run dev
    

Create GitHub Action to deploy the site to GitHub Pages

  • In the GitHub repo go to Settings/Pages at Source select GitHub Actions and click create your own

  • see the file .github\workflows\deploy-to-gh-pages

Top categories

svelte logo

Need a Svelte website built?

Hire a professional Svelte developer today.
Loading Svelte Themes