Added make file to manage literacy commands and tests
Setup gitignore to ignore tangled files except for go tests
This commit is contained in:
commit
2789545bd7
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
docs/*
|
||||
*.go
|
||||
!smartkeyboard/auth/*_test.go
|
||||
go.mod
|
||||
go.sum
|
16
Makefile
Normal file
16
Makefile
Normal 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
|
Loading…
Reference in New Issue
Block a user