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 initand follow the instructions Add Sveltail to your project ocally in your project (Recommended)
- Run
yarn add sveltail --devornpm install sveltail --also=dev. Add the following to your "package.json" file in project folder.
"scripts": { // Other Scripts here "sveltail": "sveltail" }and runyarn sveltail configornpm run sveltail configand 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.jsfiles and other recommended settings for the project and some useful scripts to package.json in the root folder.- Add cordova mode
yarn sveltail add --cordovaornpx sveltail add --cordova. - Take cordova for a test drive
yarn sveltail dev --cordova --iosoryarn sveltail dev --cordova --iosor use the script added by sveltail to your package.jsonyarn 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-devto test the app and UI out in browser. - Run
yarn st-dev-cor-iosto test the app and UI out in Cordova.
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago