{"size": 444, "ext": "js", "max_stars_repo_path": "mkccmds.js", "max_stars_repo_name": "parkovski/isvt", "max_stars_repo_stars_event_min_datetime": "2021-03-23T17:57:45.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-23T17:57:45.000Z", "max_issues_repo_path": "mkccmds.js", "max_issues_repo_name": "parkovski/isvt", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "mkccmds.js", "max_forks_repo_name": "parkovski/isvt", "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": 26.1176470588, "max_line_length": 106, "alphanum_fraction": 0.5945945946}
const fs = require('fs');

const json = fs
  .readdirSync(__dirname)
  .filter(x => x.endsWith('.cpp'))
  .map(name => ({
    directory: __dirname.replace(/\\/g, '/'),
    command: `cl.exe /nologo /DWIN32 /D_WINDOWS /W3 /EHsc /MDd /Zi /Ob0 /Od /RTC1 -std:c++latest ${name}`,
    file: `${__dirname.replace(/\\/g, '/')}/${name}`
  }))

fs.writeFileSync(
  __dirname + '/compile_commands.json',
  JSON.stringify(json),
  { encoding: 'utf-8' }
);
