Skip to content

Commit

Permalink
updated rakefile to simplify creation of PagedList.Mvc nuget package …
Browse files Browse the repository at this point in the history
…as well
  • Loading branch information
troygoode committed Aug 3, 2011
1 parent 417d7e7 commit 85907d8
Show file tree
Hide file tree
Showing 52 changed files with 5,307 additions and 742 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ _ReSharper*
packages/PagedList/lib/40/ packages/PagedList/lib/40/
packages/PagedList.Mvc/content/ packages/PagedList.Mvc/content/
packages/PagedList.Mvc/lib/40/ packages/PagedList.Mvc/lib/40/
packages/*.nupkg packages/*.nupkg
src/PagedList.Mvc/Content/
17 changes: 0 additions & 17 deletions packages/PagedList.Mvc/PagedList.Mvc.nuspec

This file was deleted.

30 changes: 12 additions & 18 deletions rakefile.rb
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,5 @@
require 'albacore' # >= 0.2.7 require 'albacore' # >= 0.2.7
require 'fileutils'


task :default => [:build] task :default => [:build]


Expand All @@ -9,7 +10,7 @@
end end


xunit :test => :build do |xunit| xunit :test => :build do |xunit|
xunit.command = "src/PagedList.Tests/bin/debug/xunit.console.exe" xunit.command = "src/PagedList.Tests/Dependencies/xunit-1.8/xunit.console.clr4.exe"
xunit.assembly = "src/PagedList.Tests/bin/debug/PagedList.Tests.dll" xunit.assembly = "src/PagedList.Tests/bin/debug/PagedList.Tests.dll"
end end


Expand All @@ -24,31 +25,24 @@
nuget.output = './packages/' nuget.output = './packages/'
end end


task :prepare_package_pagedlistmvc => :release do #HACK: remove once http://nuget.codeplex.com/workitem/1349 is fixed
require 'fileutils' task :prepare_package_pagedlistmvc do

build_directory = './src/PagedList.Mvc/bin/Release/'
content_directory = './src/PagedList.Mvc.Example/Content/' content_directory = './src/PagedList.Mvc.Example/Content/'
script_directory = './src/PagedList.Mvc.Example/Scripts/PagedList/' script_directory = './src/PagedList.Mvc.Example/Scripts/PagedList/'


lib_output_directory = './packages/PagedList.Mvc/lib/40/' content_directory_out = './src/PagedList.Mvc/Content/Content/'
content_output_directory = './packages/PagedList.Mvc/content/Content/' script_directory_out = './src/PagedList.Mvc/Content/Scripts/PagedList/'
script_output_directory = './packages/PagedList.Mvc/content/Scripts/PagedList/'


FileUtils.mkdir_p lib_output_directory FileUtils.mkdir_p content_directory_out
FileUtils.mkdir_p content_output_directory FileUtils.mkdir_p script_directory_out
FileUtils.mkdir_p script_output_directory


FileUtils.cp build_directory + 'PagedList.Mvc.dll', lib_output_directory + 'PagedList.Mvc.dll' FileUtils.cp content_directory + 'PagedList.css', content_directory_out + 'PagedList.css'
FileUtils.cp build_directory + 'PagedList.Mvc.pdb', lib_output_directory + 'PagedList.Mvc.pdb' FileUtils.cp script_directory + 'PagedList.Mvc.js', script_directory_out + 'PagedList.Mvc.js'
FileUtils.cp build_directory + 'PagedList.Mvc.xml', lib_output_directory + 'PagedList.Mvc.xml' FileUtils.cp script_directory + 'PagedList.Mvc.Template.html', script_directory_out + 'PagedList.Mvc.Template.html'
FileUtils.cp content_directory + 'PagedList.css', content_output_directory + 'PagedList.css'
FileUtils.cp script_directory + 'PagedList.Mvc.js', script_output_directory + 'PagedList.Mvc.js'
FileUtils.cp script_directory + 'PagedList.Mvc.Template.html', script_output_directory + 'PagedList.Mvc.Template.html'
end end


nugetpack :package_pagedlistmvc => :prepare_package_pagedlistmvc do |nuget| nugetpack :package_pagedlistmvc => :prepare_package_pagedlistmvc do |nuget|
nuget.nuspec = './packages/PagedList.Mvc/PagedList.Mvc.nuspec' nuget.nuspec = './src/PagedList.Mvc/PagedList.Mvc.csproj -Prop Configuration=Release'
nuget.output = './packages/' nuget.output = './packages/'
end end


Expand Down
1 change: 1 addition & 0 deletions src/PagedList.Mvc/PagedList.Mvc.csproj
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="PagedList.Mvc.nuspec" />
<None Include="PublicKeyFile.snk" /> <None Include="PublicKeyFile.snk" />
<None Include="PublicPrivateKeyFile.snk" /> <None Include="PublicPrivateKeyFile.snk" />
</ItemGroup> </ItemGroup>
Expand Down
20 changes: 20 additions & 0 deletions src/PagedList.Mvc/PagedList.Mvc.nuspec
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata schemaVersion="2">
<id>$id$</id>
<version>$version$</version>
<authors>$author$</authors>
<owners>TroyGoode BOOM BOOM BOOM</owners>
<description><![CDATA[$description$]]></description>
<tags>paging pager page infinitescroll ajax mvc</tags>
<language>en-US</language>
<projectUrl>http://github.com/TroyGoode/PagedList</projectUrl>
<licenseUrl>http://www.opensource.org/licenses/mit-license.php</licenseUrl>
<dependencies>
<dependency id="PagedList" version="1.5" />
</dependencies>
</metadata>
<files>
<file src="Content\**\*.*" target="Content" />
</files>
</package>
2 changes: 1 addition & 1 deletion src/PagedList.Mvc/Properties/AssemblyInfo.cs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// associated with an assembly. // associated with an assembly.


[assembly: AssemblyTitle("PagedList.Mvc")] [assembly: AssemblyTitle("PagedList.Mvc")]
[assembly: AssemblyDescription("HtmlHelper extensions for displaying paging controls in Asp.Net MVC when using the PagedList library.")] [assembly: AssemblyDescription("Asp.Net MVC HtmlHelper method for generating paging control for use with PagedList library.")]
[assembly: AssemblyConfiguration("")] [assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Troy Goode")] [assembly: AssemblyCompany("Troy Goode")]
[assembly: AssemblyProduct("PagedList.Mvc")] [assembly: AssemblyProduct("PagedList.Mvc")]
Expand Down
117 changes: 0 additions & 117 deletions src/PagedList.Tests/Dependencies/xUnit 1.1/HTML.xslt

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 85907d8

Please sign in to comment.