Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed readme, updated template to be more railslike. #3

  • Loading branch information...
commit 944594d456e0a018fe5391783e6c53ec1f880a8d 1 parent abb5d9b
@pferdefleisch pferdefleisch authored
Showing with 9 additions and 6 deletions.
  1. +7 −4 README.markdown
  2. +2 −2 lib/guard/sprockets/templates/Guardfile
View
11 README.markdown
@@ -1,16 +1,19 @@
## What?
Packages your javascript files together when you save your source file.
+## Sprockets support
+master branch supports Sprockets v ~> 2
+sprockets_1 branch supports v < 2
+
## Use
-if you haven't already `gem install sprockets`
-then `gem install guard-sprockets`
+`gem install guard-sprockets`
in your project's directory root
`guard init`
`guard init sprockets`
which will add this to your Guardfile
- guard 'sprockets', :destination => "public/javascripts" do
+ guard 'sprockets', :destination => "public/javascripts", :asset_paths => ['/app/assets/javascripts'] do
watch (%r{app/assets/javascripts/application.js})
end
@@ -51,4 +54,4 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
4 lib/guard/sprockets/templates/Guardfile
@@ -1,3 +1,3 @@
-guard 'sprockets', :destination => "public/js", :asset_paths => ['/path/2/external/assets/'] do
- watch (%r{app/assets/js/app.js})
+guard 'sprockets', :destination => "public/javascripts", :asset_paths => ['/app/assets/javascripts'] do
+ watch (%r{app/assets/javascripts/application.js})
end
Please sign in to comment.
Something went wrong with that request. Please try again.