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,SAAS,YAAY,SAAQ,SAAS,GACrC,EAAG,SAAS,EAAK,IAAK,EAAK,IAC5B,GACD","file":"/npm/generator-go-static@0.2.0/app/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/generator-go-static@0.2.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');\nvar GoStatic = require('../lib/');\nvar moment = require('moment');\nvar chalk = require('chalk');\nvar fs = require('fs');\n\nvar GoStaticGenerator = module.exports = function GoStaticGenerator(args, options, config) {\n\tyeoman.generators.Base.apply(this, arguments);\n\n\tthis.on('end', function () {\n\t\tthis.installDependencies({ skipInstall: options['skip-install'] });\n\t});\n\n\tthis.pkg = JSON.parse(this.readFileAsString(path.join(__dirname, '../package.json')));\n};\n\nutil.inherits(GoStaticGenerator, yeoman.generators.Base);\n\nGoStaticGenerator.prototype.askFor = function askFor() {\n\tvar cb = this.async();\n\n\t// have Yeoman greet the user.\n\tconsole.log(GoStatic.banner);\n\n\tvar gitConfig = GoStatic.getGitConfig();\n\tvar siteAuthor = (gitConfig) ? gitConfig.user.name : '';\n\tvar siteAuthorEmail = (gitConfig) ? gitConfig.user.email : '';\n\n\tvar prompts = [\n\t\t{\n\t\t\tname: 'siteName',\n\t\t\tmessage: 'What is the name of your website?',\n\t\t\tvalidate: function(input) {\n\t\t\t\treturn (input) ? true : false;\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\tname: 'siteDescription',\n\t\t\tmessage: 'Description?',\n\t\t\tvalidate: function(input) {\n\t\t\t\treturn (input) ? true : false;\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\tname: 'siteAuthor',\n\t\t\tmessage: 'Site Author?',\n\t\t\tdefault: siteAuthor\n\t\t},\n\t\t{\n\t\t\tname: 'siteAuthorEmail',\n\t\t\tmessage: 'Site Author Email?',\n\t\t\tdefault: siteAuthorEmail\n\t\t}\n\t];\n\n\tthis.prompt(prompts, function (props) {\n\t\tthis.props = props;\n\n\t\tcb();\n\t}.bind(this));\n};\n\nGoStaticGenerator.prototype.app = function app() {\n\n\tthis.props.outPath = GoStatic.paths.output;\n\tthis.props.srcPath = GoStatic.paths.source;\n\tthis.props.tmpPath = GoStatic.paths.tmp;\n\tthis.props.indentStyle = GoStatic.editor.indentStyle;\n\n\tvar yo = this;\n\n\tGoStatic.sourceFolders().forEach(function(path){\n\t\tyo.directory(path.src, path.dst);\n\t});\n\n\tGoStatic.templates().forEach(function(path){\n\t\tyo.template(path.src, path.dst);\n\t});\n};\n"]}