-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
83c5ff0
commit f60700d
Showing
11 changed files
with
91 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
open_collective: denosaurs | ||
github: denosaurs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Publish | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: denoland/setup-deno@v1 | ||
- run: deno publish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
{ | ||
"name": "@webview/webview", | ||
"version": "0.8.0", | ||
"exports": "./mod.ts", | ||
"lock": false, | ||
"tasks": { | ||
"check": "deno check --unstable mod.ts", | ||
"fmt": "deno fmt --unstable", | ||
"fmt:check": "deno fmt --unstable --check", | ||
"lint": "deno lint --unstable", | ||
"test:doc": "deno test -A --unstable --doc", | ||
"build": "deno run -A --unstable script/build.ts", | ||
"run": "deno task build && export PLUGIN_URL=\"./build/\" && deno run -A --unstable", | ||
"run:fast": "export PLUGIN_URL=\"./build/\" && deno run -A --unstable" | ||
"check": "deno check mod.ts", | ||
"fmt": "deno fmt", | ||
"fmt:check": "deno fmt --check", | ||
"lint": "deno lint", | ||
"test:doc": "deno test -A --unstable-ffi --doc --import-map test_import_map.json", | ||
"build": "deno run -A script/build.ts", | ||
"run": "deno task build && export PLUGIN_URL=\"./build/\" && deno run -A --unstable-ffi", | ||
"run:fast": "export PLUGIN_URL=\"./build/\" && deno run -A --unstable-ffi" | ||
}, | ||
"unstable": ["ffi"], | ||
"fmt": { | ||
"files": { | ||
"exclude": [ | ||
"webview/" | ||
] | ||
} | ||
} | ||
"exclude": ["webview/"] | ||
}, | ||
"imports": { "@denosaurs/plug": "jsr:@denosaurs/plug@^1.0.5" } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,27 @@ | ||
/** | ||
* Webview is a tiny cross-platform library to make web-based GUIs for desktop | ||
* applications. | ||
* | ||
* @example | ||
* ``` | ||
* import { Webview } from "@webview/webview"; | ||
* | ||
* const html = ` | ||
* <html> | ||
* <body> | ||
* <h1>Hello from deno v${Deno.version.deno}</h1> | ||
* </body> | ||
* </html> | ||
* `; | ||
* | ||
* const webview = new Webview(); | ||
* | ||
* webview.navigate(`data:text/html,${encodeURIComponent(html)}`); | ||
* webview.run(); | ||
* ``` | ||
* | ||
* @module | ||
*/ | ||
|
||
export * from "./src/webview.ts"; | ||
export { preload, unload } from "./src/ffi.ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"imports": { | ||
"@webview/webview": "./mod.ts", | ||
"@denosaurs/plug": "jsr:@denosaurs/plug@^1.0.5" | ||
} | ||
} |