-
Notifications
You must be signed in to change notification settings - Fork 8
/
pipelines.go
28 lines (26 loc) · 1.05 KB
/
pipelines.go
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
package generator
import (
"github.com/mify-io/mify/pkg/generator/core"
apigateway "github.com/mify-io/mify/pkg/generator/steps/api-gateway"
devrunner "github.com/mify-io/mify/pkg/generator/steps/dev-runner"
"github.com/mify-io/mify/pkg/generator/steps/migrate"
"github.com/mify-io/mify/pkg/generator/steps/layout"
mifygenerated "github.com/mify-io/mify/pkg/generator/steps/mify-generated"
"github.com/mify-io/mify/pkg/generator/steps/openapi"
"github.com/mify-io/mify/pkg/generator/steps/postgres"
"github.com/mify-io/mify/pkg/generator/steps/prepare"
"github.com/mify-io/mify/pkg/generator/steps/schema"
)
func BuildServicePipeline() core.Pipeline {
return core.NewPipelineBuilder().
Register(schema.NewSchemaStep()).
Register(prepare.NewPrepareStep()).
Register(apigateway.NewApiGatewaySchemaStep()).
Register(migrate.NewMigrateStep()).
Register(openapi.NewOpenapiStep()).
Register(postgres.NewPostgresStep()).
Register(layout.NewLayoutStep()).
Register(mifygenerated.NewMifyGeneratedStep()).
Register(devrunner.NewDevRunnerStep()).
Build()
}