aboutsummaryrefslogtreecommitdiffstats
path: root/vnfmarket/src/main/webapp/common/thirdparty/bootstrap/nuget/MyGet.ps1
diff options
context:
space:
mode:
Diffstat (limited to 'vnfmarket/src/main/webapp/common/thirdparty/bootstrap/nuget/MyGet.ps1')
-rw-r--r--vnfmarket/src/main/webapp/common/thirdparty/bootstrap/nuget/MyGet.ps18
1 files changed, 8 insertions, 0 deletions
diff --git a/vnfmarket/src/main/webapp/common/thirdparty/bootstrap/nuget/MyGet.ps1 b/vnfmarket/src/main/webapp/common/thirdparty/bootstrap/nuget/MyGet.ps1
new file mode 100644
index 00000000..417d33df
--- /dev/null
+++ b/vnfmarket/src/main/webapp/common/thirdparty/bootstrap/nuget/MyGet.ps1
@@ -0,0 +1,8 @@
+$nuget = $env:NuGet
+
+# parse the version number out of package.json
+$bsversion = ((Get-Content $env:SourcesPath\package.json) -join "`n" | ConvertFrom-Json).version
+
+# create packages
+& $nuget pack "nuget\bootstrap.nuspec" -Verbosity detailed -NonInteractive -NoPackageAnalysis -BasePath $env:SourcesPath -Version $bsversion
+& $nuget pack "nuget\bootstrap.less.nuspec" -Verbosity detailed -NonInteractive -NoPackageAnalysis -BasePath $env:SourcesPath -Version $bsversion