Skip to content

Commit

Permalink
Init Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Vittorio Ballestra authored and dam0vm3nt committed Jan 2, 2023
0 parents commit 93fd7ae
Show file tree
Hide file tree
Showing 452 changed files with 109,306 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.idea
vendor

dist/

docs/.graphqlconfig
bazel-*
35 changes: 35 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
project_name: sv
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
universal_binaries:
- replace: true
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
34 changes: 34 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
load("@bazel_gazelle//:def.bzl", "gazelle")

# gazelle:prefix github.com/vballestra/sv
gazelle(name = "gazelle")

gazelle(
name = "gazelle-update-repos",
args = [
"-from_file=go.mod",
"-to_macro=deps.bzl%go_dependencies",
"-prune",
],
command = "update-repos",
)

go_binary(
name = "sv",
embed = [":sv_lib"],
visibility = ["//visibility:public"],
)

go_library(
name = "sv_lib",
srcs = ["main.go"],
importpath = "github.com/vballestra/sv",
visibility = ["//visibility:private"],
deps = ["//cmd"],
)

alias(
name = "main",
actual = ":sv",
)
Empty file added LICENSE
Empty file.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# BUILD

Build with:

bazel build :main

# Update build

When you want to update the `bazel` build (new source file, changes in the dependencies), run gazelle:

bazel run //:gazelle


Loading

0 comments on commit 93fd7ae

Please sign in to comment.