forked from oliamb/guard-compass
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
guard 'compass' :configuration_file => 'my_custom.rb'
Should now work. Need to create the watchers as well.
- Loading branch information
Showing
27 changed files
with
325 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
guard 'rspec', :version => 2 do | ||
require 'growl' rescue nil | ||
watch('^spec/(.*)_spec.rb') | ||
watch('^lib/(.*).rb') { |m| "spec/#{m[1]}_spec.rb" } | ||
watch('^spec/spec_helper.rb') { "spec" } | ||
watch('^lib/(.*).rb') { |m| "spec/#{m[1]}_spec.rb" } | ||
watch('^spec/spec_helper.rb') { "spec" } | ||
watch('^spec/fixtures/(.*)') { "spec" } | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
guard 'compass' do | ||
watch('^src/(.*)\.s[ac]ss') | ||
end | ||
end | ||
|
||
# # Alternative | ||
# guard 'compass', :workdir => 'not_current_dir', :configuration_file => 'path/to/my/compass_config.rb' do | ||
# watch('^src/(.*)\.s[ac]ss') | ||
# end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
module Guard | ||
# Send a report to the Guard UI | ||
# The Reporter is a wrapper arround guard UI because | ||
# it is currently subject to change. | ||
class Reporter | ||
def success(message) | ||
UI.info(message) | ||
end | ||
def failure(message) | ||
UI.error(message) | ||
end | ||
def unstable(message) | ||
UI.info(message) | ||
end | ||
def announce(message) | ||
UI.info(message) | ||
end | ||
end | ||
end |
Binary file added
BIN
+11.9 KB
...s/bad_src_directory/.sass-cache/77242121e92e5208094a0a0f6fbd9eb05d2c3832/_utilities.scssc
Binary file not shown.
Binary file added
BIN
+1.16 KB
...tures/bad_src_directory/.sass-cache/804c142587e371bce0dd76315d953aa707422b74/_reset.scssc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/* Welcome to Compass. Use this file to write IE specific override styles. | ||
* Import this file using the following HTML or equivalent: | ||
* <!--[if IE]> | ||
* <link href="/stylesheets/ie.css" media="screen, projection" rel="stylesheet" type="text/css" /> | ||
* <![endif]--> */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/* Welcome to Compass. Use this file to define print styles. | ||
* Import this file using the following HTML or equivalent: | ||
* <link href="/stylesheets/print.css" media="print" rel="stylesheet" type="text/css" /> */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/* Welcome to Compass. | ||
* In this file you should write your main styles. (or centralize your imports) | ||
* Import this file using the following HTML or equivalent: | ||
* <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" /> */ | ||
|
||
@import "compass/reset"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Require any additional compass plugins here. | ||
# Set this to the root of your project when deployed: | ||
http_path = "/" | ||
css_dir = "stylesheets" | ||
sass_dir = "src" | ||
images_dir = "images" | ||
javascripts_dir = "javascripts" | ||
# To enable relative paths to assets via compass helper functions. Uncomment: | ||
# relative_assets = true |
Binary file added
BIN
+11.9 KB
.../custom_config_file/.sass-cache/77242121e92e5208094a0a0f6fbd9eb05d2c3832/_utilities.scssc
Binary file not shown.
Binary file added
BIN
+1.16 KB
...ures/custom_config_file/.sass-cache/804c142587e371bce0dd76315d953aa707422b74/_reset.scssc
Binary file not shown.
9 changes: 9 additions & 0 deletions
9
spec/fixtures/custom_config_file/another_config_location/config.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Require any additional compass plugins here. | ||
# Set this to the root of your project when deployed: | ||
http_path = "/" | ||
css_dir = "another_stylesheets_location" | ||
sass_dir = "another_src_location" | ||
images_dir = "another_images_location" | ||
javascripts_dir = "another_javascripts_location" | ||
# To enable relative paths to assets via compass helper functions. Uncomment: | ||
# relative_assets = true |
5 changes: 5 additions & 0 deletions
5
spec/fixtures/custom_config_file/another_src_location/ie.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/* Welcome to Compass. Use this file to write IE specific override styles. | ||
* Import this file using the following HTML or equivalent: | ||
* <!--[if IE]> | ||
* <link href="/stylesheets/ie.css" media="screen, projection" rel="stylesheet" type="text/css" /> | ||
* <![endif]--> */ |
3 changes: 3 additions & 0 deletions
3
spec/fixtures/custom_config_file/another_src_location/print.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/* Welcome to Compass. Use this file to define print styles. | ||
* Import this file using the following HTML or equivalent: | ||
* <link href="/stylesheets/print.css" media="print" rel="stylesheet" type="text/css" /> */ |
6 changes: 6 additions & 0 deletions
6
spec/fixtures/custom_config_file/another_src_location/screen.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/* Welcome to Compass. | ||
* In this file you should write your main styles. (or centralize your imports) | ||
* Import this file using the following HTML or equivalent: | ||
* <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" /> */ | ||
|
||
@import "compass/reset"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
guard 'compass', :workdir => 'test', :configuration_file => 'test_also.rb' |
Binary file added
BIN
+11.9 KB
...ures/no_config_file/.sass-cache/77242121e92e5208094a0a0f6fbd9eb05d2c3832/_utilities.scssc
Binary file not shown.
Binary file added
BIN
+1.16 KB
...fixtures/no_config_file/.sass-cache/804c142587e371bce0dd76315d953aa707422b74/_reset.scssc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/* Welcome to Compass. Use this file to write IE specific override styles. | ||
* Import this file using the following HTML or equivalent: | ||
* <!--[if IE]> | ||
* <link href="/stylesheets/ie.css" media="screen, projection" rel="stylesheet" type="text/css" /> | ||
* <![endif]--> */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/* Welcome to Compass. Use this file to define print styles. | ||
* Import this file using the following HTML or equivalent: | ||
* <link href="/stylesheets/print.css" media="print" rel="stylesheet" type="text/css" /> */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/* Welcome to Compass. | ||
* In this file you should write your main styles. (or centralize your imports) | ||
* Import this file using the following HTML or equivalent: | ||
* <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" /> */ | ||
|
||
@import "compass/reset"; |
Oops, something went wrong.