generator-x2mod
Version:
A Yeoman generator that creates a XCOM 2 mods. Community maintained to free the masses from ModBuddy!
22 lines (19 loc) • 724 B
JavaScript
const Generator = require('yeoman-generator');
const ModConfigService = require('../../services/service.modConfig');
const WelcomeService = require('../../services/service.welcome');
require('../../lib/extensions.generator');
module.exports = class extends Generator {
constructor(args, opts) {
super(args, opts);
}
initializing() {
this.createModConfigContext();
this.composeWith('x2mod:emptyMod', this.options);
this.composeWith('x2mod:editorTaskConfig', this.options);
this.composeWith('x2mod:classCore', this.options);
}
prompting() {
let welcomeService = new WelcomeService(this);
welcomeService.welcome('Let\'s make a class mod!');
}
}