forked from dncuug/X.PagedList
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrakefile.rb
50 lines (39 loc) · 1.72 KB
/
rakefile.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
require 'albacore' # >= 0.2.7
require 'fileutils'
task :default => [:build]
msbuild :build do |msb|
msb.properties :configuration => :Debug
msb.targets :Clean, :Rebuild
msb.solution = "src/PagedList.sln"
end
xunit :test => :build do |xunit|
xunit.command = "src/PagedList.Tests/Dependencies/xunit-1.8/xunit.console.clr4.exe"
xunit.assembly = "src/PagedList.Tests/bin/debug/PagedList.Tests.dll"
end
msbuild :release => :test do |msb|
msb.properties :configuration => :Release
msb.targets :Clean, :Rebuild
msb.solution = "src/PagedList.sln"
end
nugetpack :package_pagedlist => :test do |nuget|
nuget.nuspec = './src/PagedList/PagedList.csproj -Prop Configuration=Release'
nuget.output = './packages/'
end
#HACK: remove once http://nuget.codeplex.com/workitem/1349 is fixed
task :prepare_package_pagedlistmvc do
content_directory = './src/PagedList.Mvc.Example/Content/'
script_directory = './src/PagedList.Mvc.Example/Scripts/PagedList/'
content_directory_out = './src/PagedList.Mvc/Content/Content/'
script_directory_out = './src/PagedList.Mvc/Content/Scripts/PagedList/'
FileUtils.mkdir_p content_directory_out
FileUtils.mkdir_p script_directory_out
FileUtils.cp content_directory + 'PagedList.css', content_directory_out + 'PagedList.css'
FileUtils.cp script_directory + 'PagedList.Mvc.js', script_directory_out + 'PagedList.Mvc.js'
FileUtils.cp script_directory + 'PagedList.Mvc.Template.html', script_directory_out + 'PagedList.Mvc.Template.html'
end
nugetpack :package_pagedlistmvc => :prepare_package_pagedlistmvc do |nuget|
nuget.nuspec = './src/PagedList.Mvc/PagedList.Mvc.csproj -Prop Configuration=Release'
nuget.output = './packages/'
end
task :package => [:package_pagedlist, :package_pagedlistmvc] do
end