Build config: upgrade Hugo and Node, and other cleanup (#629)

This commit is contained in:
Patrice Chalin 2021-02-05 11:17:01 -05:00 committed by GitHub
parent 38573cedbf
commit 66da54d10a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 7 deletions

1
.nvmrc Normal file
View File

@ -0,0 +1 @@
lts/*

View File

@ -1,5 +1,3 @@
HUGO_VERSION = 0.79.0
DRAFT_ARGS = --buildDrafts --buildFuture
BUILD_ARGS = --minify
ifeq (draft, $(or $(findstring draft,$(HEAD)),$(findstring draft,$(BRANCH))))

View File

@ -6,8 +6,14 @@ The [grpc.io][] site, built using [Hugo][] and hosted on [Netlify][].
### 1. Install the following tools
- **[Hugo, extended version][hugo-install]**
- **[nvm][]**, the Node Version Manager
- **[Hugo, extended edition][hugo-install]**; match the version specified in
[netlify.toml](netlify.toml)
- **Node**, the latest [LTS release][]. Like Netlify, we use **[nvm][]**, the
Node Version, to install and manage Node versions:
```console
$ nvm install --lts
$ nvm use --lts
```
### 2. Clone this repo _and_ its submodules
@ -138,6 +144,7 @@ returned from `/grpc` links are false negatives that you can ignore.
[grpc.io]: https://grpc.io
[Hugo]: https://gohugo.io
[hugo-install]: https://gohugo.io/getting-started/installing
[LTS release]: https://nodejs.org/en/about/releases/
[Netlify]: https://netlify.com
[Netlify dev]: https://www.netlify.com/products/dev
[Netlify gRPC Team dashboard]: https://app.netlify.com/teams/grpc/overview

View File

@ -3,8 +3,7 @@ publish = "public"
command = "git submodule update --init --recursive --depth 1 && make production-build"
[build.environment]
HUGO_VERSION = "0.79.0"
NODE_VERSION = "12"
HUGO_VERSION = "0.80.0"
[context.branch-deploy]
command = "git submodule update --init --recursive --depth 1 && make preview-build"

View File

@ -1,7 +1,7 @@
{
"devDependencies": {
"autoprefixer": "^9.8.6",
"netlify-cli": "^3.4.8",
"netlify-cli": "^3.5.0",
"postcss-cli": "^7.1.2"
}
}