Skip to content

konsumer/deno-make-help

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

deno-make-help

This will allow you to make nice help for your deno makefiles, to document your project. It has no dependencies, other than deno, and no permissions or extra files are needed.

usage

Make a Makefile in your project that sort of looks like this:

.PHONY: help build run clean

#: Show this help
help:
	@cat $(MAKEFILE_LIST) | deno run -q https://deno.land/x/makehelp/help.ts

#: Build library into a bundle for distribution
build: bundle.ts

#: Run it locally
run:
	deno run -A --unstable main.ts

#: Clean up built resources
clean:
	rm -f bundle.ts

# this comment won't show in help
bundle.ts: main.ts
	deno bundle --unstable  main.ts > bundle.ts

Which makes help like this:

screenshot

Since help is the first target, when a user calls make or make help they will get a nice help. You can comment your targets by starting a line with #: above a target, as I have done above.

About

Make nice help for deno Makefiles

Resources

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published