File: Rakefile

package info (click to toggle)
compass-toolkit-plugin 2.10.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 520 kB
  • sloc: ruby: 63; javascript: 49; makefile: 2; sh: 1
file content (27 lines) | stat: -rw-r--r-- 601 bytes parent folder | download | duplicates (9)
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
task :default => [:test]

task :test do
  require 'fileutils'

  Dir.chdir('tests') do
    output_dir = 'output'
    FileUtils.mkdir_p output_dir
    ruby '.unit_tests.rb'
    FileUtils.rm_rf output_dir
  end
end

desc 'Compile baseline CSS'
task :compile do
  require 'compass'
  require 'compass/exec'

  Dir.chdir('tests') do
    Compass.add_configuration 'config.rb'
    Compass.configuration.project_path = Dir.pwd
    # Compile into baseline directory instead of test output directory
    Compass.configuration.css_dir = 'controls'
    Compass.compiler.clean!
    Compass.compiler.run
  end
end