Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit 606fbb3

Browse files
authored
Merge pull request #1 from aspnet/dev
Synchronising branch with main branch
2 parents 3162946 + 0a1ac6a commit 606fbb3

File tree

90 files changed

+648
-1162
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+648
-1162
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,5 @@ npm-debug.log
3939
/templates/*/ClientApp/dist/
4040
/templates/*/yarn.lock
4141
.vscode/
42+
43+
/templates/*/Properties/launchSettings.json

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@ addons:
1010
- libssl-dev
1111
- libunwind8
1212
- zlib1g
13-
mono:
14-
- 4.0.5
13+
mono: none
1514
os:
1615
- linux
1716
- osx
1817
osx_image: xcode7.1
1918
script:
20-
- ./build.sh verify
19+
- ./build.sh

JavaScriptServices.sln

Lines changed: 125 additions & 103 deletions
Large diffs are not rendered by default.

NuGet.config

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<packageSources>
4+
<add key="AspNetCore" value="https://dotnet.myget.org/F/aspnetcore-ci-dev/api/v3/index.json" />
5+
<add key="AspNetCoreTools" value="https://dotnet.myget.org/F/aspnetcore-tools/api/v3/index.json" />
6+
<add key="NuGet" value="https://api.nuget.org/v3/index.json" />
7+
</packageSources>
8+
</configuration>

NuGet.master.config

Lines changed: 0 additions & 8 deletions
This file was deleted.

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ artifacts:
2828
- path: templates\package-builder\dist\artifacts\*.nupkg
2929
name: Microsoft.AspNetCore.SpaTemplates
3030
type: NuGetPackage
31-
# - build.cmd verify
31+
# - ps: .\build.ps1
3232
clone_depth: 1
3333
test_script:
3434
# - dotnet restore ./src

build.ps1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
$ErrorActionPreference = "Stop"
22

3-
function DownloadWithRetry([string] $url, [string] $downloadLocation, [int] $retries)
3+
function DownloadWithRetry([string] $url, [string] $downloadLocation, [int] $retries)
44
{
55
while($true)
66
{
@@ -19,7 +19,7 @@ function DownloadWithRetry([string] $url, [string] $downloadLocation, [int] $ret
1919
Start-Sleep -Seconds 10
2020

2121
}
22-
else
22+
else
2323
{
2424
$exception = $_.Exception
2525
throw $exception
@@ -43,18 +43,18 @@ $buildFolder = ".build"
4343
$buildFile="$buildFolder\KoreBuild.ps1"
4444

4545
if (!(Test-Path $buildFolder)) {
46-
Write-Host "Downloading KoreBuild from $koreBuildZip"
47-
46+
Write-Host "Downloading KoreBuild from $koreBuildZip"
47+
4848
$tempFolder=$env:TEMP + "\KoreBuild-" + [guid]::NewGuid()
4949
New-Item -Path "$tempFolder" -Type directory | Out-Null
5050

5151
$localZipFile="$tempFolder\korebuild.zip"
52-
52+
5353
DownloadWithRetry -url $koreBuildZip -downloadLocation $localZipFile -retries 6
5454

5555
Add-Type -AssemblyName System.IO.Compression.FileSystem
5656
[System.IO.Compression.ZipFile]::ExtractToDirectory($localZipFile, $tempFolder)
57-
57+
5858
New-Item -Path "$buildFolder" -Type directory | Out-Null
5959
copy-item "$tempFolder\**\build\*" $buildFolder -Recurse
6060

@@ -64,4 +64,4 @@ if (!(Test-Path $buildFolder)) {
6464
}
6565
}
6666

67-
&"$buildFile" $args
67+
&"$buildFile" @args

build.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ buildFile="$buildFolder/KoreBuild.sh"
1212

1313
if test ! -d $buildFolder; then
1414
echo "Downloading KoreBuild from $koreBuildZip"
15-
16-
tempFolder="/tmp/KoreBuild-$(uuidgen)"
15+
16+
tempFolder="/tmp/KoreBuild-$(uuidgen)"
1717
mkdir $tempFolder
18-
18+
1919
localZipFile="$tempFolder/korebuild.zip"
20-
20+
2121
retries=6
2222
until (wget -O $localZipFile $koreBuildZip 2>/dev/null || curl -o $localZipFile --location $koreBuildZip 2>/dev/null)
2323
do
@@ -29,18 +29,18 @@ if test ! -d $buildFolder; then
2929
echo "Waiting 10 seconds before retrying. Retries left: $retries"
3030
sleep 10s
3131
done
32-
32+
3333
unzip -q -d $tempFolder $localZipFile
34-
34+
3535
mkdir $buildFolder
3636
cp -r $tempFolder/**/build/** $buildFolder
37-
37+
3838
chmod +x $buildFile
39-
39+
4040
# Cleanup
4141
if test ! -d $tempFolder; then
42-
rm -rf $tempFolder
42+
rm -rf $tempFolder
4343
fi
4444
fi
4545

46-
$buildFile -r $repoFolder "$@"
46+
$buildFile -r $repoFolder "$@"
File renamed without changes.

build/common.props

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<Project>
2+
3+
<Import Project="dependencies.props" />
4+
5+
<PropertyGroup>
6+
<Product>Microsoft ASP.NET Core</Product>
7+
<RepositoryUrl>https://github.com/aspnet/javascriptservices</RepositoryUrl>
8+
<RepositoryType>git</RepositoryType>
9+
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)Key.snk</AssemblyOriginatorKeyFile>
10+
<SignAssembly>true</SignAssembly>
11+
<PublicSign Condition="'$(OS)' != 'Windows_NT'">true</PublicSign>
12+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
13+
</PropertyGroup>
14+
15+
<ItemGroup>
16+
<PackageReference Include="Internal.AspNetCore.Sdk" Version="1.0.1-*" PrivateAssets="All" />
17+
</ItemGroup>
18+
</Project>

0 commit comments

Comments
 (0)