{"size": 580, "ext": "js", "max_stars_repo_path": "build.serve.js", "max_stars_repo_name": "VeronikaVorontsova/ng2", "max_stars_repo_stars_event_min_datetime": "2020-11-28T18:41:52.000Z", "max_stars_repo_stars_event_max_datetime": "2020-11-28T18:41:52.000Z", "max_issues_repo_path": "build.serve.js", "max_issues_repo_name": "ddubrava/ng2", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "build.serve.js", "max_forks_repo_name": "ddubrava/ng2", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.0, "max_line_length": 78, "alphanum_fraction": 0.6655172414}
'use strict';
const { buildLib, buildTheme, serveApp, watchTheme } = require('./build.kit');
const cmdArgs = require('command-line-args');

const { prod } = cmdArgs([{
  name: 'prod',
  type: Boolean,
  defaultValue: false
}]);

const libOptions = ['--watch'];
const serveOptions = [];
if (prod) {
  libOptions.push('--prod');
  serveOptions.push('--prod');
}

function main() {
  buildTheme('ng2-qgrid-theme-basic');
  buildTheme('ng2-qgrid-theme-material');

  watchTheme('ng2-qgrid-theme-basic');
  watchTheme('ng2-qgrid-theme-material');

  serveApp(serveOptions);
}

main();
