1.0.6 • Published 9 years ago
@szkrd/recess-sorter v1.0.6
recess-sorter
Sort css/scss/less properties according to twitter recess rules.
- uses the gonzales AST parser
- it is meant to help you learn and use the recess order
- it will NOT fix any other warnings, only the
property-sort-orderwill be changed
install
npm i -g @szkrd/recess-sorteroptions
- -h / --help - Help
- -o / --output DEST - Output directory (multiple input files) or output filename (single input file)
- -w / --overwrite - Overwrite input with output (default is stdout)
- -r / --recursive - Recurse into source directories (use it with -w, at your own risk)
- -d / --dry-run - Do not overwrite, just explain
examples
process one file
recess-sorter -o output.scss input.scssoverwrite input with output (dry run first)
recess-sorter -w -d input.scss
recess-sorter -w input.scssprocess all css files
recess-sorter -w -d ./tests/**/*.cssprocess all scss, css and less files
recess-sorter -w -r -d ./tests/