-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Loic Denuziere
committed
Apr 13, 2019
1 parent
0ae94ac
commit 5a7df92
Showing
11 changed files
with
1,042 additions
and
357 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,7 @@ obj/ | |
/paket-files/ | ||
/.vscode/ | ||
nuget/*.paket.template | ||
.paket/.store/ | ||
.paket/*.exe | ||
.paket/paket | ||
.paket/fake |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<Project ToolsVersion="15.0"> | ||
|
||
<Import Project="$(MSBuildThisFileDirectory)paket.bootstrapper.props" Condition="Exists('$(MSBuildThisFileDirectory)paket.bootstrapper.props')" /> | ||
|
||
<PropertyGroup> | ||
<RepoRoot>$(MSBuildThisFileDirectory.TrimEnd('\\').TrimEnd('/'))</RepoRoot> | ||
|
||
<PaketBootstrapperExe>$(RepoRoot)\paket.bootstrapper.exe</PaketBootstrapperExe> | ||
<PaketBootstrapperExe Condition=" '$(OS)' != 'Windows_NT' ">$(RepoRoot)/paket.bootstrapper</PaketBootstrapperExe> | ||
<PaketExe>$(RepoRoot)\paket.exe</PaketExe> | ||
<PaketExe Condition=" '$(OS)' != 'Windows_NT' ">$(RepoRoot)/paket</PaketExe> | ||
</PropertyGroup> | ||
|
||
<Target Name="InstallPaketBootstrapper" Condition="Exists('$(PaketBootstrapperExe)') == false"> | ||
<Message Text='Installing paket.bootstrapper' Importance="High"/> | ||
<PropertyGroup> | ||
<InstallBootstrapperCommand>dotnet tool install paket.bootstrapper --tool-path "$(RepoRoot)"</InstallBootstrapperCommand> | ||
<InstallBootstrapperCommand Condition=" '$(PaketBootstrapperVersion)' != '' ">$(InstallBootstrapperCommand) --version "[$(PaketBootstrapperVersion)]"</InstallBootstrapperCommand> | ||
<InstallBootstrapperCommand Condition=" '$(PaketBootstrapperFeed)' != '' ">$(InstallBootstrapperCommand) --add-source "$(PaketBootstrapperFeed)"</InstallBootstrapperCommand> | ||
<InstallBootstrapperCommand Condition=" '$(InstallBootstrapperOtherArgs)' != '' ">$(InstallBootstrapperCommand) $(InstallBootstrapperOtherArgs)"</InstallBootstrapperCommand> | ||
</PropertyGroup> | ||
<Exec Command="$(InstallBootstrapperCommand)" WorkingDirectory="$(RepoRoot)" /> | ||
</Target> | ||
|
||
<Target Name="InstallPaket" DependsOnTargets="InstallPaketBootstrapper" Condition="Exists('$(PaketExe)') == false"> | ||
<Message Text='Running paket.bootstrapper to install paket' Importance="High"/> | ||
<PropertyGroup> | ||
<RunBootstrapperCommand>$(PaketBootstrapperExe) --as-tool --output-dir=$(RepoRoot)</RunBootstrapperCommand> | ||
<RunBootstrapperCommand Condition=" Exists('$(RepoRoot)\paket.bootstrapper.exe.config') ">$(RunBootstrapperCommand) --config-file=$(RepoRoot)/paket.bootstrapper.exe.config</RunBootstrapperCommand> | ||
<RunBootstrapperCommand Condition=" '$(RunBootstrapperOtherArgs)' != '' ">$(RunBootstrapperCommand) $(RunBootstrapperOtherArgs)</RunBootstrapperCommand> | ||
</PropertyGroup> | ||
<Exec Command='$(RunBootstrapperCommand)' WorkingDirectory="$(RepoRoot)" /> | ||
</Target> | ||
|
||
<Target Name="Restore" DependsOnTargets="InstallPaket"> | ||
<Message Text='Paket ready, checking version:' Importance="High"/> | ||
<Exec Command='$(PaketExe) --version' WorkingDirectory="$(RepoRoot)" /> | ||
</Target> | ||
|
||
<Import Project="$(MSBuildThisFileDirectory)paket.bootstrapper.targets" Condition="Exists('$(MSBuildThisFileDirectory)paket.bootstrapper.targets')" /> | ||
|
||
</Project> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<Project ToolsVersion="15.0"> | ||
|
||
<PropertyGroup> | ||
<PaketBootstrapperVersion>5.180.414</PaketBootstrapperVersion> | ||
<PaketBootstrapperFeed>https://www.myget.org/F/paket-netcore-as-tool/api/v2</PaketBootstrapperFeed> | ||
</PropertyGroup> | ||
|
||
</Project> |
Binary file not shown.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
@echo off | ||
setlocal | ||
|
||
dotnet restore | ||
if errorlevel 1 exit /b %errorlevel% | ||
|
||
if not "%WsUpdate%"=="" ( | ||
.paket\paket.exe update -g wsbuild --no-install | ||
if errorlevel 1 exit /b %errorlevel% | ||
) | ||
|
||
.paket\paket.exe restore | ||
if errorlevel 1 exit /b %errorlevel% | ||
|
||
call paket-files\wsbuild\github.com\dotnet-websharper\build-script\WebSharper.Fake.cmd %* | ||
call paket-files\wsbuild\github.com\dotnet-websharper\build-script\build.cmd %* |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,8 @@ | ||
#r "paket: groupref build //" | ||
#load "paket-files/wsbuild/github.com/dotnet-websharper/build-script/WebSharper.Fake.fsx" | ||
open Fake | ||
open WebSharper.Fake | ||
|
||
let targets = | ||
WSTargets.Default (fun () -> GetSemVerOf "WebSharper" |> ComputeVersion) | ||
|> MakeTargets | ||
|
||
Target "Build" DoNothing | ||
targets.BuildDebug ==> "Build" | ||
|
||
Target "CI-Release" DoNothing | ||
targets.CommitPublish ==> "CI-Release" | ||
|
||
RunTargetOrDefault "Build" | ||
LazyVersionFrom "WebSharper" | ||
|> WSTargets.Default | ||
|> MakeTargets | ||
|> RunTargets |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,9 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
paket() { | ||
if [ "$OS" = "Windows_NT" ]; then | ||
.paket/paket.exe "$@" | ||
else | ||
mono .paket/paket.exe "$@" | ||
fi | ||
} | ||
dotnet restore | ||
|
||
if [ "$WsUpdate" != "" ]; then | ||
paket update -g wsbuild --no-install | ||
.paket/paket update -g wsbuild --no-install | ||
fi | ||
|
||
paket restore | ||
|
||
exec paket-files/wsbuild/github.com/dotnet-websharper/build-script/WebSharper.Fake.sh "$@" | ||
. paket-files/wsbuild/github.com/dotnet-websharper/build-script/build.sh "$@" |
This file contains 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
Oops, something went wrong.