{"size": 778, "ext": "js", "max_stars_repo_path": "tool/convert.js", "max_stars_repo_name": "riccoarntz/muban-transition-component", "max_stars_repo_stars_event_min_datetime": "2019-11-25T18:09:11.000Z", "max_stars_repo_stars_event_max_datetime": "2019-11-25T18:09:11.000Z", "max_issues_repo_path": "tool/convert.js", "max_issues_repo_name": "riccoarntz/muban-transition-component", "max_issues_repo_issues_event_min_datetime": "2019-01-09T12:04:46.000Z", "max_issues_repo_issues_event_max_datetime": "2021-04-12T10:17:39.000Z", "max_forks_repo_path": "tool/convert.js", "max_forks_repo_name": "riccoarntz/muban-transition-component", "max_forks_repo_forks_event_min_datetime": "2019-08-15T14:11:54.000Z", "max_forks_repo_forks_event_max_datetime": "2019-08-15T14:11:54.000Z"}
{"max_stars_count": 1, "max_issues_count": 17, "max_forks_count": 1, "avg_line_length": 29.9230769231, "max_line_length": 114, "alphanum_fraction": 0.6683804627}
const { actionType, parseActions, sequentialPromises } = require('./index');
const confirm = require('confirm-simple');

// Actions
const actions = [
  {
    type: actionType.RUN,
    label: 'Update the seng-generator template path.',
    command: 'sg settings -t ./build-tools/generator-template,./node_modules/muban-transition-component/template',
  },
  {
    type: actionType.REPLACE,
    label: 'replace files in the skeleton.',
    source: 'convert',
    target: './',
  }
];

confirm('Running this script will replace/adapt files, are you running this on a clean project?', function (ok) {
  if (ok) {
    sequentialPromises(parseActions(actions))
    .then(() => console.log('Done.'))
    .catch(reason => console.log('Failed to execute the script: ', reason));
  }
});
