{"version":3,"sources":["jsdelivr-header.js","/npm/generator-gulp-foundation-emails@0.2.2/app/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAEA,IAAI,OAAS,QAAQ,UACjB,WAAa,QAAQ,oBACrB,MAAQ,QAAQ,SAChB,EAAI,QAAQ,UAEhB,OAAO,QAAU,cAAc,WAC7B,WAAA,CAAY,EAAM,GAChB,MAAM,EAAM,EACd,CACA,YAAA,GACE,KAAK,IAAM,QAAQ,mBACnB,KAAK,QAAU,KAAK,IAAI,OAC1B,CACA,SAAA,GAGE,OAFA,KAAK,IAAI,MAAM,OAAO,QAAQ,QAAR,CAAiB,6DAEhC,KAAK,OAAO,CAAC,CAClB,KAAM,QACN,KAAM,OACN,QAAS,sCACT,QAAS,KAAK,SACb,CACD,KAAM,OACN,KAAM,gBACN,QAAS,wFACT,QAAS,CAAC,CACR,KAAM,cACN,MAAO,eACN,CACD,KAAM,QACN,MAAO,SACN,CACD,KAAM,OACN,MAAO,QACN,CACD,KAAM,OACN,MAAO,QACN,CACD,KAAM,YACN,MAAO,aACN,CACD,KAAM,aACN,MAAO,cACN,CACD,KAAM,eACN,MAAO,eACN,CACD,KAAM,QACN,MAAO,SACN,CACD,KAAM,iBACN,MAAO,YACN,CACD,KAAM,UACN,MAAO,WACN,CACD,KAAM,eACN,MAAO,gBACN,CACD,KAAM,UACN,MAAO,YAET,QAAS,GACR,CACD,KAAM,OACN,KAAM,gBACN,QAAS,gDACT,QAAS,CAAC,CACR,KAAM,aACN,MAAO,QACN,CACD,KAAM,aACN,MAAO,OACN,CACD,KAAM,gBACN,MAAO,QACN,CACD,KAAM,OACN,MAAO,SAET,QAAS,GACR,CACD,KAAM,SAAS,GACb,MAAiC,SAA1B,EAAQ,aACjB,EACA,KAAM,UACN,KAAM,OACN,QAAS,qDACT,SAAS,KACP,MAAM,IACR,KAAK,QAAU,IACV,EACH,KAAM,EAAQ,OAAQ,EACtB,UAAW,EAAE,UAAU,EAA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K,aAAa,gBAClB,KAAK,gBAAgB,iBAEzB,CAEA,OAAA,GACE,KAAK,oBAAoB,CACvB,KAAK,EACL,OAAO,EACP,MAAM,GAEV","file":"/npm/generator-gulp-foundation-emails@0.2.2/app/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/generator-gulp-foundation-emails@0.2.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';\n\nvar mkdirp = require('mkdirp');\nvar generators = require('yeoman-generator');\nvar chalk = require('chalk');\nvar _ = require('lodash');\n\nmodule.exports = class extends generators {\n  constructor(args, opts) {\n    super(args, opts);\n  }\n  initializing() {\n    this.pkg = require('../package.json');\n    this.version = this.pkg.version;\n  }\n  prompting() {\n    this.log(chalk.yellow(require('yosay')('Welcome to Gulp Foundation Emails generator. Good luck!')));\n    \n    return this.prompt([{\n      type: 'input',\n      name: 'name',\n      message: 'What\\'s name of this email template?',\n      default: this.appname\n    }, {\n      type: 'list',\n      name: 'emailTemplate',\n      message: 'Please, choose your template (http://foundation.zurb.com/emails/email-templates.html)',\n      choices: [{\n        name: 'Boilerplate',\n        value: 'boilerplate'\n      }, {\n        name: 'Basic',\n        value: 'basic'\n      }, {\n        name: 'Drip',\n        value: 'drip'\n      }, {\n        name: 'Hero',\n        value: 'hero'\n      }, {\n        name: 'Marketing',\n        value: 'marketing'\n      }, {\n        name: 'Newsletter',\n        value: 'newsletter'\n      }, {\n        name: 'Newsletter 2',\n        value: 'newsletter2'\n      }, {\n        name: 'Order',\n        value: 'order'\n      }, {\n        name: 'Password Reset',\n        value: 'password'\n      }, {\n        name: 'Sidebar',\n        value: 'sidebar'\n      }, {\n        name: 'Sidebar Hero',\n        value: 'sidebar-hero'\n      }, {\n        name: 'Welcome',\n        value: 'welcome'\n      }],\n      default: 0\n    }, {\n      type: 'list',\n      name: 'htmlFramework',\n      message: 'Please, choose your HTML templating language?',\n      choices: [{\n        name: 'Plain HTML',\n        value: 'html'\n      }, {\n        name: 'Pug (Jade)',\n        value: 'pug'\n      }, {\n        name: 'Inky + Panini',\n        value: 'inky'\n      }, {\n        name: 'HEML',\n        value: 'heml'\n      }],\n      default: 0\n    }, {\n      when: function(answers) {\n        return answers.htmlFramework !== 'heml'\n      },\n      type: 'confirm',\n      name: 'sass',\n      message: 'Would you like to use SCSS for css precompilation?',\n      default: false\n    }]).then((answers) => {\n      this.answers = { \n        ...answers,\n        sass: answers.sass || false,\n        kebabName: _.kebabCase(answers.name)\n      }\n    });\n  }\n\n  configuring() {\n    config: () => {\n      this.config.save();\n    }\n  }\n\n  writing() {\n    // readme.md\n    this.fs.copyTpl(\n      this.templatePath('_readme.md'),\n      this.destinationPath('readme.md'),\n      {\n        ...this.answers,\n        version: this.version\n      }\n    );\n\n    // images folder\n    mkdirp('app/images');\n\n    // package.json\n    this.fs.copyTpl(\n      this.templatePath('_package.json'),\n      this.destinationPath('package.json'),\n      {...this.answers}\n    );\n\n    // gulpfile.js\n    if (this.answers.htmlFramework !== 'heml') {\n      this.fs.copyTpl(\n        this.templatePath('_gulpfile.js'),\n        this.destinationPath('gulpfile.js'),\n        {...this.answers}\n      );\n    }\n\n    // templates\n    switch (this.answers.htmlFramework) {\n      case 'pug':\n        this.fs.copy(\n          this.templatePath('email_templates/pug/layouts'),\n          this.destinationPath('app/template/layouts')\n        );\n        this.fs.copy(\n          this.templatePath('email_templates/pug/components'),\n          this.destinationPath('app/template/components')\n        );\n        this.fs.copy(\n          this.templatePath('email_templates/pug/' + this.answers.emailTemplate + '.pug'),\n          this.destinationPath('app/template/index.pug')\n        );\n        break;\n      case 'inky':\n        this.fs.copy(\n          this.templatePath('email_templates/inky/layouts'),\n          this.destinationPath('app/template/layouts')\n        );\n        this.fs.copy(\n          this.templatePath('email_templates/inky/' + this.answers.emailTemplate + '.html'),\n          this.destinationPath('app/template/index.html')\n        );\n        break;\n      case 'heml':\n        this.fs.copy(\n          this.templatePath('email_templates/heml/' + this.answers.emailTemplate + '.heml'),\n          this.destinationPath('app/index.heml')\n        );\n        break;\n      default:\n        this.fs.copy(\n          this.templatePath('email_templates/' + this.answers.emailTemplate + '.html'),\n          this.destinationPath('app/index.html')\n        );\n    }\n\n    // styles\n    if (this.answers.htmlFramework !== 'heml') {\n      if (this.answers.sass) {\n        this.fs.copy(\n          this.templatePath('scss'),\n          this.destinationPath('app/styles/scss')\n        );\n      } else {\n        this.fs.copy(\n          this.templatePath('css/foundation.css'),\n          this.destinationPath('app/styles/css/foundation.css')\n        );\n        this.fs.copy(\n          this.templatePath('css/main.css'),\n          this.destinationPath('app/styles/css/main.css')\n        );\n      }\n    }\n\n    // extras\n    this.fs.copy(\n      this.templatePath('gitignore'),\n      this.destinationPath('.gitignore')\n    );\n    this.fs.copy(\n      this.templatePath('editorconfig'),\n      this.destinationPath('.editorconfig')\n    );\n  }\n\n  install() {\n    this.installDependencies({\n      npm: true,\n      bower: false,\n      yarn: false\n    });\n  }\n};"]}