From d42c8b528eb595101954f478e0024e3f079f6fbf Mon Sep 17 00:00:00 2001 From: schneefux Date: Wed, 22 Mar 2017 19:19:26 +0100 Subject: first implementation of fun stats site --- templates/assets/bootstrap/nuget/MyGet.ps1 | 18 +++++++++++++++ templates/assets/bootstrap/nuget/bootstrap.nuspec | 27 ++++++++++++++++++++++ .../assets/bootstrap/nuget/bootstrap.sass.nuspec | 27 ++++++++++++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 templates/assets/bootstrap/nuget/MyGet.ps1 create mode 100644 templates/assets/bootstrap/nuget/bootstrap.nuspec create mode 100644 templates/assets/bootstrap/nuget/bootstrap.sass.nuspec (limited to 'templates/assets/bootstrap/nuget') diff --git a/templates/assets/bootstrap/nuget/MyGet.ps1 b/templates/assets/bootstrap/nuget/MyGet.ps1 new file mode 100644 index 0000000..71110b5 --- /dev/null +++ b/templates/assets/bootstrap/nuget/MyGet.ps1 @@ -0,0 +1,18 @@ +# set env vars usually set by MyGet (enable for local testing) +#$env:SourcesPath = '..' +#$env:NuGet = "./nuget.exe" #https://dist.nuget.org/win-x86-commandline/latest/nuget.exe + +$nuget = $env:NuGet + +# parse the version number out of package.json +$bsversionParts = ((Get-Content $env:SourcesPath\package.json) -join "`n" | ConvertFrom-Json).version.split('-', 2) # split the version on the '-' +$bsversion = $bsversionParts[0] + +if ($bsversionParts.Length -gt 1) +{ + $bsversion += '-' + $bsversionParts[1].replace('.', '').replace('-', '_') # strip out invalid chars from the PreRelease part +} + +# create packages +& $nuget pack "$env:SourcesPath\nuget\bootstrap.nuspec" -Verbosity detailed -NonInteractive -NoPackageAnalysis -BasePath $env:SourcesPath -Version $bsversion +& $nuget pack "$env:SourcesPath\nuget\bootstrap.sass.nuspec" -Verbosity detailed -NonInteractive -NoPackageAnalysis -BasePath $env:SourcesPath -Version $bsversion diff --git a/templates/assets/bootstrap/nuget/bootstrap.nuspec b/templates/assets/bootstrap/nuget/bootstrap.nuspec new file mode 100644 index 0000000..bbb4582 --- /dev/null +++ b/templates/assets/bootstrap/nuget/bootstrap.nuspec @@ -0,0 +1,27 @@ + + + + bootstrap + 4.0.0 + Bootstrap CSS + The Bootstrap Authors, Twitter Inc. + bootstrap + The most popular front-end framework for developing responsive, mobile first projects on the web. + https://blog.getbootstrap.com + Bootstrap framework in CSS. Includes fonts and JavaScript + en-us + https://getbootstrap.com + https://getbootstrap.com/apple-touch-icon.png + https://github.com/twbs/bootstrap/blob/master/LICENSE + Copyright 2017 + false + + + + css mobile-first responsive front-end framework web + + + + + + diff --git a/templates/assets/bootstrap/nuget/bootstrap.sass.nuspec b/templates/assets/bootstrap/nuget/bootstrap.sass.nuspec new file mode 100644 index 0000000..aba443c --- /dev/null +++ b/templates/assets/bootstrap/nuget/bootstrap.sass.nuspec @@ -0,0 +1,27 @@ + + + + bootstrap.sass + 4.0.0 + Bootstrap Sass + The Bootstrap Authors, Twitter Inc. + bootstrap + The most popular front-end framework for developing responsive, mobile first projects on the web. + https://blog.getbootstrap.com + Bootstrap framework in Sass. Includes fonts and JavaScript + en-us + https://getbootstrap.com + https://getbootstrap.com/apple-touch-icon.png + https://github.com/twbs/bootstrap/blob/master/LICENSE + Copyright 2017 + false + + + + css sass mobile-first responsive front-end framework web + + + + + + -- cgit v1.3.1