This repository was archived by the owner on Mar 1, 2022. It is now read-only.
forked from zmoazeni/csscss
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparams.json
More file actions
1 lines (1 loc) · 2.7 KB
/
params.json
File metadata and controls
1 lines (1 loc) · 2.7 KB
1
{"name":"csscss","tagline":"A CSS redundancy analyzer that analyzes redundancy.","body":"## What is it? ##\r\n\r\ncsscss will parse any CSS files you give it and let you know which\r\nrulesets have duplicated declarations.\r\n\r\n## What is it for? ##\r\n\r\nOne of the best strategies for me to maintain CSS is to reduce\r\nduplication as much as possible. It's not a silver bullet, but it sure\r\nhelps.\r\n\r\nTo do that, you need to have all the rulesets in your head at all times.\r\nThat's hard, csscss is easy. Let it tell you what is redundant.\r\n\r\n## How do I use it? ##\r\n\r\nFirst you need to install it. It is currently packaged as a ruby gem:\r\n\r\n $ gem install csscss\r\n\r\nThen you can run it in at the command line against CSS files.\r\n\r\n $ csscss path/to/styles.css path/to/other-styles.css\r\n\r\n {.contact .content .primary} and {article, #comments} share 5 rules\r\n {.profile-picture}, {.screenshot img} and {a.blurb img} share 4 rules\r\n {.work h2:first-child, .archive h2:first-child, .missing h2:first-child, .about h2, .contact h2} and {body.home h2} share 4 rules\r\n {article.blurb:hover} and {article:hover} share 3 rules\r\n\r\nRun it in a verbose mode to see all the duplicated styles.\r\n\r\n $ csscss -v path/to/styles.css\r\n\r\nRun it against remote files by passing a valid URL.\r\n\r\n $ csscss -v http://example.com/css/main.css\r\n\r\nYou can also choose a minimum number of matches, which will ignore any\r\nrulesets that have fewer matches.\r\n\r\n $ csscss -n 10 -v path/to/style.css # ignores rulesets with < 10 matches\r\n\r\nIf you prefer writing in sass, you can also parse your sass/scss files.\r\n\r\n $ gem install sass\r\n $ csscss path/to/style.scss\r\n\r\n\r\n## I found bugs ##\r\n\r\nThis is still a new and evolving project. I heartily welcome feedback.\r\nIf you find any issues, please report them on\r\n[github](https://github.com/zmoazeni/csscss/issues).\r\n\r\nPlease include the smallest CSS snippet to describe the issue and the\r\noutput you expect to see.\r\n\r\n## Who are you? ##\r\n\r\nMy name is [Zach Moazeni](https://twitter.com/zmoazeni). I work for [an\r\nawesome company](http://www.getharvest.com/). And [we're\r\nhiring!](http://www.getharvest.com/careers)\r\n\r\n## I'm a dev, I can help ##\r\n\r\nAwesome! Thanks! Here are the steps I ask:\r\n\r\n1. Fork it\r\n2. Create your feature branch (`git checkout -b my-new-feature`)\r\n3. Commit your changes (`git commit -am 'Add some feature'`)\r\n4. Make sure the tests pass (`bundle exec rake test`)\r\n5. Push to the branch (`git push origin my-new-feature`)\r\n6. Create new Pull Request\r\n","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."}