Sha256: ef564d7bee698ec4567974b41a5864c53b964512acfbd953842b28d6fb942cef

Contents?: true

Size: 1.02 KB

Versions: 7

Compression:

Stored size: 1.02 KB

Contents

require 'bundler'
require 'fileutils'

$:.push File.expand_path("../lib", __FILE__)
require "smock/version"

Bundler::GemHelper.install_tasks

task :default => :build_version

desc "clean up"
task :clean do
  sh "rm -rf tmp versions"
end

desc "test stuff"
task :test do
  FileUtils.mkdir_p "./tmp/"
  sh "bundle exec sass -l ./app/assets/stylesheets/smock.sass tmp/output.css"
end

desc "build a version of smock ready for deploy"
task :build_version => :clean do

  target = "./versions/#{Smock::VERSION}"
  FileUtils.mkdir_p target
  sh "bundle exec sass ./app/assets/stylesheets/smock.sass #{target}/smock.css"
  sh "bundle exec sass ./app/assets/stylesheets/smock.sass #{target}/smock.min.css --style compressed"
  sh "cp -R ./examples #{target}/"

  latest = "./versions/latest"
  FileUtils.mkdir_p latest

  sh "cp -R #{target}/* #{latest}/"
  sh "cp ./index.html #{latest}/"
end

desc "run a sass watcher"
task :sasswatch => :build_version do
  sh "bundle exec sass --watch app/assets/stylesheets/smock.sass:./versions/smock.css"
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
smock-0.1.41 Rakefile
smock-0.1.40 Rakefile
smock-0.1.39 Rakefile
smock-0.1.38 Rakefile
smock-0.1.37 Rakefile
smock-0.1.36 Rakefile
smock-0.1.35 Rakefile