{"version":3,"sources":["jsdelivr-header.js","/npm/generator-bootstrap-backbone-starter@0.1.5/app/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,IAAI,MAAQ,QAAQ,SAChB,WAAa,QAAQ,oBACrB,GAAK,QAAQ,qBAEjB,QAAU,OAAO,QAAU,WAAW,KAAK,OAAO,CAChD,YAAa,SAAS,EAAM,GAC1B,KAAK,GAAG,KAAK,KAAK,aAAa,GAAO,KAAK,gBAAgB,GAC7D,EACA,aAAc,SAAS,GACrB,IAAI,EAAS,KAAK,gBAAgB,GAC7B,KAAK,GAAG,OAAO,IAClB,KAAK,MAAM,EAEf,EACA,wBAAyB,SAAU,EAAM,EAAI,GAC3C,KAAK,GAAG,QACN,KAAK,aAAa,GAClB,KAAK,gBAAgB,GACrB,EACJ,EACA,UAAW,WACT,IAAI,EAAO,KAAK,QAEZ,EAAU,CAAC,CACb,KAAM,sBACN,QAAS,+BACT,QAAU,KAAK,mBACf,KAAM,mFAGR,KAAK,OAAO,EAAS,SAAU,GAC7B,KAAK,QAAU,EACf,GACF,EAAE,KAAK,MACT,EACA,cAAe,WACb,KAAK,QAAuC,8BAAI,GAC9C,KAAK,QAA6B,qBAAG,eAAe,YAAY,OAEpE,EACA,iBAAkB,WAChB,IAAI,EAAO,KAAK,QACZ,EAAU,CAAE,CACd,KAAM,gCACN,QAAS,iFACT,QAAU,KAAK,QAAuC,8BACtD,KAAM,iCACL,CACD,KAAM,6BACN,QAAS,sCACT,QAAU,KAAK,mBACf,KAAM,+BACL,CACD,KAAM,qBACN,QAAS,uBACT,QAAU,KAAK,KAAK,IAAI,QACxB,KAAM,sCACL,CACD,KAAM,oBACN,QAAS,sBACT,QAAU,KAAK,KAAK,IAAI,OACxB,KAAM,qCACL,CACD,KAAM,0BACN,QAAS,iCACT,QAAU,KAAK,KAAK,IAAI,QAAQ,MAAM,KAAK,GAC3C,KAAM,oDACL,CACD,KAAM,yBACN,QAAS,sCACT,QAAU,cACR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jsDelivr using Terser v5.39.0.\n * Original file: /npm/generator-bootstrap-backbone-starter@0.1.5/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","var chalk = require('chalk'),\n    generators = require('yeoman-generator'),\n    us = require('underscore.string');\n\nexports = module.exports = generators.Base.extend({\n  _copyToDest: function(from, to) {\n    this.fs.copy(this.templatePath(from), this.destinationPath(to));\n  },\n  _makeDestDir: function(dir) {\n    var newDir = this.destinationPath(dir);\n    if (!this.fs.exists(newDir)) {\n      this.mkdir(newDir);\n    }\n  },\n  _copyToDestWithTemplate: function (from, to, template) {\n    this.fs.copyTpl(\n      this.templatePath(from),\n      this.destinationPath(to),\n      template);\n  },\n  prompting: function () {\n    var done = this.async();\n\n    var prompts = [{\n      name: 'generatorWebappName',\n      message: 'What is your webapp\\'s name ?',\n      default : this.determineAppname(),\n      desc: 'Name of your webapp. We will create an app with this name in current directory'\n    }];\n\n    this.prompt(prompts, function (answers) {\n      this.answers = answers;\n      done();\n    }.bind(this));\n  },\n  deriveAnswers: function() {\n    this.answers['generatorWebappNameWithDashes'] = us(\n      this.answers['generatorWebappName']).decapitalize().dasherize().value();\n\n  },\n  askWebappWebsite: function() {\n    var done = this.async();\n    var prompts = [ {\n      name: 'generatorWebappNameWithDashes',\n      message: 'What is your module\\'s dasherized name ? Will use this as the main module name:',\n      default : this.answers['generatorWebappNameWithDashes'],\n      desc: 'Dasherized name of the webapp'\n    }, {\n      name: 'generatorWebappDescription',\n      message: 'What is your webapp\\'s description ?',\n      default : this.determineAppname(),\n      desc: 'Description of your webapp.'\n    }, {\n      name: 'generatorUserEmail',\n      message: 'What is your email ?',\n      default : this.user.git.email(),\n      desc: 'Your email, goes into package.json'\n    }, {\n      name: 'generatorUserName',\n      message: 'What is your name ?',\n      default : this.user.git.name(),\n      desc: 'Your name, goes into package.json'\n    }, {\n      name: 'generatorUserGithubName',\n      message: 'What is your github username ?',\n      default : this.user.git.email().split('@')[0],\n      desc: 'Your github account name, goes into package.json'\n    }, {\n      name: 'generatorWebappWebsite',\n      message: 'What is your webapp\\'s own website ?',\n      default : 'http://www.' +\n        this.answers['generatorWebappNameWithDashes'] +\n        '.com',\n      desc: 'The website for your module, goes into package.json'\n    }];\n    this.prompt(prompts, function (answers) {\n      var propNames = Object.getOwnPropertyNames(answers);\n      for (var i = 0; i < propNames.length; i++) {\n        this.answers[propNames[i]] = answers[propNames[i]];\n      }\n      done();\n    }.bind(this));\n  },\n  fixUsername: function() {\n    this.answers['generatorUserName'] = us.titleize(this.answers['generatorUserName']);\n  },\n  tellUserOurTemplate: function(){\n    this.log('We will use the values below for templating:');\n    this.log(this.answers);\n  },\n  scaffoldFolders: function(){\n    this._makeDestDir('src');\n    this._makeDestDir('assets');\n    this._makeDestDir('assets/css');\n    this._makeDestDir('assets/js');\n  },\n  copyFiles: function(){\n    this._copyToDest('._editorconfig', '.editorconfig');\n    this._copyToDest('._flowconfig', '.flowconfig');\n    this._copyToDest('._gitignore', '.gitignore');\n    this._copyToDest('._jscsrc', '.jscsrc');\n    this._copyToDest('_Gruntfile.js', 'Gruntfile.js');\n    this._copyToDestWithTemplate('_LICENCE.md', 'LICENCE.md', this.answers);\n    this._copyToDestWithTemplate('_README.md.template', 'README.md.template', this.answers);\n    this._copyToDest('_HOW_TO_GUIDE.md', 'HOW_TO_GUIDE.md');\n    this._copyToDest('_jsdoc.conf', 'jsdoc.conf');\n    this._copyToDestWithTemplate('_package.json', 'package.json', this.answers);\n    // Now directories\n    this._copyToDest('_assets/_js/*', 'assets/js/');\n    this._copyToDest('_assets/_css/*', 'assets/css/');\n    this._copyToDest('_src/*', 'src/');\n    this._copyToDestWithTemplate('_src/index.html.template', 'src/index.html.template', this.answers);\n    \n  },\n  installingDependencies: function() {\n    this.installDependencies({\n      bower: false,\n      npm: true,\n      callback: function () {\n        console.log(chalk.yellow('\\nEverything is ready!'));\n        console.log(chalk.yellow('You can type \"grunt\", and get your webapp built into dist/.'));\n        console.log(chalk.magenta('cd dist/ and type python -m SimpleHTTPServer 8000'));\n        console.log(chalk.yellow('Go to http://localhost:8000 and voila, your webapp is running!'));\n        console.log(chalk.cyan('\\nFor more information, refer to README.md.'));\n        console.log(chalk.green('\\nEnjoy the ride, and have fun coding!'));\n      }\n    });\n  }\n});\n"]}