All Projects → syonip → svelte-cordova-template

syonip / svelte-cordova-template

Licence: other
A degit template for a mobile svelte app using cordova and svelte-cordova

Programming Languages

HTML
75241 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to svelte-cordova-template

plate-app
🍛 What's on your Plate?
Stars: ✭ 49 (+96%)
Mutual labels:  svelte, svelte-v3
svelte-progressbar
A multiseries, SVG progressbar component made with Svelte
Stars: ✭ 85 (+240%)
Mutual labels:  svelte, svelte-v3
svelte-typescript
Typescript monorepo for Svelte v3 (preprocess, template, types)
Stars: ✭ 214 (+756%)
Mutual labels:  svelte, svelte-v3
rollup-plugin-svelte-hot
Fork of official rollup-plugin-svelte with added HMR support (for both Nollup or Rollup)
Stars: ✭ 49 (+96%)
Mutual labels:  svelte, svelte-v3
svelte-template-hot
Copy of official Svelte template with added HMR support
Stars: ✭ 61 (+144%)
Mutual labels:  svelte, svelte-v3
svelte-meteor-data
Reactively track Meteor data inside Svelte components
Stars: ✭ 14 (-44%)
Mutual labels:  svelte, svelte-v3
ui-svelte
A component library for Svelte
Stars: ✭ 18 (-28%)
Mutual labels:  svelte, svelte-v3
svelte-match-media
a matchMedia plugin for svelte 3
Stars: ✭ 38 (+52%)
Mutual labels:  svelte, svelte-v3
svelte-color-picker
A color picker component for svelte
Stars: ✭ 96 (+284%)
Mutual labels:  svelte, svelte-v3
BeatHub
Small, simple, and fast custom beatmap browser & downloader built with Svelte
Stars: ✭ 13 (-48%)
Mutual labels:  svelte, svelte-v3
svelte-multistep-form
Svelte MultiStep Form like, this component is still in beta stage
Stars: ✭ 29 (+16%)
Mutual labels:  svelte, svelte-v3
svelte-cordova-boilerplate
📱 Create a mobile app with this friendly Svelte boilerplate for apache cordova. Made easy your android app and ios app
Stars: ✭ 23 (-8%)
Mutual labels:  cordova, svelte
s-date-range-picker
📅 A date range picker built with Svelte
Stars: ✭ 13 (-48%)
Mutual labels:  svelte, svelte-v3
svelte-hash-router
tienpv222.github.io/svelte-hash-router
Stars: ✭ 37 (+48%)
Mutual labels:  svelte, svelte-v3
create-svelte-site
Create a Svelte or Sapper site in a single command.
Stars: ✭ 16 (-36%)
Mutual labels:  svelte
svelte-toy
A toy for svelte data stores
Stars: ✭ 73 (+192%)
Mutual labels:  svelte
go-omxremote
browser based omxplayer remote
Stars: ✭ 16 (-36%)
Mutual labels:  svelte
framework7-template-single-view
Deprecated! Framework7 single view starter app template
Stars: ✭ 34 (+36%)
Mutual labels:  cordova
15puzzle
A super simple PWA for 15 Puzzle game. Built with Svelte.
Stars: ✭ 29 (+16%)
Mutual labels:  svelte
ionic-vue-mobile-template-03
Hybrid app template built with vue, ionic and capacitor.
Stars: ✭ 62 (+148%)
Mutual labels:  cordova

Svelte Cordova template

This is a project template for Svelte apps running inside cordova apps. It lives at https://github.com/syonip/svelte-cordova-template.

To create a new project based on this template using degit:

npx degit syonip/svelte-cordova-template svelte-cordova-app

Note that you will need to have Node.js installed.

Get started

Install the dependencies...

cd svelte-cordova-app
npm install

Run local dev server (no cordova)

npm run dev

Add your cordova platform

cd src-cordova
cordova platform add android/ios

Develop on your device with hot reload

Back in the root folder:

npm run dev-android

or

npm run dev-ios

This will run the cordova project with a web view pointing to your workstation's IP.

You should see the message Cordova deviceready fired! if cordova loaded correctly.

Try to change something in App.svelte, and you should see the content reload in your device.

  • You need to have an emulator/device connected to adb
  • Your device has to be connected to the same wifi network as your workstation.

To build a prod version:

npm run build-android

or

npm run build-ios

To build the svelte bundle into the src-cordova folder, without actually building the native project

npm run bundle-android

or

npm run bundle-ios

IOS quirks

You need to add a build.json file in src-cordova folder with your developer id. More info at cordova docs

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].