{"version":3,"sources":["jsdelivr-header.js","/npm/generator-create-service-component@1.9.1/generators/app/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,MAAM,UAAY,QAAQ,oBACpB,MAAQ,QAAQ,SAChB,MAAQ,QAAQ,SAChB,WAAa,QAAQ,eACrB,UAAY,QAAQ,aAEpB,IAAM,QAAQ,sBAEpB,OAAO,QAAU,cAAc,UAC7B,eAAM,GACJ,KAAK,IAAI,MAAM,kBAAkB,MAAM,IAAI,IAAI,qBAW/C,OAAO,KAAK,OATI,CACd,CACE,KAAM,QACN,KAAM,WACN,QAAS,wCACT,QAAS,WAIe,MAAM,IAChC,MAAM,EAAoB,WAAW,UAAU,EAAM,UAC/C,EAAqB,WAAW,WAAW,EAAM,UAEvD,KAAK,MAAQ,IACR,EACH,oBACA,qBACA,wBAAyB,UAAU,GACpC,GAEL,CAEA,OAAA,GACE,KAAK,GAAG,QACN,CAAC,KAAK,aAAa,QAAS,KAAK,aAAa,UAC9C,KAAK,gBAAgB,kBACrB,KAAK,MAET","file":"/npm/generator-create-service-component@1.9.1/generators/app/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/generator-create-service-component@1.9.1/generators/app/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","const Generator = require('yeoman-generator');\nconst chalk = require('chalk');\nconst yosay = require('yosay');\nconst changeCase = require('change-case');\nconst pluralize = require('pluralize');\n\nconst pkg = require('../../package.json');\n\nmodule.exports = class extends Generator {\n  async prompting() {\n    this.log(yosay(`Welcome to the ${chalk.red(pkg.name)} generator!`));\n\n    const prompts = [\n      {\n        type: 'input',\n        name: 'compName',\n        message: 'Name of the new component (singular)?',\n        default: 'thing',\n      },\n    ];\n\n    return this.prompt(prompts).then((props) => {\n      const compNameParamCase = changeCase.paramCase(props.compName);\n      const compNamePascalCase = changeCase.pascalCase(props.compName);\n\n      this.props = {\n        ...props,\n        compNameParamCase,\n        compNamePascalCase,\n        compNameParamCasePlural: pluralize(compNameParamCase),\n      };\n    });\n  }\n\n  writing() {\n    this.fs.copyTpl(\n      [this.templatePath('**/*'), this.templatePath('**/.*')],\n      this.destinationPath('src/components'),\n      this.props,\n    );\n  }\n};\n"]}