Skip to content

Commit

Permalink
Document and require yarn for makefile
Browse files Browse the repository at this point in the history
[finishes #15]
  • Loading branch information
squeedee committed Jun 19, 2022
1 parent 44029ca commit fd8968d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
ADDLICENSE ?= go run -modfile hack/tools/go.mod github.com/google/addlicense

ifeq ($(shell command -v yarn && echo yes),)
$(error "Yarn (and node) must be installed")
endif

.PHONY: serve
serve:
echo "Open docs at: http://localhost:1313"
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
- [Hugo](https://github.com/gohugoio/hugo)
- macOS: `brew install hugo`
- Windows: `choco install hugo-extended -confirm`
- [Node](https://nodejs.org/en/)
- [Yarn](https://classic.yarnpkg.com/lang/en/docs/install)

## Serve

Expand Down

0 comments on commit fd8968d

Please sign in to comment.