@dot-web-shell/cli
v1.0.48
Published
Generate Code to create MAUI based Web View App
Downloads
85
Readme
@dot-web-shell/cli
Generates Code to create MAUI based Web View App.
What is dot-web-shell
Dot-Web-Shell is a webview based app (similar to capacitor/cordova), completely written in .NET 8. While the app starts a URL in a web view, nativeShell
is exposed on the window object that you can interact with .NET classes.
Installation
- Create an empty folder where you want your app to reside.
- Run
npm init
- Run
npm install -s @dot-web-shell/cli
- Run
node ./node_modules/@dot-web-shell/cli init
- Commit your changes to git repo
- Run
npm run sync
Setup CI
npm version patch
will sync the version and push the code in repository.
Getting Started
Dot-Web-Shell's WebView exposes nativeShell
property on the window
.
Execute Simple Script
const getName = async () => {
const clr = await import("clr");
};
const result = await window.nativeShell.invoke(getName);