Update build
This commit is contained in:
@@ -52,20 +52,16 @@ internal static class Build
|
||||
{
|
||||
const string slash = "/";
|
||||
const string fsdFilePath = "fsd/Oap.Api.v1.fsd";
|
||||
const string clientProject = "OapApi.v1.Client";
|
||||
const string webApiProject = "OapApi.v1";
|
||||
//const string clientProject = "Oap.Api.v1.Client";
|
||||
const string webApiProject = "Oap.Api.v1";
|
||||
|
||||
var csharpCodeGenerator = DotNetLocalTool.Create("fsdgencsharp");
|
||||
var aspnetCodeGenerator = DotNetLocalTool.Create("fsdgenaspnet");
|
||||
var mdCodeGenerator = DotNetLocalTool.Create("fsdgenmd");
|
||||
var swaggerCodeGenerator = DotNetLocalTool.Create("fsdgenswagger");
|
||||
var jsCodeGenerator = DotNetLocalTool.Create("fsdgenjs");
|
||||
|
||||
var verifyOption = verify ? "--verify" : null;
|
||||
|
||||
csharpCodeGenerator.Run(fsdFilePath, Path.Combine("src", clientProject) + slash, "--namespace", clientProject, "--clean", "--newline", "lf", verifyOption);
|
||||
aspnetCodeGenerator.Run(fsdFilePath, Path.Combine("src", "Modules", webApiProject, "Controllers"), "--namespace", $"{webApiProject}.Controllers", "--newline", "lf", verifyOption, "--target", "core");
|
||||
mdCodeGenerator.Run(fsdFilePath, Path.Combine("docs", "api") + slash, "--clean", "--newline", "lf", verifyOption);
|
||||
swaggerCodeGenerator.Run(fsdFilePath, Path.Combine("src", "Modules", webApiProject, "swagger.json"), "--json", "--newline", "lf", verifyOption);
|
||||
csharpCodeGenerator.Run(fsdFilePath, Path.Combine("src", "OAP", webApiProject) + slash, "--namespace", webApiProject, "--clean", "--newline", "lf", verifyOption);
|
||||
jsCodeGenerator.Run(fsdFilePath, Path.Combine("src", "OAP", "Oap.Theme.Svelte", "src", "lib", "oap") + slash, "--module", "OapApiV1Client", "--typescript", "--newline", "lf", verifyOption);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user