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AS,0BAA2B,GAEzC,KAAK,SAAS,mBAAoB,kBACpC,EAEA,wBAAwB,UAAU,SAAW,WAC3C,KAAK,SAAS,uBAAwB,uBACxC,EAEA,wBAAwB,UAAU,SAAW,WAC3C,IAAI,EAAU,OAAS,KAAK,EAAE,QAAQ,KAAK,YAAe,MAC1D,KAAK,SAAS,oBAAqB,EACrC","file":"/npm/generator-backbone-module@1.0.0/app/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/generator-backbone-module@1.0.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","'use strict';\nvar util = require('util');\nvar path = require('path');\nvar yeoman = require('yeoman-generator');\n\n\nvar BackboneModuleGenerator = module.exports = function BackboneModuleGenerator(args, options, config) {\n  yeoman.generators.Base.apply(this, arguments);\n\n  this.on('end', function () {\n    this.installDependencies({ skipInstall: options['skip-install'] });\n  });\n\n  this.pkg = JSON.parse(this.readFileAsString(path.join(__dirname, '../package.json')));\n};\n\nutil.inherits(BackboneModuleGenerator, yeoman.generators.Base);\n\nBackboneModuleGenerator.prototype.askFor = function askFor() {\n  var cb = this.async();\n\n  var prompts = [{\n    name: 'moduleName',\n    message: 'What do you want to name this module?'\n  },\n  {\n    name: 'githubName',\n    message: 'What is the github username or organization where this module will be stored?'\n  },\n  {\n    name: 'authorName',\n    message: 'What is your name?'\n  }];\n\n  this.prompt(prompts, function (props) {\n    this.moduleName = props.moduleName;\n    this.githubName = props.githubName;\n    this.authorName = props.authorName;\n\n    cb();\n  }.bind(this));\n};\n\nBackboneModuleGenerator.prototype.directoryStructure = function directoryStructure() {\n  this.mkdir('lib');\n  this.mkdir('test');\n  this.mkdir('example');\n  this.directory('util', 'util');\n};\n\nBackboneModuleGenerator.prototype.projectfiles = function projectfiles() {\n  this.template('_Gruntfile.js', 'Gruntfile.js');\n  this.template('_package.json', 'package.json');\n  this.template('_bower.json', 'bower.json');\n  this.template('_README.md', 'README.md');\n  this.template('_LICENSE.md', 'LICENSE.md');\n\n  this.copy('travis.yml', '.travis.yml');\n  this.copy('bowerrc', '.bowerrc');\n  this.copy('gitignore', '.gitignore');\n  this.copy('editorconfig', '.editorconfig');\n  this.copy('jshintrc', '.jshintrc');\n};\n\nBackboneModuleGenerator.prototype.testFiles = function testFiles() {\n  var testPath = 'test/test.' + this._.slugify(this.moduleName) +  '.js';\n  this.template('test/test.config.js', 'test/test.config.js');\n  this.template('test/test.the-module.js', testPath);\n\n  this.template('_testrunner.html', 'testrunner.html');\n};\n\nBackboneModuleGenerator.prototype.examples = function examples() {\n  this.template('example/example.html', 'example/example.html');\n};\n\nBackboneModuleGenerator.prototype.libFiles = function libFiles() {\n  var libPath = 'lib/' + this._.slugify(this.moduleName) +  '.js';\n  this.template('lib/the-module.js', libPath);\n};\n"]}