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IAAI,OAC9B,KAAK,UAAY,KAAK,KAAK,IAAI,QAC/B,KAAK,aAAc,IAAI,MAAO,cAE9B,KAAK,MAAM,OACX,KAAK,KAAK,sBAAuB,OAAS,KAAK,WAAa,WAE5D,KAAK,MAAM,QACX,KAAK,KAAK,4BAA6B,QAAU,KAAK,WAAa,gBAEnE,KAAK,KAAK,kBAAmB,mBAC7B,KAAK,KAAK,YAAa,cACvB,KAAK,KAAK,gBAAiB,kBAC3B,KAAK,KAAK,kBAAmB,mBAC7B,KAAK,KAAK,eAAgB,iBAC1B,KAAK,KAAK,cAAe,eACzB,KAAK,KAAK,eAAgB,gBAC1B,KAAK,KAAK,gBAAiB,gBAC3B,KAAK,KAAK,YAAa,aACvB,KAAK,KAAK,UAAW,UACvB","file":"/npm/generator-hubot-script-gulp@0.1.4/app/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/generator-hubot-script-gulp@0.1.4/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 util = require('util');\nvar path = require('path');\nvar yeoman = require('yeoman-generator');\n\nvar extractScriptName = function (_, appname) {\n  var slugged = _.slugify(appname),\n    match = slugged.match(/^hubot-(.+)/);\n  if (match && match.length === 2) {\n    return match[1].toLowerCase();\n  }\n  return slugged;\n};\n\nvar prepareKeywords = function(keywords) {\n  var ky = keywords.split(',');\n  for (var i = 0; i < ky.length; ++i) {\n    ky[i] = '\"' + ky[i].trim() + '\"';\n  }\n  return '[' + ky.join(',') + ']';\n};\n\nvar HubotScriptGenerator = module.exports = function HubotScriptGenerator(args, options, config) {\n  yeoman.generators.Base.apply(this, arguments);\n\n  this.on('end', function () {\n    this.installDependencies({\n      bower: false,\n      skipInstall: options['skip-install']\n    });\n  });\n\n  this.pkg = JSON.parse(this.readFileAsString(path.join(__dirname, '../package.json')));\n};\n\nutil.inherits(HubotScriptGenerator, yeoman.generators.Base);\n\nHubotScriptGenerator.prototype.askFor = function askFor() {\n  var done = this.async();\n  var scriptName = extractScriptName(this._, this.appname);\n\n  // have Yeoman greet the user.\n  //console.log(this.yeoman);\n\n  var prompts = [\n    {\n      name: 'scriptName',\n      message: 'Base name of script',\n      default: scriptName\n    },\n    {\n      name: 'scriptDescription',\n      message: 'Description',\n      default: 'A hubot script that does the things'\n    },\n    {\n      name: 'scriptKeywords',\n      message: 'Keywords',\n      default: 'hubot, hubot-scripts'\n    }\n  ];\n\n  this.prompt(prompts, function (props) {\n    this.scriptName = props.scriptName.toLowerCase();\n    this.appname = 'hubot-' + this.scriptName;\n    this.scriptDescription = props.scriptDescription;\n    this.scriptKeywords = prepareKeywords(props.scriptKeywords);\n\n    done();\n  }.bind(this));\n};\n\nHubotScriptGenerator.prototype.app = function app() {\n\n  this.userName = this.user.git.name();\n  this.userEmail = this.user.git.email();\n  this.currentYear = new Date().getFullYear();\n\n  this.mkdir('src');\n  this.copy('src/template.coffee', 'src/' + this.scriptName + '.coffee');\n\n  this.mkdir('test');\n  this.copy('test/template-test.coffee', 'test/' + this.scriptName + '-test.coffee');\n\n  this.copy('gulpfile.coffee', 'gulpfile.coffee');\n  this.copy('gitignore', '.gitignore');\n  this.copy('gitattributes', '.gitattributes');\n  this.copy('coffeelint.json', 'coffeelint.json');\n  this.copy('editorconfig', '.editorconfig');\n  this.copy('.travis.yml', '.travis.yml');\n  this.copy('index.coffee', 'index.coffee');\n  this.copy('_package.json', 'package.json');\n  this.copy('README.md', 'README.md');\n  this.copy('LICENSE', 'LICENSE');\n};\n"]}