Skip to content

Commit

Permalink
Changed readme, updated template to be more railslike. #3
Browse files Browse the repository at this point in the history
  • Loading branch information
mraaroncruz committed Dec 16, 2011
1 parent abb5d9b commit 944594d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
11 changes: 7 additions & 4 deletions README.markdown
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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.
4 changes: 2 additions & 2 deletions lib/guard/sprockets/templates/Guardfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 944594d

Please sign in to comment.