sveltail v0.1.2
A Cross Platform Svelte Solution allowing you to develop Electron, Cordova, NativeScript apps from a single code base.
Uses Tailwind CSS.
Installation
Notes: 1. Please use npm or yarn depending on your preference for the following instructions.
- Create a new folder and open it in terminal
- Run
npm init
and follow the instructions Add Sveltail to your project ocally in your project (Recommended)
- Run
yarn add sveltail --dev
ornpm install sveltail --also=dev
. Add the following to your "package.json" file in project folder.
"scripts": { // Other Scripts here "sveltail": "sveltail" }
and runyarn sveltail config
ornpm run sveltail config
and follow instructions.Or
You can also run Sveltail directly
npx sveltail config
Note: Adding sveltail globally is not recommended as sveltail also comes packed with UI components, that are irrelevant for CLI usage only, and things might not work as expected.
- Run
Svelte CLI will automatically create the
svelte.config.js
files and other recommended settings for the project and some useful scripts to package.json in the root folder.- Add cordova mode
yarn sveltail add --cordova
ornpx sveltail add --cordova
. - Take cordova for a test drive
yarn sveltail dev --cordova --ios
oryarn sveltail dev --cordova --ios
or use the script added by sveltail to your package.json
yarn st-dev-cor-ios`.
Test Drive
- You can quickly clone the repo at https://github.com/newCodeRunner/sveltail-example.git.
- Run
yarn install
(Recommended) ornpm install
. - Run
yarn st-dev
to test the app and UI out in browser. - Run
yarn st-dev-cor-ios
to test the app and UI out in Cordova.
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago