-
Notifications
You must be signed in to change notification settings - Fork 0
/
mig.json
86 lines (86 loc) · 2.5 KB
/
mig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
"name": "GoMig",
"intro": "You need git and go installed on your system.\nPlease select your preferred configuration:\n\n",
"message": "Visit github.com/gomig/boilerplate for usage guide",
"rules": [
{
"name": "desc",
"placeholder": "__desc__",
"desc": "description"
},
{
"name": "namespace",
"placeholder": "__ns__",
"desc": "namespace"
},
{
"name": "locale",
"placeholder": "__locale__",
"desc": "app locale",
"default": "fa"
},
{
"name": "config",
"default": "json",
"desc": "configuration driver",
"options": ["env", "json", "memory"],
"files": {
"env": ["config/config.env"],
"json": ["config/config.json"]
}
},
{
"name": "cache",
"default": "redis",
"desc": "cache driver",
"options": ["file", "redis"],
"files": {
"file": ["src/commands/cleanup.go"]
}
},
{
"name": "translator",
"default": "memory",
"desc": "translator driver",
"options": ["json", "memory"],
"files": {
"json": ["config/strings/__locale__"]
}
},
{
"name": "database",
"default": "mongo",
"desc": "database driver",
"options": ["mongo", "mysql", "postgres", "none"],
"files": {
"mysql": ["database", "src/app/mysql.go"],
"postgres": ["database", "src/app/postgres.go"],
"mongo": ["src/app/mongo.go"]
}
},
{
"name": "web",
"default": "y",
"desc": "include web (gofiber)",
"options": ["y", "n"],
"files": {
"y": [
"public",
"src/http",
"src/commands/serve.go",
"src/app/template.go",
"src/app/web.go"
]
}
}
],
"statics": ["database", "public", ".editorconfig", ".gitignore"],
"ignores": ["LICENSE", "README.md"],
"scripts": [
["go", "mod", "tidy"],
["go", "fmt", "./..."],
["git", "init"],
["git", "add", "."],
["git", "commit", "-m", "'initialize app'"]
]
}