Kévin Tessier 04fab6ba46 install gulp | vor 6 Jahren | |
---|---|---|
.. | ||
bin | vor 6 Jahren | |
config | vor 6 Jahren | |
lib | vor 6 Jahren | |
CHANGELOG.md | vor 6 Jahren | |
LICENSE | vor 6 Jahren | |
README.md | vor 6 Jahren | |
package.json | vor 6 Jahren |
CSScomb is a coding style formatter for CSS. You can easily write your own configuration to make your style sheets beautiful and consistent.
The main feature is sorting properties in a specific order. It was inspired by @miripiruni's PHP-based tool of the same name. This is the new JavaScript version, based on the powerful CSS parser Gonzales PE.
Global installation (for use as a command-line tool):
npm install csscomb -g
Local installation (for use as a command-line tool within current directory):
npm install csscomb
To install as a project dependency (the package will appear in your dependencies):
npm install csscomb --save
To install as a dev dependency (the package will appear in your devDependencies):
npm install csscomb --save-dev
There are a number of ways to configure CSScomb:
.csscomb.json
file in the project root.*.css
file as a templatecsscomb assets/css
var Comb = require('csscomb');
var comb = new Comb('zen');
comb.processPath('assets/css');
Anyone and everyone is welcome to contribute. Please take a moment to review the guidelines for contributing.
Thanks for assistance and contributions:
@miripiruni, @anton-rudeshko, @cvrebert, @filtercake, @ignovak, @kizu, @lefoy, @L0stSoul, @mishaberezin, @puzankov, @schneyra, @thejameskyle, @vecmezoni
This software is released under the terms of the MIT license.