mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-09-07 05:34:43 +08:00
17 lines
354 B
Bash
Executable file
17 lines
354 B
Bash
Executable file
#!/bin/sh
|
|
|
|
go fmt ./...
|
|
|
|
if [[ -x node_modules/.bin/prettier ]]; then
|
|
node_modules/.bin/prettier --write pkg/js/helpers.js
|
|
fi
|
|
|
|
# JSON
|
|
bin/fmtjson $(find . -type f -name "*.json" ! -name "package-lock.json" -print)
|
|
|
|
# dnsconfig.js-compatible files:
|
|
for i in pkg/js/parse_tests/*.js ; do dnscontrol fmt -i $i -o $i ; done
|
|
|
|
go generate ./...
|
|
|
|
go mod tidy
|