Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Innvoke-pnpsitedesign #34

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/package-solution.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"solution": {
"name": "Site Designs Studio v2",
"id": "83580513-8ac2-4fdc-89f5-5f44e4364309",
"version": "2.0.1.0",
"version": "2.0.2.0",
"includeClientSideAssets": true,
"isDomainIsolated": false,
"skipFeatureDeployment": true,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "site-designs-studio-v2",
"version": "2.0.1",
"version": "2.0.2",
"private": true,
"main": "lib/index.js",
"engines": {
Expand Down
Binary file modified setup/PnPPowershell/SiteDesignsStudio.pnp
Binary file not shown.
2 changes: 1 addition & 1 deletion setup/PnPPowershell/setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ if ($credentialsName -ne "") {
}

$tenantId = Get-PnPTenantId
Apply-PnPTenantTemplate -Path .\SiteDesignsStudio.pnp -Parameter @{TenantName=$tenantName; SitePath=$sitePath; TenantId=$tenantId}
Invoke-PnPTenantTemplate -Path .\SiteDesignsStudio.pnp -Parameter @{TenantName=$tenantName; SitePath=$sitePath; TenantId=$tenantId}
Binary file modified setup/package/site-designs-studio-v2.sppkg
Binary file not shown.
8 changes: 7 additions & 1 deletion setup/publish/Publish.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ Write-Host "SPFx solution package built." -ForegroundColor Green
$pnpPackageFileName = "SiteDesignsStudio.pnp"
$pnpTemplateXmlFileName = "sdsv2-template.xml"

if ((test-path "../PnPPowershell/$pnpPackageFileName")) {
Remove-Item "../PnPPowershell/$pnpPackageFileName" -Force| Out-Null
}

Read-Host "STOP"

Write-Host "Building PnP setup package $pnpPackageFileName..." -ForegroundColor Yellow
# Copy the sppkg to /package folder
Copy-Item ../../sharepoint/solution/site-designs-studio-v2.sppkg ../package/site-designs-studio-v2.sppkg
Expand All @@ -26,7 +32,7 @@ Copy-Item ../../sharepoint/solution/site-designs-studio-v2.sppkg ../package/site
if (!(test-path "../PnPPowershell/debug/package")) {
mkdir ../PnPPowershell/debug/package | Out-Null
}
Copy-Item ../../sharepoint/solution/site-designs-studio-v2.sppkg ../PnPPowershell/debug/package/site-designs-studio-v2.sppkg | Out-Null
Copy-Item ../../sharepoint/solution/site-designs-studio-v2.sppkg ../PnPPowershell/debug/package/site-designs-studio-v2.sppkg | Out-Null

# Rebuild the .pnp file with the latest sppkg and tenant template
Set-Location ../PnPPowershell/debug/
Expand Down
2 changes: 1 addition & 1 deletion src/services/siteDesigns/SiteDesignsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class SiteDesignsService implements ISiteDesignsService {
return (this.baseUrl + '//' + relativeUrl).replace(/\/{2,}/, '/');
}

private async _restRequest<TResponse>(url: string, params: any = null): Promise<TResponse> {
private async _restRequest<TResponse>(url: string, params: any = {}): Promise<TResponse> {
const restUrl = this._getEffectiveUrl(url);
const options: ISPHttpClientOptions = {
body: JSON.stringify(params),
Expand Down