Skip to main content

Create Server Git Ignore

Creates the .gitignore file for the server.

Event Name

CreateServerGitIgnore

Event Params

export interface CreateServerGitIgnoreParams extends EventParams {
gitignorePaths: string[];
}

Example

beforeCreateServerGitIgnore(
context: dotnetTypes.DsgContext,
eventParams: dotnet.CreateServerGitIgnoreParams
): Promise<dotnet.CreateServerGitIgnoreParams> {
eventParams.gitignorePaths.push(
"*.user",
"*.userosscache",
"*.sln.docstates",
"[Tt]est[Rr]esult*"
);
return eventParams;
}