{"version":3,"sources":["jsdelivr-header.js","/npm/generator-vtex@3.0.2/app/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aACA,IAAI,KAAO,QAAQ,QACf,OAAS,QAAQ,oBACjB,MAAQ,QAAQ,SAChB,QAAU,QAAQ,WAEtB,OAAO,QAAU,OAAO,KAAK,OAAO,CAClC,YAAa,WACX,OAAO,KAAK,MAAM,KAAM,WACxB,KAAK,WAAW,KAAK,KAAK,UAAW,iBAErC,KAAK,WAAa,CAChB,OAAU,CAAC,QAEf,EAEA,aAAc,WACZ,KAAK,IAAM,QAAQ,kBACrB,EAEA,KAAM,WACJ,IAAI,EAAO,KAAK,QACZ,EAAO,KAEX,KAAK,IAAI,QACP,6BAA+B,MAAM,IAAI,QAAU,gBAGrD,IAAI,EAAU,CAAC,CACb,KAAM,QACN,KAAM,OACN,QAAS,6BACT,SAAU,SAAS,GACjB,IAAI,EAAO,KAAK,QACX,IAAI,OAAO,gBAAgB,KAAK,GAGnC,EAAK,MAAM,GAFX,EAAK,KAAM,wDAIf,GACC,CACD,KAAM,QACN,KAAM,SACN,QAAS,uCAGX,KAAK,OAAO,GAAS,MAAK,SAAS,GACjC,EAAK,KAAO,EAAM,KAClB,EAAK,OAAS,EAAM,OAEpB,GACF,GACF,EAEA,UAAW,WACT,KAAK,MACP,EAEA,WAAY,WACV,KAAK,GAAG,QACN,KAAK,aAAa,kBAClB,KAAK,gBAAgB,iBACrB,CACE,KAAM,KAAK,KACX,OAAQ,KAAK,SAGjB,KAAK,GAAG,QACN,KAAK,aAAa,eAClB,KAAK,gBAAgB,gBAEvB,KAAK,GAAG,QACN,KAAK,aAAa,4CAClB,KAAK,gBAAgB,gCAEzB,EAEA,QAAS,WACP,KAAK,YACP,EAEA,QAAS,WAIT","file":"/npm/generator-vtex@3.0.2/app/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/generator-vtex@3.0.2/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","'use strict';\nvar path = require('path');\nvar yeoman = require('yeoman-generator');\nvar chalk = require('chalk');\nvar vtexsay = require('vtexsay');\n\nmodule.exports = yeoman.Base.extend({\n  constructor: function() {\n    yeoman.Base.apply(this, arguments);\n    this.sourceRoot(path.join(__dirname, '../templates'));\n\n    this.vtexignore = {\n      'ignore': ['.git']\n    };\n  },\n\n  initializing: function () {\n    this.pkg = require('../package.json');\n  },\n\n  _ask: function() {\n    var done = this.async();\n    var self = this;\n\n    this.log(vtexsay(\n      'Welcome to the tremendous ' + chalk.red('VTEX') + ' generator!'\n    ));\n\n    var prompts = [{\n      type: 'input',\n      name: 'name',\n      message: 'What\\'s your VTEX app name?',\n      validate: function(input) {\n        var done = this.async();\n        if (!new RegExp(/^[a-z\\-\\_]+$/).test(input)) {\n          done(null, \"The app name should only contain letters, '-' or '_'.\");\n        } else {\n          done(null, true);\n        }\n      }\n    }, {\n      type: 'input',\n      name: 'vendor',\n      message: 'What\\'s your VTEX account (vendor)?'\n    }];\n\n    this.prompt(prompts).then(function(props) {\n      self.name = props.name;\n      self.vendor = props.vendor;\n\n      done();\n    });\n  },\n\n  prompting: function () {\n    this._ask();\n  },\n\n  _copyBasic: function() {\n    this.fs.copyTpl(\n      this.templatePath('_manifest.json'),\n      this.destinationPath('manifest.json'),\n      {\n        name: this.name,\n        vendor: this.vendor\n      }\n    );\n    this.fs.copyTpl(\n      this.templatePath('_vtexignore'),\n      this.destinationPath('.vtexignore')\n    );\n    this.fs.copyTpl(\n      this.templatePath('_storefront/src/utils/reporterOptions.js'),\n      this.destinationPath('src/utils/reporterOptions.js')\n    );\n  },\n\n  writing: function() {\n    this._copyBasic();\n  },\n\n  install: function () {\n    /*this.installDependencies({\n      skipInstall: this.options['skip-install']\n    });*/\n  }\n});\n"]}