π
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param($installPath, $toolsPath, $package, $project) | |
# This is the MSBuild targets file to add | |
$targetsFile = [System.IO.Path]::Combine($toolsPath, $package.Id + '.targets') | |
# Need to load MSBuild assembly if it's not loaded yet. | |
Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' | |
# Grab the loaded MSBuild project for the project | |
# Normalize project path before calling GetLoadedProjects as it performs a string based match | |
$msbuild = [Microsoft.Build.Evaluation.ProjectCollection]::GlobalProjectCollection.GetLoadedProjects([System.IO.Path]::GetFullPath($project.FullName)) | Select-Object -First 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param($installPath, $toolsPath, $package, $project) | |
. (Join-Path $toolsPath "GetNancyRazorBuildProviderPostBuildCmd.ps1") | |
# Get the current Post Build Event cmd | |
$currentPostBuildCmd = $project.Properties.Item("PostBuildEvent").Value | |
# Append our post build command if it's not already there | |
if (!$currentPostBuildCmd.Contains($NancyRazorBuildProviderPostBuildCmd)) { | |
$project.Properties.Item("PostBuildEvent").Value += $NancyRazorBuildProviderPostBuildCmd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<jslint> | |
<file name="App/app.ts"> | |
<issue line="1" char="13" reason="missing whitespace"/> | |
<issue line="2" char="5" reason="comment must start with a space"/> | |
</file> | |
<file name="App/some-folder/data.ts"> | |
<issue line="1" char="13" reason="missing whitespace"/> | |
<issue line="2" char="19" reason="missing whitespace"/> | |
<issue line="2" char="20" reason="missing whitespace"/> | |
<issue line="2" char="21" reason="expected variableDeclarator: 'SOME_VARIABLE' to have a typedef."/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SpringloopsHandler : ServiceHookHandlerBase | |
{ | |
public override DeployAction TryParseDeploymentInfo(HttpRequestBase request, JObject payload, string targetBranch, out DeploymentInfo deploymentInfo) | |
{ | |
string deployer = payload.Value<string>("domain"); | |
if (!"springloops.io".Equals(deployer, StringComparison.OrdinalIgnoreCase)) | |
{ | |
deploymentInfo = null; | |
return DeployAction.UnknownPayload; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Net; | |
using System.Threading; | |
using JabbR.Client.Models; | |
namespace JabbR.Client.Sample | |
{ | |
class Program | |
{ |
NewerOlder