{"size": 521, "ext": "js", "max_stars_repo_path": "atmosphere-packages/css-compiler/compilers/style_compiler.js", "max_stars_repo_name": "enterstudio/angular-meteor", "max_stars_repo_stars_event_min_datetime": "2020-07-08T15:20:16.000Z", "max_stars_repo_stars_event_max_datetime": "2020-07-08T15:20:16.000Z", "max_issues_repo_path": "atmosphere-packages/css-compiler/compilers/style_compiler.js", "max_issues_repo_name": "enterstudio/angular-meteor", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "atmosphere-packages/css-compiler/compilers/style_compiler.js", "max_forks_repo_name": "enterstudio/angular-meteor", "max_forks_repo_forks_event_min_datetime": "2020-05-30T18:15:12.000Z", "max_forks_repo_forks_event_max_datetime": "2020-05-30T18:15:12.000Z"}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 21.7083333333, "max_line_length": 69, "alphanum_fraction": 0.6257197697}

/**
 * Top styles compiler that defines
 * compilers for diff style types.
 */
StyleCompiler = class StyleCompiler {
  constructor() {
    let scss = new SassCompilerExtended();
    this.compilers = {
      css: new CssCompiler(),
      less: new LessCompiler(),
      scss: scss,
      sass: scss
    };
  }

  processFilesForTarget(files) {
    for (let ex in this.compilers) {
      let exFiles = files.filter(file => file.getExtension() === ex);
      this.compilers[ex].processFilesForTarget(exFiles);
    }
  }
};
