https://github.com/virtuoushub/deno-model-synthesisaurus
Tauri - bundling the frontend made with React using Deno with esbuild.
https://github.com/virtuoushub/deno-model-synthesisaurus
Last synced: over 1 year ago
JSON representation
Tauri - bundling the frontend made with React using Deno with esbuild.
- Host: GitHub
- URL: https://github.com/virtuoushub/deno-model-synthesisaurus
- Owner: virtuoushub
- Created: 2023-12-17T14:39:13.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-07T17:13:02.000Z (over 1 year ago)
- Last Synced: 2025-03-08T18:50:24.033Z (over 1 year ago)
- Language: TypeScript
- Size: 1.23 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Deno 🦕 + Tauri
Starter template for Tauri, bundling the frontend made with React using Deno with esbuild.
You can use TypeScript or JavaScript. With React or any other library, or just vanilla, with no extra steps.
- `src-tauri`: Rust backend
- `www`: Web frontend
- `build.ts`: Script to build your frontend
- `bundle.ts`: Script to bundle your frontend while developing
Prerequisites:
- [Rust](https://www.rust-lang.org/)
- [Deno](https://deno.land/)
- [Tauri](https://tauri.app/v1/api/cli)
- [Tauri os-specific dependencies](https://tauri.app/v1/guides/getting-started/prerequisites/#installing)
---
```sh
cargo install tauri-cli
```
Development:
```shell
cargo tauri dev
```
Building:
```shell
cargo tauri build
```
Formatting:
```shell
deno fmt www
cargo fmt
```
Linting:
```shell
deno lint www
cargo clippy
```
---
```sh
deno bench > "bench/deno_bench_$(date +'%s').log" --allow-sys=hostname
```
```sh
deno test --allow-sys=hostname
```
---
## gotchas
### `Error failed to bundle project: error running bundle_dmg.sh`
```sh
...
Finished release [optimized] target(s) in 2m 04s
Bundling tauri-deno-starter.app (/Users/pc/dev/code/tauri-playground/deno-model-synthesisaurus/src-tauri/target/release/bundle/macos/tauri-deno-starter.app)
Bundling tauri-deno-starter_0.1.0_x64.dmg (/Users/pc/dev/code/tauri-playground/deno-model-synthesisaurus/src-tauri/target/release/bundle/dmg/tauri-deno-starter_0.1.0_x64.dmg)
Running bundle_dmg.sh
Error failed to bundle project: error running bundle_dmg.sh
...
```
> This worked for me on macOS Sonoma:
>
> Give Terminal.app the permissions to control Finder.app: Go to `System-Settings` -> `Privacy & Security` -> `Automation` There select `Terminal` and below enable the switch `Finder`.
- https://github.com/tauri-apps/tauri/issues/3055#issuecomment-1866022065
---