index.js
function CompassCompiler(inputTree, files, options) {
  options = arguments.length > 2 ? (options || {}) : (files || {});
  if (arguments.length > 2) {
    console.log('[broccoli-compass] DEPRECATION: passing files to broccoli-compass constructor as second parameter is deprecated, ' +
                'use options.files instead');
    options.files = files;
  }

  if (!(this instanceof CompassCompiler)) {
    return new CompassCompiler(inputTree, options);
  }

  if (options.exclude) {
    console.log('[broccoli-compass] DEPRECATION: The exclude option has been deprecated in favour of the `cleanOutput` option');
  }

  this.options = merge(true, this.defaultOptions);
  merge(this.options, options);
  options = this.options;
  options.files = (options.files instanceof Array) ? options.files : [];
  this.generateCmdLine();
  this.inputTree = inputTree;
}
function CompassCompiler(inputTree, files, options) {
  options = arguments.length > 2 ? (options || {}) : (files || {});
  if (arguments.length > 2) {
    console.log('[broccoli-compass] DEPRECATION: passing files to broccoli-compass constructor as second parameter is deprecated, ' +
                'use options.files instead');
    options.files = files;
  }

  if (!(this instanceof CompassCompiler)) {
    return new CompassCompiler(inputTree, options);
  }

  if (options.exclude) {
    console.log('[broccoli-compass] DEPRECATION: The exclude option has been deprecated in favour of the `cleanOutput` option');
  }

  this.options = merge(true, this.defaultOptions);
  merge(this.options, options);
  options = this.options;
  options.files = (options.files instanceof Array) ? options.files : [];
  this.generateCmdLine();
  this.inputTree = inputTree;
}
function CompassCompiler ( inputTree , files , options ) { options = arguments . length > 2 ? ( options || { } ) : ( files || { } ) ; if ( arguments . length > 2 ) { console . log ( '[broccoli-compass] DEPRECATION: passing files to broccoli-compass constructor as second parameter is deprecated, ' + 'use options.files instead' ) ; options . files = files ; } if ( ! ( this instanceof CompassCompiler ) ) { return new CompassCompiler ( inputTree , options ) ; } if ( options . exclude ) { console . log ( '[broccoli-compass] DEPRECATION: The exclude option has been deprecated in favour of the `cleanOutput` option' ) ; } this . options = merge ( true , this . defaultOptions ) ; merge ( this . options , options ) ; options = this . options ; options . files = ( options . files instanceof Array ) ? options . files : [ ] ; this . generateCmdLine ( ) ; this . inputTree = inputTree ; }
broccoli-compass Constructor.
@param inputTree   Any Broccoli tree.
@param files       [Optional] An array of sass files to compile.
@param options     The compass options.
@returns {CompassCompiler}
broccoli - compass Constructor .