UNPKG

generator-x2mod

Version:

A Yeoman generator that creates a XCOM 2 mods. Community maintained to free the masses from ModBuddy!

23 lines (20 loc) 685 B
const Generator = require('yeoman-generator'); 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); } prompting() { let welcomeService = new WelcomeService(this); welcomeService.welcome('Let\'s make a mod!'); } end() { this.log('Thanks for using yo x2mod! Go forth and make sweet mods!'); } }