Last active
March 1, 2020 06:25
-
-
Save nathanmalishev/a0bef4ba6162298dbee5f5c2128448fb to your computer and use it in GitHub Desktop.
Modd conf showing individual handler rebuilds and global rebuils for utils
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
handler/handlerX/**.go { | |
prep: go build -o dist/handlerX ./handler/handlerX/ | |
} | |
handler/handlerY/**.go { | |
prep: go build -o dist/handlerY ./handler/handlerY/ | |
} | |
helper/**.go util/**.go { | |
prep: for dir in `ls handler`; do \ | |
echo 'building…' "$dir"; \ | |
CGO_ENABLED=0 GOOS=linux go build -o dist/handler/"$dir" <PATH_TO_HANDLER>/handler/"$dir" & done | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment