Skip to content

Commit

Permalink
update the copy files rake task to pull the static file and sass file…
Browse files Browse the repository at this point in the history
…s from their correct locations
  • Loading branch information
mjankowski committed Sep 8, 2011
1 parent ffe874e commit 99578c6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -78,10 +78,10 @@ Please see CONTRIBUTING.md for details.
Development
-----------

The actual stylesheet source files are sass, so edit the files in app/assets/stylesheets/sass/flutie.
To rebuild the normal scss run:
The actual stylesheet source files are sass, so edit the files in app/assets/stylesheets/.
To rebuild the static flutie.css file, you can run:

sass -C --update app/assets/stylesheets/sass/flutie:app/assets/stylesheets
sass --update app/assets/stylesheets/flutie.scss:public/stylesheets/flutie.css

You can run a server which will allow you to view the flutie styleguide locally:

Expand Down
5 changes: 4 additions & 1 deletion lib/tasks/flutie.rake
Expand Up @@ -16,7 +16,10 @@ namespace :flutie do
puts "Flutie stylesheets are provided via asset pipelining."
else
# Copy the flutie stylesheets into rails_root/public/flutie
copy_files("../../app/assets/stylesheets", "/public/flutie", directory)
copy_files("../../public/stylesheets", "/public/flutie", directory)

# Copy the flutie sass stylesheets into rails_root/public/sass/flutie
copy_files("../../app/assets/stylesheets", "/public/sass/flutie", directory)
end
end
end

0 comments on commit 99578c6

Please sign in to comment.