Skip to content

Commit

Permalink
Try to get FAKE in.
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacabraham committed Apr 4, 2016
1 parent 77f6448 commit 756aea5
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 15 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ src/packages/*
packages/
output/
paket-files/
.fake/
3 changes: 3 additions & 0 deletions Demonstrator.sln
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ EndProject
Project("{151D2E53-A2C4-4D7D-83FE-D05416EBD58E}") = "ResourceGroup", "src\ResourceGroup\ResourceGroup.deployproj", "{4EBA46A3-7F9E-4F4C-9D50-98E9DA683EBB}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Deployment", "Deployment", "{918DD70D-0D7E-458A-9C4E-E52247514FD4}"
ProjectSection(SolutionItems) = preProject
build.fsx = build.fsx
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
1 change: 1 addition & 0 deletions build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ setlocal enabledelayedexpansion
:: Restore NuGet packages
.paket\paket.bootstrapper.exe
.paket\paket.exe restore
packages\FAKE\tools\FAKE.exe build.fsx

:: Copy static site content over
xcopy src\webhost "%DEPLOYMENT_TEMP%\" /Y /E /Q /EXCLUDE:excludes.txt
Expand Down
56 changes: 56 additions & 0 deletions build.fsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
// --------------------------------------------------------------------------------------
// FAKE build script
// --------------------------------------------------------------------------------------

#I @"packages/FAKE/tools/"
#r @"FakeLib.dll"

open Fake
open System

Environment.CurrentDirectory <- __SOURCE_DIRECTORY__

let solutionFile = "Demonstrator.sln"

let deploymentTemp,
deploymentTarget,
nextManifestPath,
previousManifestPath,
kuduSyncCmd =
getBuildParam "DEPLOYMENT_TEMP",
getBuildParam "DEPLOYMENT_TARGET",
getBuildParam "NEXT_MANIFEST_PATH",
getBuildParam "PREVIOUS_MANIFEST_PATH",
getBuildParam "KUDU_SYNC_CMD"

Target "BuildSolution" (fun _ ->
!! solutionFile
|> MSBuildRelease deploymentTemp "Rebuild"
|> ignore)

Target "CopyWebsite" (fun _ ->
!! @"src\webhost\**"
-- @"src\webhost\typings"
-- @"src\webhost\**\*.fs"
-- @"src\webhost\**\*.config"
-- @"src\webhost\**\*.references"
-- @"src\webhost\tsconfig.json"
|> FileHelper.CopyFiles deploymentTemp)

Target "DeployWebJob" (fun _ ->
@"src\Sample.fsx"
|> FileHelper.CopyFile (deploymentTemp + @"\app_data\jobs\continuous\Sample\"))

Target "DeployWebsite" (fun _ ->
ProcessHelper.ExecProcess(fun psi ->
psi.FileName <- kuduSyncCmd
psi.Arguments <- sprintf """-v 50 -f "%s" -t "%s" -n "%s" -p "%s" -i ".git;.hg;.deployment;deploy.cmd""" deploymentTemp deploymentTarget nextManifestPath previousManifestPath)
TimeSpan.Zero
|> ignore)

"CopyWebsite"
==> "BuildSolution"
==> "DeployWebJob"
==> "DeployWebsite"

RunTargetOrDefault "DeployWebsite"
27 changes: 14 additions & 13 deletions paket.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,32 @@ NUGET
remote: https://www.nuget.org/api/v2
specs:
Deedle (1.2.4)
FAKE (4.23)
FSharp.Core (4.0.0.1)
FSharp.Data (2.2.5)
Google.DataTable.Net.Wrapper (3.1.2) - content: none
Microsoft.ApplicationInsights (2.0.0) - content: none
Microsoft.ApplicationInsights (2.0) - content: none
Microsoft.ApplicationInsights.Agent.Intercept (1.2.1) - content: none
Microsoft.ApplicationInsights.DependencyCollector (2.0.0) - content: none
Microsoft.ApplicationInsights (2.0.0)
Microsoft.ApplicationInsights.DependencyCollector (2.0) - content: none
Microsoft.ApplicationInsights (2.0)
Microsoft.ApplicationInsights.Agent.Intercept (>= 1.2.1)
Microsoft.ApplicationInsights.PerfCounterCollector (2.0.0) - content: none
Microsoft.ApplicationInsights (2.0.0)
Microsoft.ApplicationInsights.PerfCounterCollector (2.0) - content: none
Microsoft.ApplicationInsights (2.0)
Microsoft.ApplicationInsights.TraceListener (1.2.6) - content: none
Microsoft.ApplicationInsights (>= 1.2.3)
Microsoft.ApplicationInsights.WindowsServer (2.0.0) - content: none
Microsoft.ApplicationInsights (2.0.0)
Microsoft.ApplicationInsights.DependencyCollector (>= 2.0.0)
Microsoft.ApplicationInsights.PerfCounterCollector (>= 2.0.0)
Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel (2.0.0)
Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel (2.0.0) - content: none
Microsoft.ApplicationInsights (2.0.0)
Microsoft.ApplicationInsights.WindowsServer (2.0) - content: none
Microsoft.ApplicationInsights (2.0)
Microsoft.ApplicationInsights.DependencyCollector (>= 2.0)
Microsoft.ApplicationInsights.PerfCounterCollector (>= 2.0)
Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel (2.0)
Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel (2.0) - content: none
Microsoft.ApplicationInsights (2.0)
Microsoft.AspNet.WebApi.Client (5.2.3)
Newtonsoft.Json (>= 6.0.4)
Microsoft.AspNet.WebApi.Core (5.2.3)
Microsoft.AspNet.WebApi.Client (>= 5.2.3)
Microsoft.AspNet.WebApi.Owin (5.2.3)
Microsoft.AspNet.WebApi.Core (>= 5.2.3 < 5.3.0)
Microsoft.AspNet.WebApi.Core (>= 5.2.3 < 5.3)
Microsoft.Owin (>= 2.0.2)
Owin (>= 1.0)
Microsoft.Owin (3.0.1)
Expand Down
2 changes: 0 additions & 2 deletions src/SuaveHost/paket.references
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
FSharp.Core
Suave
Newtonsoft.Json
FSharp.Data
Microsoft.ApplicationInsights.TraceListener
Microsoft.ApplicationInsights.WindowsServer

File:Domain.fs
File:Logic.fs

0 comments on commit 756aea5

Please sign in to comment.