Skip to content

josiahking/tabrisjs-webview-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tabrisjs-webview-demo

Launch a website using webview

Run

If you haven't done so already, install the Tabris CLI on your machine:

npm i tabris-cli -g

Then in the project directory, type:

npm start

This will start a Tabris.js code server at a free port and print its URL to the console. The app code can then be side-loaded in the developer app by entering that URL.

Alternatively you can also call the Tabris CLI directly:

tabris serve -a

This the same as running npm start. The -a switch enables automatic reload whenever a source file changes.

Test

This project includes a ESLint configuration that helps preventing common mistakes in your code. Most IDEs can display ESLint-based hints directly in the editor, but you can also run the tool explicitly via:

npm test

The initial rules defined in .eslintrc are supposed to warn against problematic patterns, but not enforce a strict code style. You may want to adjust them according to your taste.

Debugging

Android

Tabris on Android supports any debugger that uses the V8 inspector protocol. This includes Visual Studio Code, WebStorm and the Chrome Browser. More information can be found here.

iOS

On iOS, the Safari developer tools can be used for debugging.

Build

The app can be built using the online build service at tabrisjs.com or locally using Tabris.js CLI.

See Building a Tabris.js App for more information.