Added make file to manage literacy commands and tests

Setup gitignore to ignore tangled files except for go tests
This commit is contained in:
Kevin F 2022-09-08 13:32:08 -05:00
commit 2789545bd7
2 changed files with 21 additions and 0 deletions

5
.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
docs/*
*.go
!smartkeyboard/auth/*_test.go
go.mod
go.sum

16
Makefile Normal file
View File

@ -0,0 +1,16 @@
weave:
srcweave --formatter srcweave-format --weave docs/ ReadMe.go.md security/Authentication.md
tangle:
srcweave --formatter srcweave-format --tangle smartkeyboard/ ReadMe.go.md security/Authentication.md
clean:
rm -rf docs
find smartkeyboard/ -type f -not -name "*_test.go" -delete
rm go.mod
rm go.sum
test: tangle
-go mod init voidnet.tech/m/v2
go mod tidy
go test -v ./...
all: weave tangle