/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/generator-typo3@0.0.6/app/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
"use strict";var util=require("util"),path=require("path"),yeoman=require("yeoman-generator"),chalk=require("chalk"),Typo3Generator=module.exports=function(e,t,s){yeoman.generators.Base.apply(this,arguments),this.options=t,this.pkg=JSON.parse(this.readFileAsString(path.join(__dirname,"../package.json"))),this.on("end",(function(){this.options["skip-install"]||this.installDependencies({skipInstall:this.options["skip-install"],callback:function(){"gruntRelease"===this.gruntTask?this.spawnCommand("grunt",["build"]).on("exit",(function(){console.log("\n\n\t\tA new TYPO3 Project is served by Yeoman\n\n")})):"gruntBuild"===this.gruntTask?this.spawnCommand("grunt",["install"]).on("exit",function(){"Yes"===this.supportVagrant?this.spawnCommand("vagrant",["up"]).on("exit",function(){console.log("\n\n\t\tA new TYPO3 Project is served by Yeoman\n\n"),console.log("\thttp://"+this.websiteName+".localhost:8000/typo3/install/"),console.log("\tPassword: 123456\n"),console.log("\thttp://"+this.websiteName+".localhost:8000/typo3/"),console.log("\tUsername: admin"),console.log("\tPassword: 12345678\n"),console.log("\tMySQL Server"),console.log("\tUsername: root"),console.log("\tPassword: 123456"),console.log("\tPort: 33060")}.bind(this)):(console.log("\n\n\t\tA new TYPO3 Project is served by Yeoman\n\n"),console.log("\thttp://"+this.websiteName+".localhost/typo3/install/"),console.log("\tPassword: 123456\n"),console.log("\thttp://"+this.websiteName+".localhost/typo3/"),console.log("\tUsername: admin"),console.log("\tPassword: 12345678\n\n"),console.log("Example Apache Configuration:\n"),console.log('<VirtualHost *:80>\n\n\tDocumentRoot "/path/to/'+this.websiteName+'/typo3"\n\tServerName '+this.websiteName+".local\n\n\t<Directory /path/to/"+this.websiteName+'/typo3>\n\t\tDirectoryIndex index.php\n\t\tOptions -Indexes +FollowSymLinks\n\t\tAllowOverride FileInfo Indexes\n\t\tOrder allow,deny\n\t\tallow from all\n\t\t# Only by local development\n\t\tRequire all granted\n\t</Directory>\n\n\tErrorLog "logs/'+this.websiteName+'-error_log"\n\tCustomLog "logs/'+this.websiteName+'-access_log" common\n</VirtualHost>\n'))}.bind(this)):"gruntNothing"===this.gruntTask&&console.log("\n\n\t\tA new TYPO3 Project is served by Yeoman\n\n")}.bind(this)})}))};util.inherits(Typo3Generator,yeoman.generators.Base),Typo3Generator.prototype.askFor=function(){var e=this.async();this.log(this.yeoman),this.log(chalk.magenta("Welcome to the TYPO3 Generator!"));this.prompt([{type:"input",name:"websiteName",message:"What do you want to call your TYPO3 Website?",default:"My Website"},{type:"input",name:"websiteDirectory",message:"What is main Project Directory called?",default:"Website"},{type:"input",name:"websiteDescription",message:"What is your description for it?"},{type:"input",name:"websiteProject",message:"What name should have your first project directory?",default:"Project"},{type:"input",name:"bowerDirectory",message:"Enter your Bower Resource Directory",default:"bower_components"},{type:"list",name:"AdaptiveImages - http://adaptive-images.com/",message:"Should Adaptive Images for Responsive Images be install?",choices:[{name:"Yes install it.",value:"Yes"},{name:"Doen't install it!",value:"No"}]},{type:"checkbox",name:"cssLang",message:"Which CSS extension language should be GruntJS supported?",choices:[{name:"LESS - http://lesscss.org/",value:"less",checked:!0},{name:"SASS - http://sass-lang.com/",value:"sass",checked:!1},{name:"Compass - http://compass-style.org/",value:"compass",checked:!1}]},{type:"list",name:"jQueryVersion",message:"Which jQuery Version should it be?",choices:[{name:"Version 1.11.x",value:"One"},{name:"Version 2.1.x",value:"Two"}]},{type:"checkbox",name:"features",message:"What Software would you like to have for your new project?",choices:[{name:"Buttons - http://alexwolfe.github.io/Buttons/",value:"includeButtons",checked:!1},{name:"BrowserDetection.js - https://github.com/Milanowicz/BrowserDetection.js",value:"includeBrowserDetection",checked:!0},{name:"CreateJS Framework - http://www.createjs.com/",value:"includeCreate",checked:!1},{name:"Font Awesome - http://fortawesome.github.io/Font-Awesome/",value:"includeFontAwesome",checked:!1},{name:"FitText.js - https://github.com/Milanowicz/FitText.js",value:"includeFitText",checked:!0},{name:"Include Project description, example libraries, files and pictures",value:"includeExample",checked:!1},{name:"Internet Explorer Polyfill libraries",value:"includePolyfill",checked:!0},{name:"jQuery UserInterface Framework - http://jqueryui.com/",value:"includeJqueryUi",checked:!1},{name:"Masonry and Imagesloaded Plug-In - http://masonry.desandro.com/",value:"includeMasonry",checked:!1},{name:"Modernizr - http://modernizr.com/",value:"includeModernizr",checked:!0}]},{type:"input",name:"DbUsername",message:"Your Username from your local database?",default:"root"},{type:"input",name:"DbPasswort",message:"What is Passwort for your local database?",default:"123456"},{type:"input",name:"DbHostname",message:"What is Passwort for your local database?",default:"127.0.0.1"},{type:"list",name:"DbPath",message:"Where is your MySQL bin path?",choices:[{name:"Mac OS X MySQL Binary Path: /Application/xampp/mysql/bin/",value:"/Application/xampp/mysql/bin/"},{name:"Linux MySQL Binary Path: /usr/local/bin/",value:"/usr/local/bin/"},{name:"Windows MySQL Binary Path: C:/xampp/mysql/bin/",value:"C:/xampp/mysql/bin/"}]},{type:"list",name:"gruntTask",message:"What could or should do GruntJS for you do?",choices:[{name:"Download TYPO3, create Database and build CSS, JS files",value:"gruntBuild"},{name:"Build CSS, JS and Documentation files",value:"gruntRelease"},{name:"Do nothing",value:"gruntNothing"}]},{type:"list",name:"vagrantMachine",message:"Would you like to have a Vagrant VM machine for your project?",choices:[{name:"I take it :)",value:"Yes"},{name:"Nope",value:"No"}]}],function(t){var s=t.features,i=t.cssLang,o=new Date;function a(e){return-1!==s.indexOf(e)}function r(e){return-1!==i.indexOf(e)}this.websiteName=t.websiteName,this.websiteDirectory=this._.slugify(t.websiteDirectory),this.websiteDescription=t.websiteDescription,this.websiteProject=this._.slugify(t.websiteProject),"bower_components"===t.bowerDirectory?this.bowerDirectory="bower_components":this.bowerDirectory=this._.slugify(t.bowerDirectory),this.DbUsername=t.DbUsername,this.DbPasswort=t.DbPasswort,this.DbHostname=t.DbHostname,this.DbPath=t.DbPath,this.AdaptiveImages=t.AdaptiveImages,this.jQueryVersion=t.jQueryVersion,this.gruntTask=t.gruntTask,this.includeButtons=a("includeButtons"),this.includeBrowserDetection=a("includeBrowserDetection"),this.includeCreate=a("includeCreate"),this.includeExample=a("includeExample"),this.includeFontAwesome=a("includeFontAwesome"),this.includeFitText=a("includeFitText"),this.includeJqueryUi=a("includeJqueryUi"),this.includeMasonry=a("includeMasonry"),this.includeModernizr=a("includeModernizr"),this.includePolyfill=a("includePolyfill"),this.supportLess=r("less"),this.supportSass=r("sass"),this.supportCompass=r("compass"),this.supportVagrant=t.vagrantMachine,this.year=o.getFullYear(),e()}.bind(this))},Typo3Generator.prototype.app=function(){this.mkdir("db"),this.copy("db/SyncDb.sh","db/SyncDb.sh"),this.copy("db/_ReadTable","db/"+this.websiteDirectory+"_ReadTable"),this.copy("db/_Data.sql","db/"+this.websiteDirectory+"_Data.sql"),this.copy("db/_ReadOnly.sql","db/"+this.websiteDirectory+"_ReadOnly.sql"),this.copy("db/_Structure.sql","db/"+this.websiteDirectory+"_Structure.sql"),this.copy("denyhtaccess","db/.htaccess"),"yes"===this.supportVagrant&&(this.template("bootstrap.sh","bootstrap.sh"),this.template("Vagrantfile","Vagrantfile")),this.mkdir("typo3"),this.template("_bower.json","bower.json"),this.template("_bowerrc",".bowerrc"),this.template("_composer.json","typo3/composer.json"),this.template("_package.json","package.json"),this.template("gitignore",".gitignore"),this.template("Gruntfile.js","Gruntfile.js"),this.template("local.sh","local.sh"),this.template("README.md","README.md"),this.copy("composer.phar","typo3/composer.phar"),this.copy("editorconfig",".editorconfig"),this.copy("local.json","local.json"),this.copy("robots.txt","typo3/robots.txt"),this.template("htaccess","typo3/_.htaccess"),this.template("htaccess","typo3/.htaccess"),"Yes"===this.AdaptiveImages&&(this.copy("AdaptiveImages.md","AdaptiveImages.md"),this.copy("adaptive-images.php","typo3/adaptive-images.php"),this.copy("ai-cookie.php","typo3/ai-cookie.php")),this.mkdir("typo3/fileadmin"),this.mkdir("typo3/fileadmin/"+this.websiteProject),this.mkdir("typo3/fileadmin/_temp_"),this.mkdir("typo3/fileadmin/user_upload"),this.mkdir("typo3/fileadmin/user_upload/_temp_"),this.mkdir("typo3/fileadmin/user_upload/_temp_/importexport"),this.copy("fileadmin/README.md","typo3/fileadmin/README.md"),this.copy("dirindex.html","typo3/fileadmin/_temp_/index.html"),this.copy("denyhtaccess","typo3/fileadmin/_temp_/.htaccess"),this.copy("dirindex.html","typo3/fileadmin/user_upload/index.html"),this.copy("dirindex.html","typo3/fileadmin/user_upload/_temp_/index.html"),this.copy("denyhtaccess","typo3/fileadmin/user_upload/_temp_/importexport/.htaccess"),this.copy("dirindex.html","typo3/fileadmin/user_upload/_temp_/importexport/index.html"),this.mkdir("typo3/system"),this.mkdir("typo3/system/"+this.websiteProject),this.mkdir("typo3/system/"+this.websiteProject+"/Resources/Private/JavaScript"),this.mkdir("typo3/system/"+this.websiteProject+"/Resources/Public"),this.mkdir("typo3/system/"+this.websiteProject+"/Resources/Public/CSS"),this.mkdir("typo3/system/"+this.websiteProject+"/Resources/Public/Images"),this.mkdir("typo3/system/"+this.websiteProject+"/Resources/Public/JS"),this.copy("system/README.md","typo3/system/README.md"),this.directory("system/Project","typo3/system/"+this.websiteProject),this.template("LocalDevelopment.ts","typo3/system/"+this.websiteProject+"/Configuration/TypoScript/Setup/LocalDevelopment.ts"),this.template("system/Project/Configuration/TypoScript/Constants.ts","typo3/system/"+this.websiteProject+"/Configuration/TypoScript/Constants.ts"),this.template("system/Project/Configuration/TypoScript/Setup.ts","typo3/system/"+this.websiteProject+"/Configuration/TypoScript/Setup.ts"),this.template("system/Project/Configuration/TypoScript/Constants/Config.ts","typo3/system/"+this.websiteProject+"/Configuration/TypoScript/Constants/Config.ts"),this.template("system/Project/Configuration/TypoScript/Constants/Page.ts","typo3/system/"+this.websiteProject+"/Configuration/TypoScript/Constants/Page.ts"),this.template("system/Scripts/Main.js","typo3/system/"+this.websiteProject+"/Resources/Private/JavaScript/"+this.websiteProject+".js"),this.supportLess&&(this.mkdir("typo3/system/"+this.websiteProject+"/Resources/Private/Less"),this.template("system/Styles/PageStyle.less","typo3/system/"+this.websiteProject+"/Resources/Private/Less/PageStyle.less"),this.template("system/Styles/MainStyle.less","typo3/system/"+this.websiteProject+"/Resources/Private/Less/MainStyle.less")),this.supportSass&&(this.mkdir("typo3/system/"+this.websiteProject+"/Resources/Private/Sass"),this.template("system/Styles/PageStyle.scss","typo3/system/"+this.websiteProject+"/Resources/Private/Sass/PageStyle.scss"),this.template("system/Styles/MainStyle.scss","typo3/system/"+this.websiteProject+"/Resources/Private/Sass/MainStyle.scss")),this.copy("denyhtaccess","typo3/system/"+this.websiteProject+"/Configuration/.htaccess"),this.copy("denyhtaccess","typo3/system/"+this.websiteProject+"/Resources/Private/.htaccess"),this.mkdir("typo3/system/_shared"),this.directory("system/_shared","typo3/system/_shared"),this.template("system/_shared/Configuration/TypoScript/Setup/Page.ts","typo3/system/_shared/Configuration/TypoScript/Setup/Page.ts"),this.template("_LocalDevelopment.ts","typo3/system/_shared/Configuration/TypoScript/Setup/LocalDevelopment.ts"),this.mkdir("typo3/system/_shared/Resources/Public"),this.mkdir("typo3/system/_shared/Resources/Public/CSS"),this.mkdir("typo3/system/_shared/Resources/Public/Favicon"),this.mkdir("typo3/system/_shared/Resources/Public/Flash"),this.mkdir("typo3/system/_shared/Resources/Public/Fonts"),this.mkdir("typo3/system/_shared/Resources/Public/Images"),this.mkdir("typo3/system/_shared/Resources/Public/JS"),this.mkdir("typo3/system/_shared/Resources/Private/JavaScript"),this.copy("jshintrc","typo3/system/_shared/Resources/Private/JavaScript/.jshintrc"),this.copy("system/Scripts/_Typo3.js","typo3/system/_shared/Resources/Private/JavaScript/Typo3.js"),this.copy("system/Scripts/_Main.js","typo3/system/_shared/Resources/Private/JavaScript/Main.js"),this.includeExample&&this.copy("system/Scripts/_MainTools.js","typo3/system/_shared/Resources/Private/JavaScript/MainTools.js"),this.supportLess&&(this.mkdir("typo3/system/_shared/Resources/Private/Less"),this.template("system/Styles/_PageStyle.less","typo3/system/_shared/Resources/Private/Less/PageStyle.less")),this.supportSass&&(this.mkdir("typo3/system/_shared/Resources/Private/Sass"),this.template("system/Styles/_PageStyle.scss","typo3/system/_shared/Resources/Private/Sass/PageStyle.scss")),this.copy("denyhtaccess","typo3/system/_shared/Configuration/.htaccess"),this.copy("denyhtaccess","typo3/system/_shared/Resources/Private/.htaccess"),this.mkdir("typo3/typo3conf"),this.directory("typo3conf","typo3/typo3conf"),this.template("typo3conf/LocalConfiguration.php","typo3/typo3conf/LocalConfiguration.php"),this.template("LocalDevelopment.php","typo3/typo3conf/LocalDevelopment.php"),this.mkdir("typo3/typo3temp"),this.mkdir("typo3/typo3temp/cs"),this.mkdir("typo3/typo3temp/compressor"),this.mkdir("typo3/typo3temp/GB"),this.mkdir("typo3/typo3temp/llxml"),this.mkdir("typo3/typo3temp/pics"),this.mkdir("typo3/typo3temp/sprites"),this.mkdir("typo3/typo3temp/temp"),"Yes"===this.AdaptiveImages&&this.mkdir("typo3/typo3temp/ai-cache"),this.copy("dirindex.html","typo3/typo3temp/index.html"),this.mkdir("typo3/uploads"),this.mkdir("typo3/uploads/media"),this.mkdir("typo3/uploads/pics"),this.mkdir("typo3/uploads/tf"),this.copy("dirindex.html","typo3/uploads/index.html"),this.copy("dirindex.html","typo3/uploads/media/index.html"),this.copy("dirindex.html","typo3/uploads/pics/index.html"),this.copy("dirindex.html","typo3/uploads/tf/index.html")};
//# sourceMappingURL=/sm/64c86e32445092d89609145aa8887605119a8bcdd4890faac16c3ba7c5bb26f4.map