Skip to content

Commit

Permalink
Fix: extending npm scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
deining committed Oct 24, 2022
1 parent 017c899 commit 4d86311
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

[build]
publish = "userguide/public"
command = "npm run docs-install && npm run build:preview"
command = "npm run docs-install && npm run netlify:pretend-devDeps && npm run build:preview"

[build.environment]
GO_VERSION = "1.19.2"
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"check-links": "npm run cd:docs check-links",
"docs-install": "npm run _cd:docs -- npm install",
"get:submodule": "set -x && git submodule update --init ${DEPTH:- --depth 1}",
"netlify:pretend-devDeps": "cd /opt/build && npm run pretend-devDeps",
"pretend-devDeps": "npx mkdirp github.com/FortAwesome/Font-Awesome && npx mkdirp github.com/twbs/bootstrap",
"serve": "npm run cd:docs serve",
"update:pkg:hugo": "npm install --save-exact -D hugo-extended@latest",
"update:pkg:dep": "npm install --save-exact @fortawesome/fontawesome-free@6 bootstrap@4"
Expand All @@ -25,6 +27,7 @@
"bootstrap": "4.6.2"
},
"devDependencies": {
"mkdirp" : "1.0.4",
"hugo-extended": "0.104.3"
}
}

0 comments on commit 4d86311

Please sign in to comment.