public
Description: A JavaScript implementation of Chris Coyne's Context Free Design Grammar.
Clone URL: git://github.com/osteele/cfdg-js.git
osteele (author)
Sun Mar 23 20:03:32 -0700 2008
commit  572f95ea3c244ae039c2e46d54011cfc93910bb4
tree    8f60c9f7fad4773bf8efd1188fea9f3aa7c9cebe
parent  d14dee3904b5cd60c82424954f06acdc9736c34a
cfdg-js / Rakefile
100644 25 lines (19 sloc) 0.698 kb
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
require 'ows_tasks'
require 'openlaszlo_tasks'
 
desc "Upload the app to the server"
task :app_deploy => 'cfdg.swf' do
  rsync 'cfdg.swf', 'osteele@osteele.com:tree.com/public'
end
 
desc "Sync the server to svn"
task :svn_deploy do
  sh "ssh osteele@osteele.com svn up tree.com"
end
 
task 'canvas.html' => "cfdg.html" do
  sh "sed 's:src=\":src=\"javascripts\/:' cfdg.html > canvas.html"
end
 
task :deploy_html do
  rsync 'canvas.html', 'osteele@osteele.com:tree.com/public'
  rsync ['cfdg.js', 'parser.js', 'model.js', 'graphics.js', 'drawing.js'], 'osteele@osteele.com:tree.com/public/javascripts'
end
 
desc "Deploy the app and pages to the server"
multitask :deploy => [:app_deploy, :svn_deploy]