Sha256: ec42aa647caff3794784d51312e325608dec08d0c932e0997ec60f05de09610f
Contents?: true
Size: 1.33 KB
Versions: 10
Compression:
Stored size: 1.33 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 --precision 7 ./app/assets/stylesheets/smock.sass #{target}/smock.css" sh "bundle exec sass --precision 7 ./app/assets/stylesheets/smock.sass #{target}/smock.min.css --style compressed" sh "bundle exec sass --precision 7 ./app/assets/stylesheets/svg_images.sass #{target}/svg_images.css" sh "bundle exec sass --precision 7 ./app/assets/stylesheets/svg_images.sass #{target}/svg_images.min.css --style compressed" sh "cp -R ./examples #{target}/" latest = "./versions/latest" FileUtils.mkdir_p latest sh "cp -R #{target}/* #{latest}/" sh "bundle exec sass ./guide.sass #{latest}/guide.css" 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
10 entries across 10 versions & 1 rubygems