Skip to main content

创建MonoRepo

当前目录下初始化创建新的monorepo项目

gf init yourProjectName -m

在原有的monorepo当中创建project

gf init app/yourProjectName -a

以下是gf init -h 列出所有option

account@mypc ~ % gf init -h
USAGE
gf init ARGUMENT [OPTION]

ARGUMENT
NAME name for the project. It will create a folder with NAME in current directory.
The NAME will also be the module name for the project.

OPTION
-m, --mono initialize a mono-repo instead a single-repo
-a, --monoApp initialize a mono-repo-app instead a single-repo
-u, --update update to the latest goframe version
-g, --module custom go module
-h, --help more information about this command

EXAMPLE
gf init my-project
gf init my-mono-repo -m
gf init my-mono-repo -a