Demo for the blog post "Cross-Platform Sveltekit & Capacitor Application: Yes It's Possible!"
  • Swift 42.8%
  • Java 18.3%
  • JavaScript 12.8%
  • Ruby 9.9%
  • Svelte 6.6%
  • Other 9.6%
Find a file
2023-03-27 13:53:59 -07:00
.idea Initializing project 2023-03-27 13:53:59 -07:00
android Initializing project 2023-03-27 13:53:59 -07:00
ios Initializing project 2023-03-27 13:53:59 -07:00
src Initializing project 2023-03-27 13:53:59 -07:00
static Initializing project 2023-03-27 13:53:59 -07:00
.gitignore Initializing project 2023-03-27 13:53:59 -07:00
.npmrc Initializing project 2023-03-27 13:53:59 -07:00
capacitor.config.ts Initializing project 2023-03-27 13:53:59 -07:00
package-lock.json Initializing project 2023-03-27 13:53:59 -07:00
package.json Initializing project 2023-03-27 13:53:59 -07:00
README.md Initializing project 2023-03-27 13:53:59 -07:00
svelte.config.js Initializing project 2023-03-27 13:53:59 -07:00
tsconfig.json Initializing project 2023-03-27 13:53:59 -07:00
vite.config.ts Initializing project 2023-03-27 13:53:59 -07:00

create-svelte

Everything you need to build a Svelte project, powered by create-svelte.

Creating a project

If you're seeing this, you've probably already done this step. Congrats!

# create a new project in the current directory
npm create svelte@latest

# create a new project in my-app
npm create svelte@latest my-app

Developing

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 -- --open

Building

To create a production version of your app:

npm run build

You can preview the production build with npm run preview.

To deploy your app, you may need to install an adapter for your target environment.