{"id":21767218,"url":"https://github.com/michaelworm/cssdir2","last_synced_at":"2025-03-21T05:28:49.525Z","repository":{"id":7701859,"uuid":"9066351","full_name":"michaelworm/cssDir2","owner":"michaelworm","description":"Simple ruby script for compass which copies the generated css file to a different location.","archived":false,"fork":false,"pushed_at":"2014-03-13T11:24:45.000Z","size":168,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-22T01:03:58.893Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michaelworm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-27T23:49:44.000Z","updated_at":"2016-06-23T08:42:43.000Z","dependencies_parsed_at":"2022-09-01T10:00:10.676Z","dependency_job_id":null,"html_url":"https://github.com/michaelworm/cssDir2","commit_stats":null,"previous_names":["miw0/cssdir2"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelworm%2FcssDir2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelworm%2FcssDir2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelworm%2FcssDir2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelworm%2FcssDir2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaelworm","download_url":"https://codeload.github.com/michaelworm/cssDir2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244744847,"owners_count":20502990,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-26T13:23:06.584Z","updated_at":"2025-03-21T05:28:49.505Z","avatar_url":"https://github.com/michaelworm.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Welcome to cssDir2\r\n\r\ncssDir2 is a simple ruby script for compass which copies the generated css file to a different location.\r\n\r\n# How to install?\r\n\r\n1. Install [Compass](http://compass-style.org/)\u003cbr /\u003e\r\n   `$ gem update --system`\u003cbr /\u003e\r\n   `$ gem install compass`\r\n2. Install cssDir2\u003cbr /\u003e\r\n   `$ gem install cssDir2`\r\n3. Require it in your config.rb\u003cbr /\u003e\r\n   `require 'cssDir2'`\u003cbr /\u003e\r\n4. That's it!\r\n\r\n# How to use it?\r\n\r\nOpen up your __config.rb__ and create a variable where you specify the path to the location where you want cssDir2 to copy the generated css file to __based on the location of your sass file__.\r\n\r\n```ruby\r\ncss_dir2 = \"../path/to/directory\"\r\n```\r\n\r\nWhen the specified directory doesn't exist, cssDir2 will create it.\u003cbr /\u003e\r\nNow call cssDir2 and start watching your project with Compass!\r\n\r\n```ruby\r\nCssDir2.new(css_dir, css_dir2)\r\n```\r\n\r\nYou could also skip the creation of a variable and pass in the path directly into the 2nd argument.\r\n\r\n```ruby\r\nCssDir2.new(css_dir, \"../path/to/directory\")\r\n```\r\n\r\n__An example config.rb file would look like the following:__\r\n\r\n```ruby\r\n# Require any additional compass plugins here.\r\n\r\n# Set this to the root of your project when deployed:\r\nhttp_path = \"/\"\r\ncss_dir = \"stylesheets\"\r\nsass_dir = \"sass\"\r\nimages_dir = \"images\"\r\njavascripts_dir = \"javascripts\"\r\n\r\n# You can select your preferred output style here (can be overridden via the command line):\r\n# output_style = :expanded or :nested or :compact or :compressed\r\n\r\n# To enable relative paths to assets via compass helper functions. Uncomment:\r\n# relative_assets = true\r\n\r\n# To disable debugging comments that display the original location of your selectors. Uncomment:\r\n# line_comments = false\r\n\r\n\r\n# If you prefer the indented syntax, you might want to regenerate this\r\n# project again passing --syntax sass, or you can uncomment this:\r\n# preferred_syntax = :sass\r\n# and then run:\r\n# sass-convert -R --from scss --to sass sass scss \u0026\u0026 rm -rf sass \u0026\u0026 mv scss sass\r\n\r\n# cssDir2\r\nrequire 'cssDir2'\r\n\r\ncss_dir2 = \"../css\"\r\n\r\nCssDir2.new(css_dir, css_dir2)\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelworm%2Fcssdir2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelworm%2Fcssdir2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelworm%2Fcssdir2/lists"}