{"version":3,"sources":["jsdelivr-header.js","/npm/generator-mmt-webpack@2.1.0/app/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,MAAM,OAAS,QAAQ,cACjB,UAAY,QAAQ,oBACpB,KAAO,QAAQ,QACf,OAAS,QAAQ,UACvB,SAEA,OAAO,QAAU,cAAc,UAC7B,KAAA,GACE,KAAK,WAAW,KAAK,KAAK,UAAW,WACvC,CAEA,SAAA,GACE,SAEA,KAAK,IAAI,oWAgBT,OAAO,KAAK,OARI,CACd,CACE,KAAM,QACN,KAAM,cACN,QAAS,kHAIe,MAAK,IAC/B,KAAK,MAAQ,IAEjB,CAEA,OAAA,GACE,OAAO,KAAK,kBAEZ,MAAM,YAAE,GAAgB,KAAK,MAE7B,KAAK,GAAG,KAAK,KAAK,aAAa,YAAa,KAAK,gBAAgB,aACjE,KAAK,GAAG,KAAK,KAAK,aAAa,iBAAkB,KAAK,gBAAgB,kBACtE,KAAK,GAAG,KAAK,KAAK,aAAa,UAAW,KAAK,gBAAgB,QAE/D,KAAK,GAAG,QACN,KAAK,aAAa,gBAClB,KAAK,gBAAgB,gBACrB,CAAE,gBAGJ,KAAK,GAAG,KACN,KAAK,aAAa,aAClB,KAAK,gBAAgB,UAEzB,CAEA,OAAA,GACE,KAAK,oBAAoB,CACvB,OAAO,EACP,KAAK,GAET","file":"/npm/generator-mmt-webpack@2.1.0/app/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/generator-mmt-webpack@2.1.0/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 notify = require('./notifier')\nconst Generator = require('yeoman-generator')\nconst path = require('path')\nconst mkdirp = require('mkdirp')\nnotify()\n\nmodule.exports = class extends Generator {\n  paths () {\n    this.sourceRoot(path.join(__dirname, 'webpack'))\n  }\n\n  prompting () {\n    notify()\n\n    this.log(`\n  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n  |   👌   Welcome to the MMT Webpack Seed Project Generator  👌   |\n  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n    `)\n\n    const prompts = [\n      {\n        type: 'input',\n        name: 'projectName',\n        message: 'What is the name of this project? Keep it lowercase and dash-separated. For example: vodafone-marketing-site'\n      }\n    ]\n\n    return this.prompt(prompts).then(props => {\n      this.props = props\n    })\n  }\n\n  writing () {\n    mkdirp.sync('config/webpack')\n\n    const { projectName } = this.props\n\n    this.fs.copy(this.templatePath('.babelrc'), this.destinationPath('.babelrc'))\n    this.fs.copy(this.templatePath('jsconfig.json'), this.destinationPath('jsconfig.json'))\n    this.fs.copy(this.templatePath('src/**'), this.destinationPath('src'))\n\n    this.fs.copyTpl(\n      this.templatePath('package.json'),\n      this.destinationPath('package.json'),\n      { projectName }\n    )\n\n    this.fs.copy(\n      this.templatePath('config/**'),\n      this.destinationPath('config')\n    )\n  }\n\n  install () {\n    this.installDependencies({\n      bower: false,\n      npm: true\n    })\n  }\n}\n"]}