Skip to content

Commit 31a3ad3

Browse files
authored
fix(justfile): add Windows support, extract clean-dist (#953)
1 parent 6c4b979 commit 31a3ad3

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

CONTRIBUTING.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Initial Setup
44

5+
### macOS / Linux
6+
57
You'll need the following tools installed on your system:
68

79
```
@@ -21,6 +23,28 @@ Initial setup to install dependencies for Vite+:
2123
just init
2224
```
2325

26+
### Windows
27+
28+
You'll need the following tools installed on your system. You can use [winget](https://learn.microsoft.com/en-us/windows/package-manager/).
29+
30+
```powershell
31+
winget install pnpm.pnpm OpenJS.NodeJS.LTS Casey.Just Kitware.CMake
32+
```
33+
34+
Install Rust & Cargo from [rustup.rs](https://rustup.rs/), then install `cargo-binstall`:
35+
36+
```powershell
37+
cargo install cargo-binstall
38+
```
39+
40+
Initial setup to install dependencies for Vite+:
41+
42+
```powershell
43+
just init
44+
```
45+
46+
**Note:** Run commands in PowerShell or Windows Terminal. Some commands may require elevated permissions.
47+
2448
## Build Vite+ and upstream dependencies
2549

2650
To create a release build of Vite+ and all upstream dependencies, run:

justfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,15 @@ _default:
88

99
alias r := ready
1010

11-
init:
11+
[unix]
12+
_clean_dist:
1213
rm -rf packages/*/dist
14+
15+
[windows]
16+
_clean_dist:
17+
Remove-Item -Path 'packages/*/dist' -Recurse -Force -ErrorAction SilentlyContinue
18+
19+
init: _clean_dist
1320
cargo binstall watchexec-cli cargo-insta typos-cli cargo-shear dprint taplo-cli -y
1421
node packages/tools/src/index.ts sync-remote
1522
pnpm install

0 commit comments

Comments
 (0)