feature/tauri-js-rs
md 54 lines 1.34 KB
Rendered Raw
1 # tauri-on-bazel
2
3 > {fast, correct} + {optimized, secure} = {tauri-on-bazel}
4
5 This is a small repository to demonstrate how to build a [Tauri](https://tauri.app/) v1.5 project using [NextJS](https://nextjs.org/) v14 + Typescript + Tailwindcss as a frontend framework with [Bazel](https://bazel.build/) v6.
6
7 ![Screenshot 0 of Tauri on Bazel with NextJS, TypeScript, and Tailwindcss.](/screenshots/0.png?raw=true "Screenshot 0 of Tauri on Bazel with NextJS, TypeScript, and Tailwindcss.")
8 ![Screenshot 1 of Tauri on Bazel with NextJS, TypeScript, and Tailwindcss.](/screenshots/1.png?raw=true "Screenshot 1 of Tauri on Bazel with NextJS, TypeScript, and Tailwindcss.")
9
10 ## Before running it
11
12 This project is using `git LFS`. After cloning it, remember to run the following commands.
13
14 ```bash
15 git lfs install
16 git lfs pull
17 ```
18
19 ## How to use
20
21 To run Tauri in development mode, just run the following:
22
23 ```bash
24 bazel run //frontend/desktop:dev
25 ```
26
27 To bundle your app, just run:
28
29 ```bash
30 bazel run //frontend/desktop:bundle
31 ```
32
33 This has been tested successfully on macOS M1.
34
35 ## Storybook
36
37 ```bash
38 pnpm run storybook
39 ```
40
41 ## Output
42
43 You can retrieve the output app from `dist/bin/bundle.sh.runfiles/app/src-tauri/target/release/bundle`.
44
45 ## Credits
46
47 Original [repo](https://github.com/marmos91/tauri-bazel-next-typescript).
48
49 ## Without Bazel
50
51 Run from pnpm
52 ```
53 pnpm tauri dev
54 ```