|
|
|
"use strict";
|
|
|
|
|
|
|
|
import { GenericTask } from "../types";
|
|
|
|
import cleanupafterdotnetbuild from "./cleanupafterdotnetbuild";
|
|
|
|
import dotnetbuildwithoutcleanup from "./dotnetbuildwithoutcleanup";
|
|
|
|
import sequential from "./sequential";
|
|
|
|
|
|
|
|
interface IDotNetBuildParameters {
|
|
|
|
readonly skipMbsCheckStyle?: boolean;
|
|
|
|
readonly forceCodeAnalysis?: boolean;
|
|
|
|
readonly ignoreCodeAnalysis?: boolean;
|
|
|
|
readonly skipCodeAnalysis: boolean;
|
|
|
|
readonly skipCodeSigning?: boolean;
|
|
|
|
readonly skipNugetRestore?: boolean;
|
|
|
|
readonly configuration: string;
|
|
|
|
readonly solution: string;
|
|
|
|
readonly ignoreCodeStyle: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
export default ((params) => (processor) => sequential({
|
|
|
|
tasks: [
|
|
|
|
{
|
|
|
|
name: "build",
|
|
|
|
task: dotnetbuildwithoutcleanup(params),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "cleanup",
|
|
|
|
task: cleanupafterdotnetbuild({}),
|
|
|
|
},
|
|
|
|
],
|
|
|
|
})(processor)) as GenericTask<IDotNetBuildParameters>;
|