Skip to content

Commit 76cf04b

Browse files
committed
Before starting the demo package the git.min.js file.
1 parent 6991212 commit 76cf04b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Rakefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11

22

3-
GITHUB_URL = "https://danlucraft:#{File.read("githubpw").chomp}@github.com/danlucraft/clojure-dojo.git"
4-
ORIG_COMMIT = "b60971573593e660dcef1e43a63a01890bfc667a"
53

64
namespace :test do
75
desc "Reset the github test repo"
86
task :reset do
7+
github_url = "https://danlucraft:#{File.read("githubpw").chomp}@github.com/danlucraft/clojure-dojo.git"
8+
orig_commit = "b60971573593e660dcef1e43a63a01890bfc667a"
99
sh "git clone #{GITHUB_URL} test-repo"
1010
cd "test-repo" do
1111
sh("git reset #{ORIG_COMMIT} --hard")
@@ -25,10 +25,10 @@ task :package_client do
2525
end
2626
total_js = js.join("\n\n")
2727
File.open("lib/git.min.js", "w") {|f| f.puts total_js }
28-
[200, {"Content-Type" => "text/javascript"}, [total_js]]
28+
puts "packaged lib/git.min.js"
2929
end
3030

3131
desc "Run the demo repo-viewer webapp off a local git http instance"
32-
task :demo do
32+
task :demo => :package_client do
3333
exec("thin -R demos/config.ru -p 9292 start")
3434
end

0 commit comments

Comments
 (0)