Skip to content

Instantly share code, notes, and snippets.

@orange634nty
Created October 25, 2020 04:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save orange634nty/54ae4c4424dd1d7bd01b0a484979449f to your computer and use it in GitHub Desktop.
Save orange634nty/54ae4c4424dd1d7bd01b0a484979449f to your computer and use it in GitHub Desktop.
Marpを使うときに使ってるMakefile
help: ## ヘルプを表示します
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
build_html: ## Markdownからhtmlをビルドします
npx @marp-team/marp-cli silde.md
build_pdf: ## Markdownからpdfをビルドします
npx @marp-team/marp-cli silde.md --pdf
server: ## ローカルサーバーを起動させます
npx @marp-team/marp-cli -w -s .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment