-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathrecipe.cake
23 lines (18 loc) · 1013 Bytes
/
recipe.cake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#load nuget:?package=Cake.VsCode.Recipe&version=0.1.0
Environment.SetVariableNames();
BuildParameters.SetParameters(context: Context,
buildSystem: BuildSystem,
title: "chocolatey-vscode",
repositoryOwner: "chocolatey-community",
repositoryName: "chocolatey-vscode",
appVeyorAccountName: "chocolateycommunity",
shouldRunGitVersion: true,
shouldDeployGraphDocumentation: false);
// We remove the installation of typescript
// as it conflicts with the version used
// in this repository.
var packageTask = (CakeTask)BuildParameters.Tasks.PackageExtensionTask.Task;
var taskToRemove = packageTask.Dependencies.First(x => x.Name == BuildParameters.Tasks.InstallTypeScriptTask.Task.Name);
packageTask.Dependencies.Remove(taskToRemove);
BuildParameters.PrintParameters(Context);
Build.Run();