build: switch from fnm to mise for node and pnpm management
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
[tools]
|
||||||
|
node = "26"
|
||||||
|
pnpm = "12.3.4"
|
||||||
@@ -1 +0,0 @@
|
|||||||
26
|
|
||||||
@@ -55,13 +55,13 @@ Alternatively, search for **"DDC Brightness Controller"** in the
|
|||||||
Builds the extension locally and drops it into your user's extension dir.
|
Builds the extension locally and drops it into your user's extension dir.
|
||||||
Requires [just](https://github.com/casey/just) as the command runner, plus the
|
Requires [just](https://github.com/casey/just) as the command runner, plus the
|
||||||
same build toolchain used for development (see [Development](#development)):
|
same build toolchain used for development (see [Development](#development)):
|
||||||
`fnm` for a Node runtime (the build runs on Node via pnpm) and `glib2` for
|
[mise](https://mise.jdx.dev/) for managing tool versions (`node` and `pnpm`),
|
||||||
`glib-compile-schemas`.
|
and `glib2` for `glib-compile-schemas`.
|
||||||
|
|
||||||
Arch Linux:
|
Arch Linux:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo pacman -S git just fnm glib2 # fnm needs its shell hook on PATH: https://github.com/Schniz/fnm#shell-setup
|
sudo pacman -S git just mise glib2 # mise needs its shell hook: https://mise.jdx.dev/getting-started.html#shells
|
||||||
```
|
```
|
||||||
|
|
||||||
Clone and install:
|
Clone and install:
|
||||||
@@ -69,8 +69,7 @@ Clone and install:
|
|||||||
```bash
|
```bash
|
||||||
git clone https://github.com/lucasoskorep/ddc-brightness-control
|
git clone https://github.com/lucasoskorep/ddc-brightness-control
|
||||||
cd ddc-brightness-control
|
cd ddc-brightness-control
|
||||||
fnm install
|
mise install
|
||||||
fnm use
|
|
||||||
just install
|
just install
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -88,21 +87,20 @@ Building and debugging locally needs a few extra tools beyond the runtime
|
|||||||
requirements above:
|
requirements above:
|
||||||
|
|
||||||
- `just` — the command runner
|
- `just` — the command runner
|
||||||
- `fnm` — fast node version manager (the build runs on Node via pnpm)
|
- `mise` — runtime & tool manager (pins `node` and `pnpm` in `.mise.toml`)
|
||||||
- `uv` — python package manager (used by the schema-analysis helper)
|
- `uv` — python package manager (used by the schema-analysis helper)
|
||||||
- `glib2` — provides `glib-compile-schemas` for compiling the settings schema
|
- `glib2` — provides `glib-compile-schemas` for compiling the settings schema
|
||||||
|
|
||||||
Arch Linux:
|
Arch Linux:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo pacman -S just fnm uv glib2
|
sudo pacman -S just mise uv glib2
|
||||||
```
|
```
|
||||||
|
|
||||||
Set up the Node runtime with fnm (the pinned version lives in `.node-version`):
|
Install the pinned tools with mise (defined in `.mise.toml`):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
fnm install
|
mise install
|
||||||
fnm use
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Then:
|
Then:
|
||||||
|
|||||||
Reference in New Issue
Block a user