Skip to content

Commit

Permalink
feat(dx): add justfile pnpm shim
Browse files Browse the repository at this point in the history
  • Loading branch information
xynydev committed Apr 28, 2024
1 parent 711d98c commit beafe77
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ distrobox create -i ghcr.io/blue-build/workshop-dev -n workshop-dev -p # add --n
distrobox enter workshop-dev
```

The container image can also be used with the [just](https://just.systems/) command `just pnpm`, which runs pnpm inside the container. All commands below are supported in the container.

Install deps

```sh
Expand Down
9 changes: 9 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
_default:
just pnpm dev

pnpm *command:
podman run -it \
-w /host -v $PWD:/host --security-opt label=disable \
--network host --env DISPLAY \
--pull newer localhost/workshop-dev \
pnpm {{command}}

0 comments on commit beafe77

Please sign in to comment.