{"version":3,"sources":["jsdelivr-header.js","/npm/generator-brocode@1.0.0/app/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAEA,IAAI,GAAK,QAAQ,MACb,KAAO,QAAQ,QACf,OAAS,QAAQ,oBACjB,MAAQ,QAAQ,SAChB,MAAQ,QAAQ,SAChB,QAAU,QAAQ,WAEtB,OAAO,QAAU,OAAO,WAAW,KAAK,OAAO,CAE3C,aAAc,WACV,KAAK,IAAM,QAAQ,kBACvB,EAEA,QAAS,CACL,SAAU,WACN,KAAK,SAAS,cAClB,EACA,YAAa,WACT,KAAK,SAAS,gBAAiB,eACnC,EACA,IAAK,WACD,KAAK,KAAK,YAAa,cACvB,KAAK,KAAK,gBAAiB,iBAC/B,EACA,OAAQ,WACJ,KAAK,KAAK,WAAY,YAC1B,EACA,aAAc,WACV,KAAK,KAAK,eAAgB,gBAC9B,EACA,QAAS,WACL,KAAK,KAAK,cAAe,kBAC7B,EACA,eAAgB,WACZ,KAAK,KAAK,WAAY,sBAC1B,EACA,WAAY,WACR,KAAK,UAAY,KAAK,IAAI,KAAK,cAC/B,KAAK,UAAY,KAAK,OAAO,KAAK,UAAW,MAE7C,KAAK,UAAY,KAAK,YAAY,CAC9B,KAAM,KAAK,UACX,SAAU,KACV,cAAe,kBACf,eAAgB,CAAC,qBAGrB,KAAK,MAAM,iBAAkB,KAAK,UACtC,EACA,IAAK,WACD,KAAK,MAAM,OACX,KAAK,MAAM,eACX,KAAK,MAAM,cACX,KAAK,MAAM,cACX,KAAK,KAAK,UAAW,sBACzB,GAGJ,QAAS,WACL,IAAI,EACA,mBACA,MAAM,OAAO,KAAK,eAClB,qCACA,MAAM,OAAO,KAAK,cAClB,IAEJ,KAAK,IAAI,EACb","file":"/npm/generator-brocode@1.0.0/app/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/generator-brocode@1.0.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';\n\nvar fs = require('fs');\nvar path = require('path');\nvar yeoman = require('yeoman-generator');\nvar yosay = require('yosay');\nvar chalk = require('chalk');\nvar wiredep = require('wiredep');\n\nmodule.exports = yeoman.generators.Base.extend({\n    // Your initialization methods (checking current project state, getting configs, etc)\n    initializing: function () {\n        this.pkg = require('../package.json');\n    },\n    // Where you write the generator specific files (routes, controllers, etc)\n    writing: {\n        gulpfile: function () {\n            this.template('gulpfile.js');\n        },\n        packageJSON: function () {\n            this.template('_package.json', 'package.json');\n        },\n        git: function () {\n            this.copy('gitignore', '.gitignore');\n            this.copy('gitattributes', '.gitattributes');\n        },\n        jshint: function () {\n            this.copy('jshintrc', '.jshintrc');\n        },\n        editorConfig: function () {\n            this.copy('editorconfig', '.editorconfig');\n        },\n        favicon: function() {\n            this.copy('favicon.ico', 'app/favicon.ico');\n        },  \n        mainStylesheet: function () {\n            this.copy('main.css', 'app/styles/main.css');\n        },\n        writeIndex: function () {\n            this.indexFile = this.src.read('index.html');\n            this.indexFile = this.engine(this.indexFile, this);\n\n            this.indexFile = this.appendFiles({\n                html: this.indexFile,\n                fileType: 'js',\n                optimizedPath: 'scripts/main.js',\n                sourceFileList: ['scripts/main.js']\n            });\n\n            this.write('app/index.html', this.indexFile);\n        },\n        app: function () {\n            this.mkdir('app');\n            this.mkdir('app/scripts');\n            this.mkdir('app/styles');\n            this.mkdir('app/images');\n            this.copy('main.js', 'app/scripts/main.js');\n        }\n    },\n    // Where installation are run (npm, bower)\n    install: function () {\n        var howToInstall =\n            '\\nAfter running ' +\n            chalk.yellow.bold('npm install') +\n            ', preview your project by running ' +\n            chalk.yellow.bold('gulp serve') +\n            '.';\n\n        this.log(howToInstall);\n    }\n});"]}