diff options
| author | Jamal Carvalho <jamal@golang.org> | 2020-12-04 16:54:20 -0500 |
|---|---|---|
| committer | Jamal Carvalho <jamal@golang.org> | 2020-12-09 18:06:00 +0000 |
| commit | 3fa72a835f1b916113070ec1a8b6f670062442a2 (patch) | |
| tree | 995514cbe9554655164177c4b456ee03aa51078b /doc | |
| parent | 45a7b223dafd915ceb4ab72e20332d56be3a56e5 (diff) | |
| download | go-x-pkgsite-3fa72a835f1b916113070ec1a8b6f670062442a2.tar.xz | |
all.bash: update prettier script to use dockerized prettier install
Updates all.bash to use a dockerized prettier install as a fallback
when prettier is not installed globally. For now the script will
only use the container if it has already been built. We could change
this in the future to automatically build the image but this will give
everyone a chance to test it out first. To build the image run
'docker-compose -f devtools/config/docker-compose.yaml build' from the
repo root.
Change-Id: I56ad2cd2da2fe0dbbf46636024f44cc614adb168
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/275532
Trust: Jamal Carvalho <jamal@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Julie Qiu <julie@golang.org>
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/precommit.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/precommit.md b/doc/precommit.md index c1ffd028..526d2ca6 100644 --- a/doc/precommit.md +++ b/doc/precommit.md @@ -41,6 +41,6 @@ executed in the commit hook. Notably, the `prettier` command is not run, because it has a dependency on nodejs, which is otherwise not needed and which not all developers have installed on their system. -If you are modifying CSS or Javascript, install prettier as described at -https://prettier.io/docs/en/install.html, and run `./all.bash prettier` to -format your changes before mailing your CL. +If you are modifying CSS or Javascript and you do not have docker installed, +install prettier as described at https://prettier.io/docs/en/install.html, +and run `./all.bash prettier` to format your changes before mailing your CL. |
