Skip to content

Commit c38f11d

Browse files
author
Vic Shóstak
authored
Merge pull request #61 from create-go-app/dev
Minor refactoring
2 parents a0a6aed + a76ce53 commit c38f11d

File tree

12 files changed

+22
-150
lines changed

12 files changed

+22
-150
lines changed

.dockerignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@ Dockerfile
88
Makefile
99
LICENSE
1010
**/*_test.go
11-
*.yml
1211
*.md
1312
*.out
1413

1514
# Folders
1615
.git/
1716
.github/
18-
app/
1917
tmp/

.github/workflows/testing_build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches: [dev]
66
paths:
7-
- "configs/**"
87
- "**.go"
98

109
jobs:

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22
**/.DS_Store
33

44
# Dev builds
5-
**/app/
65
**/build/
76
**/dist/
8-
**/cgapp-project/
97

108
# Tests
11-
*.out
129
**/tmp/
10+
*.out

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
.PHONY: test security install build release
1+
.PHONY: clean test security install build release
22

3-
test:
3+
clean:
4+
rm -rf ./tmp coverage.out
5+
6+
test: clean
47
go test -coverprofile=coverage.out ./...
58
go tool cover -func=coverage.out
69

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
</h1>
55
<p align="center">Create a new production-ready project with <b>backend</b> (Golang), <b>frontend</b> (JavaScript, TypeScript)<br/>and <b>deploy automation</b> (Ansible, Docker) by running one CLI command.<br/><br/>Focus on <b>writing</b> code and <b>thinking</b> of business-logic! The CLI will take care of the rest.</p>
66

7-
<p align="center"><a href="https://github.com/create-go-app/cli/releases" target="_blank"><img src="https://img.shields.io/badge/version-v1.7.0-blue?style=for-the-badge&logo=none" alt="cli version" /></a>&nbsp;<a href="https://pkg.go.dev/github.com/create-go-app/cli?tab=doc" target="_blank"><img src="https://img.shields.io/badge/Go-1.16+-00ADD8?style=for-the-badge&logo=go" alt="go version" /></a>&nbsp;<a href="https://gocover.io/github.com/create-go-app/cli/pkg/cgapp" target="_blank"><img src="https://img.shields.io/badge/Go_Cover-94%25-success?style=for-the-badge&logo=none" alt="go cover" /></a>&nbsp;<a href="https://goreportcard.com/report/github.com/create-go-app/cli" target="_blank"><img src="https://img.shields.io/badge/Go_report-A+-success?style=for-the-badge&logo=none" alt="go report" /></a>&nbsp;<img src="https://img.shields.io/badge/license-apache_2.0-red?style=for-the-badge&logo=none" alt="license" /></p>
7+
<p align="center"><a href="https://github.com/create-go-app/cli/releases" target="_blank"><img src="https://img.shields.io/badge/version-v1.7.1-blue?style=for-the-badge&logo=none" alt="cli version" /></a>&nbsp;<a href="https://pkg.go.dev/github.com/create-go-app/cli?tab=doc" target="_blank"><img src="https://img.shields.io/badge/Go-1.16+-00ADD8?style=for-the-badge&logo=go" alt="go version" /></a>&nbsp;<a href="https://gocover.io/github.com/create-go-app/cli/pkg/cgapp" target="_blank"><img src="https://img.shields.io/badge/Go_Cover-94%25-success?style=for-the-badge&logo=none" alt="go cover" /></a>&nbsp;<a href="https://goreportcard.com/report/github.com/create-go-app/cli" target="_blank"><img src="https://img.shields.io/badge/Go_report-A+-success?style=for-the-badge&logo=none" alt="go report" /></a>&nbsp;<img src="https://img.shields.io/badge/license-apache_2.0-red?style=for-the-badge&logo=none" alt="license" /></p>
88

99
## ⚡️ Quick start
1010

@@ -302,7 +302,7 @@ go install github.com/create-go-app/[email protected]
302302
>
303303
> For example: `mv $GOPATH/bin/cli $GOPATH/bin/cgapp_v1_6_0` and run it by `cgapp_v1_6_0`.
304304

305-
Found all available CLI versions on our [pkg.go.dev page](https://pkg.go.dev/github.com/create-go-app/cli?tab=versions).
305+
Found all available CLI versions on our [pkg.go.dev](https://pkg.go.dev/github.com/create-go-app/cli?tab=versions) page.
306306

307307
## ⭐️ Project assistance
308308

@@ -311,7 +311,7 @@ If you want to say **thank you** or/and support active development of `Create Go
311311
- Add a [GitHub Star](https://github.com/create-go-app/cli) to the project.
312312
- Twit about project [on your Twitter](https://twitter.com/intent/tweet?text=Create%20a%20new%20production-ready%20project%20with%20backend%20%28Golang%29%2C%20frontend%20%28JavaScript%2C%20TypeScript%29%20%26%20deploy%20automation%20%28Ansible%2C%20Docker%29%20by%20running%20one%20CLI%20command%21%20%F0%9F%9A%80%20https%3A%2F%2Fgithub.com%2Fcreate-go-app%2Fcli).
313313
- Write interesting articles about project on [Dev.to](https://dev.to/), [Medium](https://medium.com/) or personal blog.
314-
- Donate some money to the project's author via PayPal: [@paypal.me/koddr](https://paypal.me/koddr?locale.x=en_EN).
314+
- Join DigitalOcean at our [referral link](https://m.do.co/c/b41859fa9b6e) (your profit is **$100** and we get $25).
315315

316316
Together, we can make this project **better** every day! 😘
317317

go.sum

Lines changed: 0 additions & 129 deletions
Large diffs are not rendered by default.

pkg/cgapp/create_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func TestCreateProjectFromRegistry(t *testing.T) {
2323
args{
2424
p: &registry.Project{
2525
Type: "backend",
26-
Name: "echo",
26+
Name: "fiber",
2727
RootFolder: "../../tmp",
2828
},
2929
r: registry.Repositories,
@@ -49,7 +49,7 @@ func TestCreateProjectFromRegistry(t *testing.T) {
4949
args{
5050
p: &registry.Project{
5151
Type: "backend",
52-
Name: "echo",
52+
Name: "fiber",
5353
RootFolder: "../../tmp",
5454
},
5555
r: map[string]*registry.Repository{
@@ -83,7 +83,7 @@ func TestCreateProjectFromRegistry(t *testing.T) {
8383
args{
8484
p: &registry.Project{
8585
Type: "backend",
86-
Name: "echo",
86+
Name: "fiber",
8787
RootFolder: "../../tmp",
8888
},
8989
r: nil,
@@ -105,7 +105,7 @@ func TestCreateProjectFromRegistry(t *testing.T) {
105105
args{
106106
p: &registry.Project{
107107
Type: "backend",
108-
Name: "echo",
108+
Name: "fiber",
109109
RootFolder: "../../tmp",
110110
},
111111
r: registry.Repositories,

pkg/registry/configs/.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# A default .editorconfig for Create Go App project.
22
# Author: Vic Shóstak <[email protected]> (https://1wa.co)
3+
# For more information, please visit https://create-go.app/
34

45
root = true
56

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# A default .gitattributes for Create Go App project.
22
# Author: Vic Shóstak <[email protected]> (https://1wa.co)
3+
# For more information, please visit https://create-go.app/
34

45
go.sum merge=union

pkg/registry/configs/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# A default .gitignore for Create Go App project.
22
# Author: Vic Shóstak <[email protected]> (https://1wa.co)
3+
# For more information, please visit https://create-go.app/
34

45
# macOS
56
**/.DS_store

0 commit comments

Comments
 (0)