-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Vincent Boutour <[email protected]>
- Loading branch information
Showing
12 changed files
with
14 additions
and
35 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,9 +48,7 @@ app: init dev | |
.PHONY: init | ||
init: | ||
@curl --disable --silent --show-error --location --max-time 30 "https://raw.githubusercontent.com/ViBiOh/scripts/main/bootstrap" | bash -s -- "-c" "git_hooks" "coverage" "release" | ||
go install "github.com/golang/mock/[email protected]" | ||
go install "github.com/golangci/golangci-lint/cmd/golangci-lint@latest" | ||
go install "github.com/tdewolff/minify/v2/cmd/minify@latest" | ||
go install "golang.org/x/tools/cmd/goimports@latest" | ||
go install "golang.org/x/tools/go/analysis/passes/fieldalignment/cmd/fieldalignment@master" | ||
go install "mvdan.cc/gofumpt@latest" | ||
|
@@ -71,6 +69,7 @@ style: | |
## mocks: Generate mocks | ||
.PHONY: mocks | ||
mocks: | ||
go install "go.uber.org/mock/mockgen@latest" | ||
find . -name "mocks" -type d -exec rm -r "{}" \+ | ||
go generate -run mockgen $(PACKAGES) | ||
|
||
|
@@ -93,6 +92,7 @@ build: | |
## build: Build the application. | ||
.PHONY: build-web | ||
build-web: | ||
go install "github.com/tdewolff/minify/v2/cmd/minify@latest" | ||
rm -f "cmd/fibr/static/scripts/index.min.js" "cmd/fibr/static/styles/main.min.css" | ||
minify --bundle --output "cmd/fibr/static/scripts/index.min.js" "cmd/fibr/static/scripts/"*.js | ||
minify --bundle --output "cmd/fibr/static/styles/main.min.css" "cmd/fibr/static/styles/"*.css | ||
|
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
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
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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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