Skip to content

Commit

Permalink
Use Deno instead of Node.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjadev64 committed Aug 6, 2024
1 parent add7c74 commit 56a38fa
Show file tree
Hide file tree
Showing 9 changed files with 1,364 additions and 3,020 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,22 @@ jobs:
args: ""
- platform: "windows-latest"
args: ""

runs-on: ${{ matrix.platform }}
env:
DENO_DIR: deno_cache
steps:
- uses: actions/checkout@v4

- name: setup node
uses: actions/setup-node@v4
- name: cache Deno dependencies
uses: actions/cache@v4
with:
path: ${{ env.DENO_DIR }}
key: ${{ hashFiles('deno.lock') }}

- name: setup Deno
uses: denoland/setup-deno@v1
with:
node-version: lts/*
cache: "npm"
deno-version: v1.x

- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
Expand All @@ -48,9 +54,6 @@ jobs:
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf libudev-dev
- name: install frontend dependencies
run: npm install

- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ To enable automatic launch on startup, the light theme, or to change the languag

### Building from source / contributing

You'll need to ensure that all of the [prerequisites for building a Tauri application](https://tauri.app/v1/guides/getting-started/prerequisites) are satisfied to build OpenDeck (this includes the Tauri CLI from `cargo install tauri-cli`). On GNU+Linux, you'll also need `libudev` installed for your distribution. Then, ensure that the required frontend dependencies are installed with `npm i(nstall)`. You can then use `cargo tauri dev` and `cargo tauri build` to work with OpenDeck.
You'll need to ensure that all of the [prerequisites for building a Tauri application](https://tauri.app/v1/guides/getting-started/prerequisites) are satisfied to build OpenDeck (this includes the Tauri CLI from `cargo install tauri-cli`), as well as [Deno](https://deno.com/). On GNU+Linux, you'll also need `libudev` installed for your distribution. You can then use `cargo tauri dev` and `cargo tauri build` to work with OpenDeck.

When submitting a pull request, ensure that all of your Rust code has been formatted using `cargo fmt`, `cargo clippy` returns no violations, `npm run check` returns no violations, and modified Svelte code sticks to the existing style used as far as possible. Feel free to reach out on the support channels above for guidance when contributing!
When submitting a pull request, ensure that all of your Rust code has been formatted using `cargo fmt`, `cargo clippy` returns no violations, `deno task check` returns no violations, and modified Svelte code sticks to the existing style used as far as possible. Feel free to reach out on the support channels above for guidance when contributing!
1,338 changes: 1,338 additions & 0 deletions deno.lock

Large diffs are not rendered by default.

Loading

0 comments on commit 56a38fa

Please sign in to comment.