From 2789545bd7abcd1d7d055154d7cff46b53bb2e35 Mon Sep 17 00:00:00 2001 From: Kevin F Date: Thu, 8 Sep 2022 13:32:08 -0500 Subject: [PATCH] Added make file to manage literacy commands and tests Setup gitignore to ignore tangled files except for go tests --- .gitignore | 5 +++++ Makefile | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..355c880 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +docs/* +*.go +!smartkeyboard/auth/*_test.go +go.mod +go.sum \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4fab93e --- /dev/null +++ b/Makefile @@ -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 \ No newline at end of file