{"version":3,"sources":["jsdelivr-header.js","/npm/generator-yield@0.0.1/app/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAEA,IAII,QAJA,OAAS,QAAQ,oBACjB,MAAQ,QAAQ,SAChB,MAAQ,QAAQ,SAChB,MAAQ,QAAQ,UAGpB,OAAO,QAAU,OAAO,WAAW,KAAK,OAAO,CAC7C,aAAc,WACZ,KAAK,IAAI,MAAM,+CACf,KAAK,IAAM,QAAQ,kBACrB,EAEA,UAAW,WACT,IAAI,EAAO,KAAK,QAChB,KAAK,OAAO,CACV,CACE,KAAM,QACN,KAAM,OACN,QAAS,oBACT,OAAO,GACN,CACD,KAAM,QACN,KAAM,SACN,QAAS,YACT,QAAS,GACT,OAAO,GACN,CACD,KAAM,QACN,KAAM,eACN,QAAS,qBACT,QAAS,GACT,OAAO,GACN,CACD,KAAM,QACN,KAAM,WACN,QAAS,mCACT,QAAS,GACT,OAAO,GACN,CACD,KAAM,QACN,KAAM,cACN,QAAS,2BACT,QAAS,GACT,OAAO,GACN,CACD,KAAM,QACN,KAAM,UACN,QAAS,uBACT,QAAS,QACT,OAAO,GACN,CACD,KAAM,QACN,KAAM,OACN,QAAS,wBACT,QAAS,IACT,OAAO,GACN,CACD,KAAM,UACN,KAAM,aACN,QAAS,iBACT,SAAS,EACT,OAAO,GACN,CACD,KAAM,OACN,KAAM,SACN,QAAS,4CACT,QAAS,CACP,WACA,WACA,UACA,cACA,cACA,cACA,cACA,UACA,OACA,OACA,SACA,YAEF,QAAS,cACT,OAAO,IAER,SAAS,GACV,QAAU,EACV,GACF,EAAE,KAAK,MACT,EAEA,YAAa,CACX,eAAgB,WACd,KAAK,IAAI,MAAM,OAAO,yBACtB,KAAK,SAAS,KAAK,aAAa,OAAQ,KAAK,gBAAgB,QAAS,SACtE,KAAK,GAAG,KAAK,KAAK,aAAa,gBAAiB,KAAK,gBAAgB,kBACrE,KAAK,GAAG,KAAK,KAAK,aAAa,YAAa,KAA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AK,gBAAgB,+BAE3B,MAAM,KAAK,gBAAgB,kCAC3B,KAAK,GAAG,KAAK,KAAK,aAAa,6BAA8B,KAAK,gBAAgB,yCAElF,MAAM,KAAK,gBAAgB,8BAE3B,MAAM,KAAK,gBAAgB,6BAC3B,KAAK,GAAG,KAAK,KAAK,aAAa,qCAAsC,KAAK,gBAAgB,iDAE1F,MAAM,KAAK,gBAAgB,sBAC3B,KAAK,GAAG,KAAK,KAAK,aAAa,mBAAoB,KAAK,gBAAgB,+BAExE,MAAM,KAAK,gBAAgB,4BAC3B,MAAM,KAAK,gBAAgB,gCAC3B,MAAM,KAAK,gBAAgB,gCAC3B,MAAM,KAAK,gBAAgB,gCAC3B,MAAM,KAAK,gBAAgB,4BAC3B,KAAK,GAAG,KAAK,KAAK,aAAa,0BAA2B,KAAK,gBAAgB,sCAC/E,KAAK,GAAG,KAAK,KAAK,aAAa,0BAA2B,KAAK,gBAAgB,sCAE/E,MAAM,KAAK,gBAAgB,cAC3B,KAAK,GAAG,KAAK,KAAK,aAAa,oBAAqB,KAAK,gBAAgB,yBAEzE,MAAM,KAAK,gBAAgB,uBAC3B,KAAK,SAAS,KAAK,aAAa,4BAA6B,KAAK,gBAAgB,gCAAiC,SACnH,KAAK,GAAG,KAAK,KAAK,aAAa,+BAAgC,KAAK,gBAAgB,oCAEpF,MAAM,KAAK,gBAAgB,sBAC3B,KAAK,GAAG,KAAK,KAAK,aAAa,8BAA+B,KAAK,gBAAgB,kCACrF,GAGF,QAAS,WACP,KAAK,IAAI,MAAM,OAAO,yBACtB,KAAK,YACP,EAEA,IAAK,WACH,KAAK,IAAI,MAAM,MAAM,mBACvB","file":"/npm/generator-yield@0.0.1/app/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/generator-yield@0.0.1/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'\n\nlet yeoman = require('yeoman-generator')\nlet chalk = require('chalk')\nlet yosay = require('yosay')\nlet mkdir = require('mkdirp')\nlet context\n\nmodule.exports = yeoman.generators.Base.extend({\n  initializing: function() {\n    this.log(yosay('ES6, React, Less, Babel, Browserify, Grunt'))\n    this.pkg = require('../package.json')\n  },\n\n  prompting: function() {\n    let done = this.async()\n    this.prompt([\n      {\n        type: 'input',\n        name: 'name',\n        message: 'Your project name',\n        store: true\n      }, {\n        type: 'input',\n        name: 'author',\n        message: 'Your name',\n        default: '',\n        store: true\n      }, {\n        type: 'input',\n        name: 'author_email',\n        message: 'Your email address',\n        default: '',\n        store: true\n      }, {\n        type: 'input',\n        name: 'keywords',\n        message: 'Some keywords about your project',\n        default: '',\n        store: true\n      }, {\n        type: 'input',\n        name: 'description',\n        message: 'Your project description',\n        default: '',\n        store: true\n      }, {\n        type: 'input',\n        name: 'version',\n        message: 'Your project version',\n        default: '0.0.1',\n        store: true\n      }, {\n        type: 'input',\n        name: 'port',\n        message: 'Your development port',\n        default: 3000,\n        store: true\n      }, {\n        type: 'confirm',\n        name: 'livereload',\n        message: 'Use livereload',\n        default: true,\n        store: true\n      }, {\n        type: 'list',\n        name: 'engine',\n        message: 'Which Node.js/iojs version you wanna use?',\n        choices: [\n          'v0.10.36',\n          'v0.11.14',\n          'v0.12.0',\n          'iojs-v1.5.0',\n          'iojs-v1.6.2',\n          'iojs-v1.6.3',\n          'iojs-v1.6.4',\n          'default',\n          'node',\n          'iojs',\n          'stable',\n          'unstable'\n        ],\n        default: 'iojs-v1.6.4',\n        store: true\n      }\n    ], function(answers) {\n      context = answers\n      done()\n    }.bind(this))\n  },\n\n  configuring: {\n    configurations: function() {\n      this.log(chalk.yellow('Setup configurations'))\n      this.template(this.templatePath('env'), this.destinationPath('.env'), context)\n      this.fs.copy(this.templatePath('editorconfig'), this.destinationPath('.editorconfig'))\n      this.fs.copy(this.templatePath('jshintrc'), this.destinationPath('.jshintrc'))\n      this.fs.copy(this.templatePath('gitignore'), this.destinationPath('.gitignore'))\n      this.fs.copy(this.templatePath('gitattributes'), this.destinationPath('.gitattributes'))\n      this.fs.copy(this.templatePath('Gruntfile.js'), this.destinationPath('Gruntfile.js'))\n      this.fs.copy(this.templatePath('nodemon.json'), this.destinationPath('nodemon.json'))\n      this.template(this.templatePath('nvmrc'), this.destinationPath('.nvmrc'), context)\n    }\n  },\n\n  writing: {\n    app: function() {\n      this.log(chalk.yellow('Copy templates'))\n      this.template(this.templatePath('_package.json'), this.destinationPath('package.json'), context)\n      this.template(this.templatePath('README.md'), this.destinationPath('README.md'), context)\n\n      mkdir(this.destinationPath('docs'))\n\n      mkdir(this.destinationPath('app'))\n      this.fs.copy(this.templatePath('app.js'), this.destinationPath('app/app.js'))\n      this.fs.copy(this.templatePath('cluster.js'), this.destinationPath('app/cluster.js'))\n      this.fs.copy(this.templatePath('config.js'), this.destinationPath('app/config.js'))\n\n      mkdir(this.destinationPath('app/middleware'))\n      this.fs.copy(this.templatePath('middleware/error.js'), this.destinationPath('app/middleware/error.js'))\n      this.fs.copy(this.templatePath('middleware/index.js'), this.destinationPath('app/middleware/index.js'))\n\n      mkdir(this.destinationPath('app/routes'))\n      this.fs.copy(this.templatePath('routes/index.js'), this.destinationPath('app/routes/index.js'))\n\n      mkdir(this.destinationPath('app/static'))\n      this.fs.copy(this.templatePath('icon.png'), this.destinationPath('app/static/icon.png'))\n\n      mkdir(this.destinationPath('app/static/images'))\n\n      mkdir(this.destinationPath('app/static/scripts'))\n      this.fs.copy(this.templatePath('scripts/app.jsx'), this.destinationPath('app/static/scripts/app.jsx'))\n      this.fs.copy(this.templatePath('scripts/routes.jsx'), this.destinationPath('app/static/scripts/routes.jsx'))\n\n      mkdir(this.destinationPath('app/static/scripts/actions'))\n\n      mkdir(this.destinationPath('app/static/scripts/dispatcher'))\n      this.fs.copy(this.templatePath('scripts/dispatcher/app.js'), this.destinationPath('app/static/scripts/dispatcher/app.js'))\n\n      mkdir(this.destinationPath('app/static/scripts/stores'))\n\n      mkdir(this.destinationPath('app/static/scripts/views'))\n      this.fs.copy(this.templatePath('scripts/views/layouts/default.jsx'), this.destinationPath('app/static/scripts/views/layouts/default.jsx'))\n\n      mkdir(this.destinationPath('app/static/styles'))\n      this.fs.copy(this.templatePath('styles/app.less'), this.destinationPath('app/static/styles/app.less'))\n\n      mkdir(this.destinationPath('app/static/styles/atoms'))\n      mkdir(this.destinationPath('app/static/styles/molecules'))\n      mkdir(this.destinationPath('app/static/styles/organisms'))\n      mkdir(this.destinationPath('app/static/styles/templates'))\n      mkdir(this.destinationPath('app/static/styles/utils'))\n      this.fs.copy(this.templatePath('styles/utils/base.less'), this.destinationPath('app/static/styles/utils/base.less'))\n      this.fs.copy(this.templatePath('styles/utils/vars.less'), this.destinationPath('app/static/styles/utils/vars.less'))\n\n      mkdir(this.destinationPath('app/views'))\n      this.fs.copy(this.templatePath('views/index.jade'), this.destinationPath('app/views/index.jade'))\n\n      mkdir(this.destinationPath('app/views/includes'))\n      this.template(this.templatePath('views/includes/head.jade'), this.destinationPath('app/views/includes/head.jade'), context)\n      this.fs.copy(this.templatePath('views/includes/scripts.jade'), this.destinationPath('app/views/includes/scripts.jade'))\n\n      mkdir(this.destinationPath('app/views/layouts'))\n      this.fs.copy(this.templatePath('views/layouts/default.jade'), this.destinationPath('app/views/layouts/default.jade'))\n    }\n  },\n\n  install: function() {\n    this.log(chalk.yellow('Install dependencies'))\n    this.npmInstall()\n  },\n\n  end: function() {\n    this.log(chalk.green('Everything fine'))\n  }\n})\n"]}