Skip to content

Commit c38f11d

Browse files
author
Vic Shóstak
authoredFeb 27, 2021
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

-2
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

-1
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

+1-3
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

+5-2
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

+3-3
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/cli@1.6.0
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

-129
Large diffs are not rendered by default.

‎pkg/cgapp/create_test.go

+4-4
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

+1
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 <truewebartisans@gmail.com> (https://1wa.co)
3+
# For more information, please visit https://create-go.app/
34

45
root = true
56

‎pkg/registry/configs/.gitattributes

+1
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 <truewebartisans@gmail.com> (https://1wa.co)
3+
# For more information, please visit https://create-go.app/
34

45
go.sum merge=union

‎pkg/registry/configs/.gitignore

+1
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 <truewebartisans@gmail.com> (https://1wa.co)
3+
# For more information, please visit https://create-go.app/
34

45
# macOS
56
**/.DS_store

‎pkg/registry/configs/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# A default Makefile for Create Go App project.
22
# Author: Vic Shóstak <truewebartisans@gmail.com> (https://1wa.co)
3+
# For more information, please visit https://create-go.app/
34

45
.PHONY: test run build
56

‎pkg/registry/defaults.go

+5-6
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ import (
3434

3535
const (
3636
// CLIVersion version of Create Go App CLI.
37-
CLIVersion = "1.7.0"
37+
CLIVersion = "1.7.1"
3838
// RegexpAnsiblePattern pattern for Ansible roles.
3939
RegexpAnsiblePattern = "^(deploy)$"
4040
// RegexpBackendPattern pattern for backend.
41-
RegexpBackendPattern = "^(net/http|fiber|echo)$"
41+
RegexpBackendPattern = "^(net/http|fiber)$"
4242
// RegexpFrontendPattern pattern for backend.
4343
RegexpFrontendPattern = "^(p?react:?|vue(:?[\\w]+)?(:?[\\w-_0-9\\/]+)?|angular|svelte|sapper:?)"
4444
// RegexpWebServerPattern pattern for web/proxy servers.
@@ -52,12 +52,12 @@ type Project struct {
5252
RootFolder string
5353
}
5454

55-
// Repository ...
55+
// Repository struct for describe repositories collection.
5656
type Repository struct {
5757
List map[string]string
5858
}
5959

60-
// Command ...
60+
// Command struct for describe commands collection.
6161
type Command struct {
6262
Runner string
6363
Create string
@@ -114,7 +114,6 @@ var (
114114
List: map[string]string{
115115
"net/http": "github.com/create-go-app/net_http-go-template",
116116
"fiber": "github.com/create-go-app/fiber-go-template",
117-
"echo": "github.com/create-go-app/echo-go-template",
118117
},
119118
},
120119

@@ -175,7 +174,7 @@ var (
175174
Name: "backend",
176175
Prompt: &survey.Select{
177176
Message: "Choose a backend framework:",
178-
Options: []string{"net/http", "Fiber", "Echo", "Gin"},
177+
Options: []string{"net/http", "Fiber"},
179178
Default: "Fiber",
180179
},
181180
Validate: survey.Required,

0 commit comments

Comments
 (0)