mirror of https://github.com/grafana/grafana.git
Docs: Move corepack instructions to where you can run them (#104729)
* move corepack instructions out from under macOS header * move corepack instructions to new heading after downloading repo
This commit is contained in:
parent
a1b294e39f
commit
ded775b4e0
|
@ -21,13 +21,6 @@ brew install go
|
|||
brew install node@22
|
||||
```
|
||||
|
||||
In the repository enable and install yarn via corepack
|
||||
|
||||
```
|
||||
corepack enable
|
||||
corepack install
|
||||
```
|
||||
|
||||
### Windows
|
||||
|
||||
If you are running Grafana on Windows 10, we recommend installing the Windows Subsystem for Linux (WSL). For installation instructions, refer to our [Grafana setup guide for Windows environment](https://grafana.com/blog/2021/03/03/how-to-set-up-a-grafana-development-environment-on-a-windows-pc-using-wsl/).
|
||||
|
@ -43,6 +36,15 @@ For alternative ways of cloning the Grafana repository, refer to [GitHub's docum
|
|||
|
||||
> **Caution:** Do not use `go get` to download Grafana. Recent versions of Go have added behavior which isn't compatible with the way the Grafana repository is structured.
|
||||
|
||||
### Set up yarn
|
||||
|
||||
In the repository enable and install yarn via corepack
|
||||
|
||||
```
|
||||
corepack enable
|
||||
corepack install
|
||||
```
|
||||
|
||||
### Configure precommit hooks
|
||||
|
||||
We use pre-commit hooks (via [lefthook](https://github.com/evilmartians/lefthook)) to lint, fix, and format code as you commit your changes. Previously, the Grafana repository automatically installed these hook when you ran `yarn install`, but they are now opt-in for all contributors.
|
||||
|
|
Loading…
Reference in New Issue