Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/google/docsy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Chalin <chalin@users.noreply.github.com>2022-01-19 12:41:25 +0300
committerGitHub <noreply@github.com>2022-01-19 12:41:25 +0300
commit3900a6da6c70e4e70955b25537f448c116149c06 (patch)
treef6c282ccd8e9f9f069db689ae62d649d01943afe
parentb6af3699c65dd089f453700bee858c1de7d73dd7 (diff)
Simplify setup: install Hugo automatically (and get the right version) using NPM (#841)
-rw-r--r--netlify.toml5
-rw-r--r--package.json3
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"
}
}