trivial/Rakefile

41 lines
1.4 KiB
Ruby
Raw Normal View History

2010-03-21 17:17:04 +00:00
require 'rubygems'
require 'rake'
require 'echoe'
2010-04-02 14:40:13 +00:00
require 'fileutils'
2010-03-21 17:17:04 +00:00
2010-04-02 15:47:26 +00:00
Echoe.new('trivial') do |p|
2010-03-21 17:17:04 +00:00
p.summary = "Ultra-lightweight website framework for PHP"
p.description = <<-EOT
For those who are using PHP to build their sites and want a very simple framework
in which to organize their files, trivial is the solution. It's one PHP file
that can include a few other pre-determined PHP and HTML files based on the
request URI. This very simple division of content, actions (controllers), and
views allows for multiple people to easily work on a smaller project without
the overhead of a larger framework.
EOT
p.author = "John Bintz"
p.email = "john@coswelproductions.com"
p.url = "http://github.com/johnbintz/trivial"
end
2010-04-02 14:40:13 +00:00
namespace :blueprint do
desc "Include the latest Blueprint CSS files"
task :download do
FileUtils.rm_r 'blueprint' if File.directory? 'blueprint'
FileUtils.mkdir 'blueprint'
Dir.chdir 'blueprint'
system 'git clone git://github.com/joshuaclayton/blueprint-css.git'
FileUtils.cp_r File.join('blueprint-css', 'blueprint'), File.join('..', 'styles')
2010-04-02 15:47:26 +00:00
FileUtils.cp File.join('blueprint-css', 'LICENSE'), File.join('..', 'styles', 'blueprint')
2010-04-02 14:40:13 +00:00
Dir.chdir '..'
FileUtils.rm_r 'blueprint'
end
end
2010-05-19 03:20:14 +00:00
namespace :php do
desc "Syntax check trivial.php"
task :syntax_check do
system %{php -l lib/trivial.php}
end
end