8000 Merge pull request #17952 from supergibbs/NuGet_Support · liuwenye2010/bootstrap@1132e0c · GitHub
[go: up one dir, main page]

Skip to content

Commit 1132e0c

Browse files
committed
Merge pull request twbs#17952 from supergibbs/NuGet_Support
Add NuGet support
2 parents 8b0d737 + d0ebe80 commit 1132e0c

File tree

3 files changed

+62
-0
lines changed

3 files changed

+62
-0
lines changed

nuget/MyGet.ps1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
$nuget = $env:NuGet
2+
3+
#parse the version number out of package.json
4+
$bsversion = ((Get-Content $env:SourcesPath\package.json) -join "`n" | ConvertFrom-Json).version
5+
6+
#create packages
7+
& $nuget pack "nuget\bootstrap.nuspec" -Verbosity detailed -NonInteractive -NoPackageAnalysis -BasePath $env:SourcesPath -Version $bsversion
8+
& $nuget pack "nuget\bootstrap.less.nuspec" -Verbosity detailed -NonInteractive -NoPackageAnalysis -BasePath $env:SourcesPath -Version $bsversion

nuget/bootstrap.nuspec

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
3+
<metadata>
4+
<id>bootstrap</id>
5+
<version>4.0.0-alpha</version>
6+
<title>Bootstrap CSS</title>
7+
<authors>Twitter, Inc.</authors>
8+
<owners>bootstrap</owners>
9+
<description>The most popular front-end framework for developing responsive, mobile first projects on the web.</description>
10+
<releaseNotes>http://blog.getbootstrap.com</releaseNotes>
11+
<summary>Bootstrap framework in CSS. Includes fonts and JavaScript</summary>
12+
<language>en-us</language>
13+
<projectUrl>http://getbootstrap.com</projectUrl>
14+
<iconUrl>http://getbootstrap.com/apple-touch-icon.png</iconUrl>
15+
<licenseUrl>https://github.com/twbs/bootstrap/blob/master/LICENSE</licenseUrl>
16+
<copyright>Copyright 2015</copyright>
17+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
18+
<dependencies>
19+
<dependency id="jQuery" version="2.0.0" />
20+
</dependencies>
21+
<tags>css js less mobile-first responsive front-end framework web</tags>
22+
</metadata>
23+
<files>
24+
<file src="dist\css\*.*" target="content\Content" />
25+
<file src="dist\js\bootstrap*.js" target="content\Scripts" />
26+
</files>
27+
</package>

nuget/bootstrap.sass.nuspec

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
3+
<metadata>
4+
<id>bootstrap.sass</id>
5+
<version>4.0.0-alpha</version>
6+
<title>Bootstrap Sass</title>
7+
<authors>Twitter, Inc.</authors>
8+
<owners>bootstrap</owners>
9+
<description>The most popular front-end framework for developing responsive, mobile first projects on the web.</description>
10+
<releaseNotes>http://blog.getbootstrap.com</releaseNotes>
11+
<summary>Bootstrap framework in Sass. Includes fonts and JavaScript</summary>
12+
<language>en-us</language>
13+
<projectUrl>http://getbootstrap.com</projectUrl>
14+
<iconUrl>http://getbootstrap.com/apple-touch-icon.png</iconUrl>
15+
<licenseUrl>https://github.com/twbs/bootstrap/blob/master/LICENSE</licenseUrl>
16+
<copyright>Copyright 2015</copyright>
17+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
18+
<dependencies>
19+
<dependency id="jQuery" version="2.0.0" />
20+
</dependencies>
21+
<tags>css js less mobile-first responsive front-end framework web</tags>
22+
</metadata>
23+
<files>
24+
<file src="scss\**\*.scss" target="content\Content\bootstrap" />
25+
<file src="dist\js\bootstrap*.js" target="content\Scripts" />
26+
</files>
27+
</package>

0 commit comments

Comments
 (0)
0