项目作者: csscomb

项目描述 :
CSS coding style formatter
高级语言: JavaScript
项目地址: git://github.com/csscomb/csscomb.js.git
创建时间: 2013-07-31T05:52:35Z
项目社区:https://github.com/csscomb/csscomb.js

开源协议:MIT License

下载


CSScomb CSSComb

Build Status
NPM version
Dependency Status
devDependency Status

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.

1. Install

Global installation (for use as a command-line tool):

  1. npm install csscomb -g

Local installation (for use as a command-line tool within current directory):

  1. npm install csscomb

To install as a project dependency (the package will appear in your dependencies):

  1. npm install csscomb --save

To install as a dev dependency (the package will appear in your devDependencies):

  1. npm install csscomb --save-dev

2. Configure

There are a number of ways to configure CSScomb:

  • Use one of predefined configs
  • Put .csscomb.json file in the project root.
  • Set path to config’s file
  • Use *.css file as a template

3. Use

Command Line

  1. csscomb assets/css

Node.js module

  1. var Comb = require('csscomb');
  2. var comb = new Comb('zen');
  3. comb.processPath('assets/css');

4. Contribute

This project is actively mantained. But anyone and everyone is welcome to contribute.
Please take a moment to review the guidelines for contributing.

Also you can become a maintainer. To do that please ping
@tonyganch.

Authors

@mishanga,
@tonyganch

Thanks for assistance and contributions:

@miripiruni,
@anton-rudeshko,
@cvrebert,
@filtercake,
@ignovak,
@kizu,
@lefoy,
@L0stSoul,
@mishaberezin,
@puzankov,
@schneyra,
@thejameskyle,
@vecmezoni

License

This software is released under the terms of the
MIT license.

Other projects