Skip to content

Commit 66da54d

Browse files
authored
Build config: upgrade Hugo and Node, and other cleanup (grpc#629)
1 parent 38573ce commit 66da54d

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lts/*

Makefile

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
HUGO_VERSION = 0.79.0
2-
31
DRAFT_ARGS = --buildDrafts --buildFuture
42
BUILD_ARGS = --minify
53
ifeq (draft, $(or $(findstring draft,$(HEAD)),$(findstring draft,$(BRANCH))))

README.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,14 @@ The [grpc.io][] site, built using [Hugo][] and hosted on [Netlify][].
66

77
### 1. Install the following tools
88

9-
- **[Hugo, extended version][hugo-install]**
10-
- **[nvm][]**, the Node Version Manager
9+
- **[Hugo, extended edition][hugo-install]**; match the version specified in
10+
[netlify.toml](netlify.toml)
11+
- **Node**, the latest [LTS release][]. Like Netlify, we use **[nvm][]**, the
12+
Node Version, to install and manage Node versions:
13+
```console
14+
$ nvm install --lts
15+
$ nvm use --lts
16+
```
1117

1218
### 2. Clone this repo _and_ its submodules
1319

@@ -138,6 +144,7 @@ returned from `/grpc` links are false negatives that you can ignore.
138144
[grpc.io]: https://grpc.io
139145
[Hugo]: https://gohugo.io
140146
[hugo-install]: https://gohugo.io/getting-started/installing
147+
[LTS release]: https://nodejs.org/en/about/releases/
141148
[Netlify]: https://netlify.com
142149
[Netlify dev]: https://www.netlify.com/products/dev
143150
[Netlify gRPC Team dashboard]: https://app.netlify.com/teams/grpc/overview

netlify.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ publish = "public"
33
command = "git submodule update --init --recursive --depth 1 && make production-build"
44

55
[build.environment]
6-
HUGO_VERSION = "0.79.0"
7-
NODE_VERSION = "12"
6+
HUGO_VERSION = "0.80.0"
87

98
[context.branch-deploy]
109
command = "git submodule update --init --recursive --depth 1 && make preview-build"

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"devDependencies": {
33
"autoprefixer": "^9.8.6",
4-
"netlify-cli": "^3.4.8",
4+
"netlify-cli": "^3.5.0",
55
"postcss-cli": "^7.1.2"
66
}
77
}

0 commit comments

Comments
 (0)