-
Notifications
You must be signed in to change notification settings - Fork 0
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
fcbe7ff
commit 76ada3b
Showing
8 changed files
with
46 additions
and
34 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
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 |
---|---|---|
|
@@ -19,16 +19,9 @@ jobs: | |
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
- name: Setup pNPM | ||
uses: pnpm/action-setup@v2 | ||
- uses: oven-sh/setup-bun@v2 | ||
with: | ||
version: 9 | ||
- name: Setup NodeJS | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 22 | ||
cache: 'pnpm' | ||
cache-dependency-path: pnpm-lock.yaml | ||
bun-version: latest | ||
- name: Install dependencies for Tauri (ubuntu only) | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
|
@@ -39,9 +32,9 @@ jobs: | |
with: | ||
path: | | ||
node_modules | ||
~/.pnpm-store | ||
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }} | ||
restore-keys: ${{ runner.os }}-pnpm- | ||
~/.bun | ||
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lockb') }} | ||
restore-keys: ${{ runner.os }}-bun- | ||
- name: Load cached Cargo | ||
uses: actions/cache@v3 | ||
with: | ||
|
@@ -54,9 +47,9 @@ jobs: | |
key: ${{ runner.os }}-cargo-${{ hashFiles('src-tauri/Cargo.lock') }} | ||
restore-keys: ${{ runner.os }}-cargo- | ||
- name: Install dependencies | ||
run: pnpm install | ||
run: bun install | ||
- name: Build the app | ||
run: pnpm tauri build | ||
run: bun tauri build | ||
- name: (.dmg) Upload files to a GitHub release | ||
if: matrix.os == 'macos-latest' | ||
uses: svenstaro/[email protected] | ||
|
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,7 +1,30 @@ | ||
# Tauri + SvelteKit + TypeScript | ||
# WD | ||
|
||
This template should help get you started developing with Tauri, SvelteKit and TypeScript in Vite. | ||
> WD stands for whatever you want it to stand for | ||
## Recommended IDE Setup | ||
Updated for Reefscape 2025. | ||
|
||
[VS Code](https://code.visualstudio.com/) + [Svelte](https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode) + [Tauri](https://marketplace.visualstudio.com/items?itemName=tauri-apps.tauri-vscode) + [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer). | ||
Behold, in all of its glory (we only have dark mode for now): | ||
|
||
![](./screenshot.png) | ||
![Reefscape 2025](./reefscape.png) | ||
|
||
## Developing | ||
|
||
We use [Bun](https://bun.sh/) | ||
|
||
Once you've installed dependencies with `bun install`, start a development server: | ||
|
||
```bash | ||
bun run tauri dev | ||
``` | ||
|
||
## Building | ||
|
||
To create a production version of the app: | ||
|
||
```bash | ||
bun run tauri build | ||
``` | ||
|
||
You can preview the production build with `bun run preview`. |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,6 +1,8 @@ | ||
<script lang="ts"> | ||
import '../app.css'; | ||
let { children } = $props(); | ||
import "../app.css"; | ||
import { ModeWatcher } from "mode-watcher"; | ||
let { children } = $props(); | ||
</script> | ||
|
||
<ModeWatcher /> | ||
{@render children()} |