Project

lesstidy

0.0
No commit activity in last 3 years
No release in over 3 years
LessTidy takes your CSS (or LessCSS) file and rewrites it in a more readable format.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

Lesstidy

A CSS tidying tool.

Installation (for text editors)

Installation (command line)

To use the lesstidy command, type gem install lesstidy --pre.

Usage

General usage is lesstidy <input> [<output>].

Type lesstidy --help for tweaks.

.lesstidyopts file

Want to impose a LessTidy options standard to your project? Put a file called .lesstidyopts in your project's folder. Whenever lesstidy is used without any style options, it finds this file (relative to the current directory). Put each option in it's own line.

Example:

# .lesstidyopts
--preset=column
--wrap-width=140

Even the text editor plugins (vim, textmate, etc) will refer to this file.

Examples

lesstidy --preset=compact input.css

To do

  • More types
    • Mixin declarations
    • Var declarations
    • import lines
  • .lesstidyopts

Done:

  • Presets
  • bin/lesstidy
  • blackbox testing
  • Comments
  • recursive wrapping