'use strict';

const path = require('path');

module.exports.TARGET_ROOT_PATH = path.join(process.cwd(), 'packages');
module.exports.TARGET_ROOT_REMOTES_PATH = path.join(process.cwd(), 'remotes');
module.exports.SKELETONS_ROOT_PATH = path.join(__dirname, 'skeletons', 'package');
module.exports.FRONTEND_SKELETON_EUI15_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '15.x', 'default');
module.exports.FRONTEND_SKELETON_EUI15_PARTICIPANT_DEFAULT_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '15.x', 'participant-default');
module.exports.FRONTEND_SKELETON_EUI15_PARTICIPANT_NGRX_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '15.x', 'participant-ngrx');
module.exports.FRONTEND_SKELETON_EUI16_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '16.x', 'default');
module.exports.FRONTEND_SKELETON_EUI16_PARTICIPANT_DEFAULT_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '16.x', 'participant-default');
module.exports.FRONTEND_SKELETON_EUI16_PARTICIPANT_NGRX_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '16.x', 'participant-ngrx');
module.exports.FRONTEND_SKELETON_EUI17_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '17.x', 'default');
module.exports.FRONTEND_SKELETON_EUI17_PARTICIPANT_DEFAULT_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '17.x', 'participant-default');
module.exports.FRONTEND_SKELETON_EUI17_PARTICIPANT_NGRX_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '17.x', 'participant-ngrx');
module.exports.FRONTEND_SKELETON_EUI18_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '18.x', 'default');
module.exports.FRONTEND_SKELETON_EUI18_PARTICIPANT_DEFAULT_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '18.x', 'participant-default');
module.exports.FRONTEND_SKELETON_EUI18_PARTICIPANT_NGRX_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '18.x', 'participant-ngrx');
module.exports.BACKEND_SKELETON_PATH = path.join(this.SKELETONS_ROOT_PATH, 'backend');
module.exports.VIRTUAL_REMOTE_SKELETON_ROOT_PATH = path.join(__dirname, 'skeletons', 'virtual-remote');

module.exports.CONFIG_OPTIONS = {
  pkgType: {
    FRONTEND: 'frontend',
    BACKEND: 'backend'
  },
  pkgFrontendType: {
    DEFAULT: 'default',
    REMOTE: 'remote'
  },
  pkgFrontendVersion: {
    EUI15: '15',
    EUI16: '16',
    EUI17: '17',
    EUI18: '18'
  }
}

module.exports.DEFAULT_CONFIG = {
  pkgType: this.CONFIG_OPTIONS.pkgType.FRONTEND,
  pkgFrontendType: this.CONFIG_OPTIONS.pkgFrontendType.DEFAULT,
  pkgFrontendVersion: this.CONFIG_OPTIONS.pkgFrontendVersion.EUI15,
  pkgName: 'my-package',
  pkgScope: '@zzz',
  isCsdrRepo: true,
  externalRepoName: null,
  pkgGroupId: 'eu.europa.ec.cc'
};
