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ACZ,EAAS,OAGT,EAAqB,qBACzB,KAAK,MAAM,GACX,KAAK,MAAM,GACX,KAAK,MALM,MAMX,KAAK,MALc,cAMnB,KAAK,MAAM,GACX,KAAK,SAAS,WAAY,KAAK,SAAW,QAC1C,KAAK,SAAS,gBAAiB,KAAK,SAAW,aAC/C,KAAK,SAAS,YAAa,YAC3B,KAAK,SAAS,iBAAkB,iBAChC,KAAK,SAAS,mBAAoB,EAAS,eAC3C,KAAK,SAAS,iBAAkB,EAAS,aACzC,KAAK,SAAS,kBAAmB,EAAS,cAC1C,KAAK,SAAS,iBAAkB,EAAS,aACzC,KAAK,SAAS,gBAAiB,EAAS,YACxC,KAAK,SAAS,cAAe,cAC7B,KAAK,SAAS,6BAA8B,EAAqB,YAEjE,IAAI,EAAe,EAAY,OAC3B,EAAc,EAAY,MAC1B,EAAgB,EAAY,SAChC,KAAK,MAAM,GACX,KAAK,MAAM,GACX,KAAK,MAAM,GACX,KAAK,SAAS,qBAAsB,EAAY,cAChD,KAAK,KAAK,qBAAsB,EAAe,WAC/C,KAAK,SAAS,oBAAqB,EAAc,UACjD,KAAK,SAAS,qCAAsC,EAAc,2BAClE,KAAK,SAAS,+BAAgC,EAAgB,iBAChE,EAEA,yBAAyB,UAAU,aAAe,WAChD,KAAK,KAAK,eAAgB,iBAC1B,KAAK,KAAK,WAAY,YACxB","file":"/npm/generator-angular-caveman2@0.1.2/app/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/generator-angular-caveman2@0.1.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 util = require('util'),\n    path = require('path'),\n    yeoman = require('yeoman-generator'),\n    _ = require('lodash'),\n    _s = require('underscore.string'),\n    pluralize = require('pluralize'),\n    asciify = require('asciify');\n\nvar AngularCaveman2Generator = module.exports = function AngularCaveman2Generator(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(AngularCaveman2Generator, yeoman.generators.Base);\n\nAngularCaveman2Generator.prototype.askFor = function askFor() {\n\n  var cb = this.async();\n\n  console.log('\\n' +\n    '+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+\\n' +\n    '|a|n|g|u|l|a|r| |c|a|v|e|m|a|n|2| |g|e|n|e|r|a|t|o|r|\\n' +\n    '+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+\\n' +\n    '\\n');\n\n  var prompts = [{\n    type: 'input',\n    name: 'baseName',\n    message: 'What is the name of your application?',\n    default: 'myapp'\n  },\n  {\n    type: 'list',\n    name: 'orm',\n    message: 'Which object-relational mapper would you like to use?',\n    choices: ['Integral', 'Postmodern'],\n    default: 'Integral'\n  }];\n\n  this.prompt(prompts, function (props) {\n    this.baseName = props.baseName;\n    this.orm = props.orm == 'Integral' ? 'integral' : 'postmodern';\n\n    cb();\n  }.bind(this));\n};\n\nAngularCaveman2Generator.prototype.app = function app() {\n\n  this.entities = [];\n  this.resources = [];\n  this.generatorConfig = {\n    \"baseName\": this.baseName,\n    \"orm\": this.orm,\n    \"entities\": this.entities,\n    \"resources\": this.resources\n  };\n  this.generatorConfigStr = JSON.stringify(this.generatorConfig, null, '\\t');\n\n  this.template('_generator.json', 'generator.json');\n  this.template('_package.json', 'package.json');\n  this.template('_bower.json', 'bower.json');\n  this.template('bowerrc', '.bowerrc');\n  this.template('Gruntfile.js', 'Gruntfile.js');\n  this.copy('gitignore', '.gitignore');\n\n  var publicDir = 'static/'\n  var srcDir = 'src/'\n  var tDir = 't/'\n  var templatesDir = 'templates/'\n  var templatesErrorsDir = 'templates/_errors/'\n  this.mkdir(publicDir);\n  this.mkdir(srcDir);\n  this.mkdir(tDir);\n  this.mkdir(templatesDir);\n  this.mkdir(templatesErrorsDir);\n  this.template('_app.asd', this.baseName + '.asd');\n  this.template('_app-test.asd', this.baseName + '-test.asd');\n  this.template('_app.lisp', 'app.lisp');\n  this.template('_shlyfile.lisp', 'shlyfile.lisp');\n  this.template('src/_config.lisp', srcDir + 'config.lisp');\n  this.template('src/_main.lisp', srcDir + 'main.lisp');\n  this.template('src/_model.lisp', srcDir + 'model.lisp');\n  this.template('src/_view.lisp', srcDir + 'view.lisp');\n  this.template('src/_web.lisp', srcDir + 'web.lisp');\n  this.template('t/_app.lisp', tDir + 'app.lisp');\n  this.template('templates/_errors/404.html', templatesErrorsDir + '404.html');\n\n  var publicCssDir = publicDir + 'css/';\n  var publicJsDir = publicDir + 'js/';\n  var publicViewDir = publicDir + 'views/';\n  this.mkdir(publicCssDir);\n  this.mkdir(publicJsDir);\n  this.mkdir(publicViewDir);\n  this.template('public/_index.html', publicDir + 'index.html');\n  this.copy('public/css/app.css', publicCssDir + 'app.css');\n  this.template('public/js/_app.js', publicJsDir + 'app.js');\n  this.template('public/js/home/_home-controller.js', publicJsDir + 'home/home-controller.js');\n  this.template('public/views/home/_home.html', publicViewDir + 'home/home.html');\n};\n\nAngularCaveman2Generator.prototype.projectfiles = function projectfiles() {\n  this.copy('editorconfig', '.editorconfig');\n  this.copy('jshintrc', '.jshintrc');\n};\n"]}