text: const path = require('path')
  
  const generator = {
    isFeatureGenerator: true,
    description: 'Generator for feature plugin',
    prompts: [
      {
        type: 'input',
        name: 'packageName',
        message: 'Enter package name:',
      },
      {
        type: 'input',
        name: 'route',
        message: 'Enter plugin router path:',
        default: '/path',
      },
    ],
    actions: () => ([
      {
        type: 'add',
        path: './package.json',
        templateFile: './package.json.hbs',
        abortOnFail: true,
      },
      {
        type: 'add',
        path: './src/index.js',
        templateFile: './index.js.hbs',
        abortOnFail: true,
      },
      {
        type: 'add',
        path: './src/register.js',
        templateFile: './register.js.hbs',
        abortOnFail: true,
      },
      {
        type: 'add',
        path: './src/__mocks__/stylesMock.js',
        templateFile: './stylesMock.js.hbs',
        abortOnFail: true,
      },
      {
        type: 'add',
        path: './.babelrc',
        templateFile: './.babelrc.hbs',
        abortOnFail: true,
      },
    ].map(item => {
      if (item.templateFile) {
        item.templateFile = path.resolve(__dirname, '../feature-plugin', item.templateFile)
      }
      return item
    })),
  }
  
  module.exports = generator
  