diff options
author | Patrice Chalin <chalin@users.noreply.github.com> | 2022-01-19 12:41:25 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-19 12:41:25 +0300 |
commit | 3900a6da6c70e4e70955b25537f448c116149c06 (patch) | |
tree | f6c282ccd8e9f9f069db689ae62d649d01943afe | |
parent | b6af3699c65dd089f453700bee858c1de7d73dd7 (diff) |
Simplify setup: install Hugo automatically (and get the right version) using NPM (#841)
-rw-r--r-- | netlify.toml | 5 | ||||
-rw-r--r-- | package.json | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/netlify.toml b/netlify.toml index ff26007..a76132e 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,12 +3,11 @@ [build] publish = "userguide/public" -command = "npm install && npm run build:preview" +command = "npm run build:preview" [build.environment] -HUGO_VERSION = "0.92.0" GO_VERSION = "1.17.6" HUGO_THEME = "repo" [context.production] -command = "npm install && npm run build:production" +command = "npm run build:production" diff --git a/package.json b/package.json index c21c876..ee89e88 100644 --- a/package.json +++ b/package.json @@ -7,5 +7,8 @@ "serve": "cd userguide && npm run serve", "submodule:get": "git submodule update --init --recursive --depth 1", "submodule:update": "git submodule update --remote --recursive --depth 1" + }, + "devDependencies": { + "hugo-extended": "0.92.0" } } |