Skip to content

Commit decf8c9

Browse files
adrggunnsth
authored andcommitted
Reorganize project structure (#38)
* Reorganize project * Update .goreleaser.yml * Update unipdf to version 3.0.1 * Remove goreleaser from .travis.yml * Update README.md * Add Makefile * Add golint and go vet to .travis.yml * Fix .travis.yml * Add before_install section to .travis.yml
1 parent d9f6f06 commit decf8c9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+306
-171
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
unipdf
2-
unicli
1+
cmd/unipdf/unipdf
32
*.pdf
43
*.fdf
54
*.zip

.goreleaser.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
project_name: unicli
1+
project_name: unipdf-cli
22

33
release:
44
github:
55
owner: unidoc
6-
name: unicli
7-
6+
name: unipdf-cli
7+
before:
8+
hooks:
9+
- go mod download
810
builds:
9-
- binary: unicli
11+
- binary: unipdf
1012
goos:
1113
- darwin
1214
- windows
@@ -17,25 +19,23 @@ builds:
1719
env:
1820
- CGO_ENABLED=0
1921
- GO111MODULE=on
20-
main: .
21-
22-
archive:
23-
format: tar.gz
24-
wrap_in_directory: true
25-
format_overrides:
26-
- goos: windows
27-
format: zip
28-
name_template: '{{ .Binary }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
29-
files:
30-
- LICENSE
31-
- README.md
32-
22+
main: ./cmd/unipdf/main.go
23+
archives:
24+
- id: default
25+
format: tar.gz
26+
wrap_in_directory: true
27+
format_overrides:
28+
- goos: windows
29+
format: zip
30+
name_template: '{{ .Binary }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
31+
files:
32+
- LICENSE
33+
- README.md
34+
dist: bin
3335
snapshot:
3436
name_template: SNAPSHOT-{{ .Commit }}
35-
3637
checksum:
3738
name_template: '{{ .ProjectName }}-{{ .Version }}-checksums.txt'
38-
3939
changelog:
4040
sort: asc
4141
filters:

.travis.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@ go:
44
- tip
55
env:
66
- GO111MODULE=on
7-
deploy:
8-
- provider: script
9-
skip_cleanup: true
10-
script: curl -sL https://git.io/goreleaser | bash
11-
on:
12-
tags: true
13-
condition: $TRAVIS_OS_NAME = linux
7+
before_install:
8+
- go get golang.org/x/lint/golint
9+
script:
10+
- go vet ./...
11+
- golint ./...

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
all: build
2+
build:
3+
GO111MODULE=on go build -o ./bin/unipdf ./cmd/unipdf/main.go
4+
build-all:
5+
goreleaser --snapshot --skip-publish --rm-dist
6+
release:
7+
goreleaser release
8+
clean:
9+
rm -rf ./bin

0 commit comments

Comments
 (0)