Skip to content

Commit edde5ff

Browse files
authored
Upgrade Hugo and add NPM CI scripts (kedacore#665)
1 parent 3609250 commit edde5ff

File tree

5 files changed

+31
-5
lines changed

5 files changed

+31
-5
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ package-lock.json
44
.idea
55
resources/
66
.DS_Store
7+
.hugo_build.lock
78

89
# Link checker artifacts
910
bin/

.nvmrc

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

config.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title = "KEDA"
44
enableGitInfo = true
55
disableKinds = ["taxonomy", "taxonomyTerm"]
66

7-
googleAnalytics = "G-YSWMV22VTQ"
7+
googleAnalytics = 'G-YSWMV22VTQ'
88

99
# See other available styles here: https://xyproto.github.io/splash/docs/
1010
[markup.highlight]

netlify.toml

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
publish = "public"
33
command = "make production-build"
44

5-
[build.environment]
6-
HUGO_VERSION = "0.67.0"
7-
85
[context.deploy-preview]
96
command = "make preview-build"
107

package.json

+28-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,32 @@
11
{
2+
"scripts": {
3+
"_build": "hugo --cleanDestinationDir -e dev -DFE",
4+
"_check-links": "make check-links",
5+
"_prebuild": "echo placeholder for now > /dev/null",
6+
"_serve:hugo": "hugo serve -DFE --minify",
7+
"_serve": "netlify dev -c \"npm run _serve:hugo\"",
8+
"build:preview": "set -x && npm run _build -- --minify --baseURL \"${DEPLOY_PRIME_URL:-/}\"",
9+
"build:production": "hugo --cleanDestinationDir --minify",
10+
"build": "npm run _build",
11+
"check-links:all": "HTMLTEST_ARGS= npm run _check-links",
12+
"check-links": "npm run _check-links",
13+
"clean": "make clean",
14+
"postbuild:preview": "npm run _check-links",
15+
"postbuild:production": "npm run _check-links",
16+
"prebuild:preview": "npm run _prebuild",
17+
"prebuild:production": "npm run _prebuild",
18+
"prebuild": "npm run _prebuild",
19+
"precheck-links:all": "npm run build",
20+
"precheck-links": "npm run build",
21+
"preserve:hugo": "npm run _prebuild",
22+
"preserve": "npm run _prebuild",
23+
"serve:hugo": "npm run _serve:hugo",
24+
"serve": "npm run _serve",
25+
"test": "npm run check-links"
26+
},
227
"devDependencies": {
3-
"bulma": "^0.8.2"
28+
"bulma": "^0.8.2",
29+
"hugo-extended": "0.92.2",
30+
"netlify-cli": "^9.6.5"
431
}
532
}

0 commit comments

Comments
 (0)