Permalink
Browse files

Small fixes to the setup process.

  • Loading branch information...
PaoloPia committed Oct 3, 2017
1 parent a258616 commit 7711e991d1ebc9d1d76bf7e878b9f16cbdb608b0
Binary file not shown.
@@ -113,6 +113,7 @@ try
Push-Location ..\GDPRStarterKit
$cdnSiteAssetsFullUrl = "https://publiccdn.sharepointonline.com/" + $spoTenantName + "/sites/" + $CDNSiteName + "/" + $CDNLibraryName + "/GDPRActivityHub"
& npm install --save
& gulp update-manifest --cdnpath "$cdnSiteAssetsFullUrl"
& gulp clean
& gulp bundle --ship
@@ -128,16 +129,10 @@ try
$context.Load($packageFolder)
Execute-PnPQuery
$cdnSiteAssetsUploadUrl = $CDNLibraryName + "/GDPRActivityHub"
foreach ($file in (dir ..\GDPRStarterKit\temp\deploy -File))
{
$fileStream = New-Object IO.FileStream($file.FullName, [System.IO.FileMode]::Open)
$fileCreationInfo = New-Object Microsoft.SharePoint.Client.FileCreationInformation
$fileCreationInfo.Overwrite = $true
$fileCreationInfo.ContentStream = $fileStream
$fileCreationInfo.URL = $file
$upload = $packageFolder.Files.Add($fileCreationInfo)
$context.Load($upload)
Execute-PnPQuery
$uploadedFile = Add-PnPFile -Path $file.FullName -Folder $cdnSiteAssetsUploadUrl
}
# Configure the CDN at the tenant level

0 comments on commit 7711e99

Please sign in to comment.