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AjC,KAAK,SAAS,GAAG,QAAQ,KAAW,CACpC,IAAI,EAAO,KAAK,KAAK,EAAa,KAAK,QAAQ,GAAI,KAAK,SAAS,GAAG,QAAQ,KAAM,KAClF,QAAQ,IAAI,GACZ,KAAK,SAAS,EAAK,EACvB,KACK,CACG,EAAO,KAAK,KAAK,EAAa,GAClC,KAAK,KAAK,EAAK,EACnB,CAER,CACJ,EAEA,IAAK,WACD,KAAK,kBAAkB,OAAQ,GAMnC,IAIJ,OAAO,QAAU","file":"/npm/generator-ngbp-typescript@0.2.5/app/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/generator-ngbp-typescript@0.2.5/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 chalk = require('chalk');\n\n\nvar NgbpTsGenerator = yeoman.generators.Base.extend({\n    init: function () {\n        this.pkg = require('../package.json');\n\n        this.on('end', function () {\n            if (!this.options['skip-install']) {\n                this.installDependencies({\n                    callback: function () {\n                        // Emit a new event - dependencies installed\n                        this.emit('dependenciesInstalled');\n                    }.bind(this)\n                });\n            }\n        });\n\n        // Now we can bind to the dependencies installed event\n        this.on('dependenciesInstalled', function() {\n            //this.spawnCommand('grunt', ['build']);\n            this.log(chalk.green(\n                '\\nYou\\'re good to go!!!!\\n' +\n                'Simply running ') + chalk.cyan.bold(\"grunt watch\") + chalk.green(' will do the following:\\n' +\n                ' - Build everything (concat, create js templates of html, etc) and place it into a \"build\" folder\\n' +\n                ' - Run all your tests\\n' +\n                ' - Watch your files for changes to do the above without any intervention\\n' +\n                ' - Launch express server to host your app at http://localhost:9000/index.html\\n' +\n                ' - Setup LiveReload so you immediately see changes in your browser (you still have to enable LiveReload on your browser)\\n'));\n        });\n    },\n\n    askFor: function () {\n        var done = this.async();\n\n        // have Yeoman greet the user\n        this.log(this.yeoman);\n\n        this.log(chalk.magenta('You\\'re using the ngbp-typescript (AngularBoilerplate) generator, a best-practice boilerplate\\n for any scale Angular project built on a highly modular, folder-by-feature structure.'));\n\n        var prompts = [\n            {\n                name: 'projectName',\n                message: 'What do you want to name your project?\\n e.g. angular.module(\\'exactlyWhatYouTypeBelow\\', [])\\n ?',\n                default: 'myProject'\n            },\n            {\n                name: 'author',\n                message: 'What is the author or company name?\\n Used for copyright\\'s in html, banners in code, and author prop in package.json\\n ?',\n                default: 'Somebody Special'\n            }\n        ];\n\n        this.prompt(prompts, function (props) {\n            this.projectName = props.projectName;\n            this.author = props.author;\n            this.includeAngularResource = props.includeAngularResource;\n\n            done();\n        }.bind(this));\n    },\n\n    config: function() {\n        this.config.set('projectName', this.projectName);\n        this.config.save();\n    },\n\n    _processDirectory: function (source, destination) {\n        var root = this.isPathAbsolute(source) ? source : path.join(this.sourceRoot(), source);\n        var files = this.expandFiles('**', { dot: true, cwd: root });\n\n        for (var i = 0; i < files.length; i++) {\n            var f = files[i];\n            var fExt = f.split('.').pop().toLowerCase();\n            var fIsSource = path.dirname(f).split('/').shift() == 'src';\n            var isExcluded = false;\n            // if (fIsSource) {\n            //     if ((useCoffeescript && fExt == 'js') || (!useCoffeescript && fExt == 'coffee')) {isExcluded = true;}\n            // }\n            var src = path.join(root, f);\n            if (!isExcluded) {\n                if (path.basename(f).indexOf('_') == 0) {\n                    var dest = path.join(destination, path.dirname(f), path.basename(f).replace(/^_/, ''));\n                    console.log(src);\n                    this.template(src, dest);\n                }\n                else {\n                    var dest = path.join(destination, f);\n                    this.copy(src, dest);\n                }\n            }\n        }\n    },\n\n    app: function () {\n        this._processDirectory('root', '');\n//        this.mkdir('app');\n//        this.mkdir('app/templates');\n//\n//        this.copy('_package.json', 'package.json');\n//        this.copy('_bower.json', 'bower.json');\n    }\n\n});\n\nmodule.exports = NgbpTsGenerator;"]}