diff --git a/doc-src/content/CHANGELOG.markdown b/doc-src/content/CHANGELOG.markdown index 828acb88..bb8210d5 100644 --- a/doc-src/content/CHANGELOG.markdown +++ b/doc-src/content/CHANGELOG.markdown @@ -12,6 +12,12 @@ COMPASS CHANGELOG * Deprecated imports and APIs from v0.10 have been removed. +0.10.1 (May 13, 2010) +--------------------- + +* Added a subcommand for emitting sass imports for the sass CLI. +* Added a subcommand for listing the available frameworks. + 0.10.0 (May 10, 2010) --------------------- diff --git a/doc-src/content/index.haml b/doc-src/content/index.haml index 7e471707..a396507e 100644 --- a/doc-src/content/index.haml +++ b/doc-src/content/index.haml @@ -14,6 +14,8 @@ body_id: home names. It’s a new way of thinking about stylesheets that must be seen in action! +
An introduction to Compass from Lorin Tackett on Vimeo.
+ ## Installing Compass is a tool that runs on the command line. diff --git a/lib/compass/commands.rb b/lib/compass/commands.rb index ce22e296..1d59e60c 100644 --- a/lib/compass/commands.rb +++ b/lib/compass/commands.rb @@ -4,7 +4,7 @@ end require 'compass/commands/registry' %w(base generate_grid_background help list_frameworks project_base - update_project watch_project create_project installer_command + update_project watch_project create_project imports installer_command print_version project_stats stamp_pattern validate_project write_configuration interactive).each do |lib| require "compass/commands/#{lib}" diff --git a/lib/compass/commands/imports.rb b/lib/compass/commands/imports.rb new file mode 100644 index 00000000..24505258 --- /dev/null +++ b/lib/compass/commands/imports.rb @@ -0,0 +1,29 @@ +module Compass + module Commands + class Imports < ProjectBase + attr_accessor :options + register :imports + def initialize(working_path, options) + super + end + + def execute + print ::Compass::Frameworks::ALL.map{|f| + "-I #{f.stylesheets_directory}" + }.join(' ') + end + class << self + def description(command) + "Emit an imports suitable for passing to the sass command-line." + end + def parse!(arguments) + if arguments.join("").strip.size > 0 + raise OptionParser::ParseError, "This command takes no options or arguments." + else + {} + end + end + end + end + end +end diff --git a/lib/compass/commands/list_frameworks.rb b/lib/compass/commands/list_frameworks.rb index 4639ee5e..72da07d7 100644 --- a/lib/compass/commands/list_frameworks.rb +++ b/lib/compass/commands/list_frameworks.rb @@ -2,6 +2,7 @@ module Compass module Commands class ListFrameworks < ProjectBase attr_accessor :options + register :frameworks def initialize(working_path, options) super end @@ -11,6 +12,11 @@ module Compass puts framework.name unless framework.name =~ /^_/ end end + class << self + def description(command) + "List the available frameworks" + end + end end end end \ No newline at end of file