Skip to content

Commit

Permalink
📝 swag
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatXliner committed Jan 19, 2025
1 parent fcbe7ff commit 76ada3b
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 34 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -40,9 +33,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:
Expand All @@ -55,9 +48,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 --debug
run: bun tauri build --debug

- name: Upload artifacts
uses: actions/upload-artifact@v3
Expand Down
21 changes: 7 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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:
Expand All @@ -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]
Expand Down
31 changes: 27 additions & 4 deletions README.md
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`.
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"dependencies": {
"@tauri-apps/api": "^2.2.0",
"@tauri-apps/plugin-opener": "^2.2.4",
"mode-watcher": "^0.5.0",
"ntcore-ts-client": "^0.2.2",
"svelte-radix": "^2.0.1"
},
Expand Down
Binary file added reefscape.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions src/routes/+layout.svelte
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()}

0 comments on commit 76ada3b

Please sign in to comment.