Skip to content

Commit

Permalink
New Project Layout (#152)
Browse files Browse the repository at this point in the history
New Project Layout
  • Loading branch information
moul authored Jan 15, 2020
2 parents d6e112d + dfcdc3b commit a0668cc
Show file tree
Hide file tree
Showing 10 changed files with 453 additions and 117 deletions.
17 changes: 17 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: 2.1

orbs:
moul: moul/[email protected] # https://github.com/moul/build

workflows:
main:
jobs:
- moul/golang-build:
gopkg: moul.io/protoc-gen-gotemplate
- moul/golang-build:
gopkg: moul.io/protoc-gen-gotemplate
tag: '1.12'
- moul/golang-build:
gopkg: moul.io/protoc-gen-gotemplate
tag: '1.11'
- moul/docker-build
15 changes: 15 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Auto detect text files and perform LF normalization
* text=auto

# Collapse vendored and generated files on GitHub
vendor/* linguist-vendored
rules.mk linguist-vendored
*/vendor/* linguist-vendored
*.gen.* linguist-generated
*.pb.go linguist-generated
go.sum linguist-generated
go.mod linguist-generated
gen.sum linguist-generated

# Reduce conflicts on markdown files
*.md merge=union
43 changes: 20 additions & 23 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,28 +1,25 @@
vendor/**/.travis.yml
# Temporary files
*~
*#
.#*
coverage.txt

/protoc-gen-gotemplate
# Vendors
package-lock.json
node_modules/
vendor/

# Compiled Object files, Static and Dynamic libs (Shared Objects)
*.o
*.a
# Binaries for programs and plugins
dist/
gin-bin
*.exe
*.exe~
*.dll
*.so
*.dylib

# Folders
_obj
_test

# Architecture specific extensions/prefixes
*.[568vq]
[568vq].out

*.cgo1.go
*.cgo2.c
_cgo_defun.c
_cgo_gotypes.go
_cgo_export.*

_testmain.go

*.exe
# Test binary, build with `go test -c`
*.test
*.prof

# Output of the go coverage tool, specifically when used with LiteIDE
*.out
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

28 changes: 28 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This file lists all individuals having contributed content to the repository.
# For how it is generated, see 'https://github.com/moul/rules.mk'

Alexandre Beslic <[email protected]>
Anastasia DERUELLE <[email protected]>
Gero <[email protected]>
gfanton <[email protected]>
Guilhem Fanton <[email protected]>
Jan Weitz <[email protected]>
jhayotte <[email protected]>
Julien Hayotte <[email protected]>
Manfred Touron <[email protected]>
Mathieu Acthernoene <[email protected]>
Mike Lee <[email protected]>
moul-bot <[email protected]>
Pat Moroney <[email protected]>
Pat Moroney <[email protected]>
Peter Monko <[email protected]>
Pierre Roullon <[email protected]>
Quentin Perez <[email protected]>
Renovate Bot <[email protected]>
Sacha Froment <[email protected]>
Shogo Iwano <[email protected]>
Thomas KERAMBLOCH <[email protected]>
Tommy PAGEARD <[email protected]>
Valerio Gheri <[email protected]>
Victor Login <[email protected]>
webii <[email protected]>
34 changes: 11 additions & 23 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
.PHONY: build
build:
go build -v -i -o protoc-gen-gotemplate .
GOPKG ?= moul.io/protoc-gen-gotemplate
DOCKER_IMAGE ?= moul/golang-repo-template
GOBINS ?= . ./cmd/web-editor
GOLIBS ?= .

.PHONY: install
install:
go install .
go install ./cmd/web-editor
all: test install

.PHONY: test
test: install
include rules.mk

.PHONY: examples
examples: install
cd examples/time && make
cd examples/enum && make
cd examples/import && make
Expand All @@ -18,19 +18,7 @@ test: install
cd examples/flow && make
cd examples/sitemap && make
cd examples/go-generate && make
# cd examples/single-package-mode && make
#cd examples/single-package-mode && make
cd examples/helpers && make
cd examples/arithmetics && make
# cd examples/go-kit && make

.PHONY: docker.build
docker.build:
docker build --pull -t moul/protoc-gen-gotemplate .

.PHONY: docker.push
docker.push: docker.build
docker push moul/protoc-gen-gotemplate

.PHONY: lint
lint:
golangci-lint run --verbose . ./helpers ./cmd/...
#cd examples/go-kit && make
33 changes: 17 additions & 16 deletions go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

105 changes: 75 additions & 30 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions renovate.json

This file was deleted.

Loading

0 comments on commit a0668cc

Please sign in to comment.