{"size": 613, "ext": "js", "max_stars_repo_path": "metalsmith/prod.js", "max_stars_repo_name": "Locrian24/saasquatch-docs", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "metalsmith/prod.js", "max_issues_repo_name": "Locrian24/saasquatch-docs", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "metalsmith/prod.js", "max_forks_repo_name": "Locrian24/saasquatch-docs", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.652173913, "max_line_length": 118, "alphanum_fraction": 0.647634584}
var debug = require('debug')('saasquatch-docs');

import site from './site.js';

function prod(callback){
  debug("Building metal...");
  /**
   * Does a production build of Metalsmith. Output static files into the `build` folder.
   */
  site()
  .clean(false) // Prevents deleting `assets` folder. Any clean-build stuff should be managed externally, e.g. in Gulp
  .build(function(err, files) {
    if (err){
      debug("Build error", err);
      callback(err);
      return;
    }
    debug("Metalsmith build done!", Object.keys(files).length, "files processed");
    callback();
  });
}

export default prod;