예제 #1
0
파일: compass.py 프로젝트: cecedille1/Sett
def scss_quality(options):
    if options.scss_quality.output:
        extra = [
            '--require', 'scss_lint_reporter_checkstyle',
            '--format', 'Checkstyle',
            '--out', options.output,
        ]
    else:
        extra = []

    if path(defaults.SCSS_LINT_CONFIG).exists():
        extra.extend(['--config', defaults.SCSS_LINT_CONFIG])

    run_ruby('scss-lint', get_compass_dir(), *extra, expect={0, 1})
예제 #2
0
파일: compass.py 프로젝트: cecedille1/Sett
def run_compass(*commands, **kw):
    if not commands:
        commands = ('compile', )

    if commands[0] in ('compile', 'watch') and len(commands) == 1:
        commands = [commands[0], get_compass_dir()]
    return run_ruby(which.compass, *commands, **kw)