add more of a "getting started with building" to develop.txt

based on #145 by lmeunier
This commit is contained in:
Mechiel Lukkien
2024-03-26 09:16:33 +01:00
parent 40ade995a5
commit d4958732c8
3 changed files with 55 additions and 13 deletions

View File

@ -31,6 +31,10 @@ test-race:
test-upgrade: build
nice ./test-upgrade.sh
# needed for "check" target
install-staticcheck:
go install honnef.co/go/tools/cmd/staticcheck@v0.4.7
check:
CGO_ENABLED=0 go vet -tags integration
CGO_ENABLED=0 go vet -tags website website/website.go
@ -45,6 +49,10 @@ check:
staticcheck -tags errata rfc/errata.go
staticcheck -tags xr rfc/xr.go
# needed for check-shadow
install-shadow:
go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow@v0.19.0
# having "err" shadowed is common, best to not have others
check-shadow:
go vet -vettool=$$(which shadow) ./... 2>&1 | grep -v '"err"'
@ -96,11 +104,11 @@ fmt:
jswatch:
bash -c 'while true; do inotifywait -q -e close_write *.ts webadmin/*.ts webaccount/*.ts webmail/*.ts; make frontend; done'
jsinstall:
install-js:
-mkdir -p node_modules/.bin
npm ci
jsinstall0:
install-js0:
-mkdir -p node_modules/.bin
npm install --save-dev --save-exact typescript@5.1.6
@ -121,8 +129,10 @@ webaccount/account.js: lib.ts webaccount/api.ts webaccount/account.ts
frontend: webadmin/admin.js webaccount/account.js webmail/webmail.js webmail/msg.js webmail/text.js
install-apidiff:
go install golang.org/x/exp/cmd/apidiff@v0.0.0-20231206192017-f3f8817b8deb
genapidiff:
# needs golang.org/x/exp/cmd/apidiff@v0.0.0-20231206192017-f3f8817b8deb installed
./apidiff.sh
docker: