1.0.6 • Published 7 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-order
will be changed
install
npm i -g @szkrd/recess-sorter
options
- -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.scss
overwrite input with output (dry run first)
recess-sorter -w -d input.scss
recess-sorter -w input.scss
process all css files
recess-sorter -w -d ./tests/**/*.css
process all scss, css and less files
recess-sorter -w -r -d ./tests/