Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docs/mise-cookbook/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ Example usage:
# Digest: sha256:eecc479b6259479ffca5a4f9c68dbfe8631ca62dc59aa60c9ab5e4f6e9982701
# Status: Image is up to date for jdxcode/mise:latest
root@75f179a190a1:/mise# eval "$(mise activate bash)"
# overwrite configuration and prune to give us a clean state
root@75f179a190a1:/mise# echo "" >/mise/config.toml
root@75f179a190a1:/mise# mise prune --yes
mise pruned configuration links
mise [email protected] ✓ remove /mise/cache/python/3.13.1
# mise pruned configuration links
# mise [email protected] ✓ remove /mise/cache/python/3.13.1
# ...
```
8 changes: 5 additions & 3 deletions docs/mise-cookbook/nodejs.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,14 @@ This example uses `pnpm` as the package manager. This will skip installing depen
node = '22'

[hooks]
post_install = 'corepack enable'
# Enabling corepack will install the `pnpm` package manager specified in your package.json
# alternatively, you can also install `pnpm` with mise
post_install = 'npx corepack enable'

[env]
_.path = ['./node_modules/.bin']

[tasks.pnpmInstall]
[tasks.pnpm-install]
description = 'Installs dependencies with pnpm'
run = 'pnpm install'
sources = ['package.json', 'pnpm-lock.yaml', 'mise.toml']
Expand All @@ -99,7 +101,7 @@ outputs = ['node_modules/.pnpm/lock.yaml']
[tasks.dev]
description = 'Calls your dev script in `package.json`'
run = 'node --run dev'
depends = ['pnpmInstall']
depends = ['pnpm-install']
```

With this setup, getting started in a NodeJS project is as simple as running `mise dev`:
Expand Down
Loading