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AAS,CACP,QAAQ,EACR,eAAgB,KAAK,QAAQ,gBAC7B,WAAY,CACV,qBACA,kCACA,OAAO,KAGf,EAEA,IAAK,CACH,aAAc,WACP,KAAK,QAAQ,iBAChB,QAAQ,IACN,uTAYN,EAEA,WAAY,WACV,KAAK,OAAO,MACd,KAIJ,OAAO,QAAU","file":"/npm/generator-angular-require@3.5.0/app/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/generator-angular-require@3.5.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 util = require('util');\nvar angularUtils = require('../util.js');\nvar yeoman = require('yeoman-generator');\nvar yosay = require('yosay');\nvar camelize = require('underscore.string/camelize');\nvar slugify = require('underscore.string/slugify');\nvar humanize = require('underscore.string/humanize');\n\nvar AngularRequireJSGenerator = yeoman.Base.extend({\n  constructor: function() {\n    yeoman.Base.apply(this, arguments);\n\n    // Backwards compatability\n    // TODO: remove engine in future and use yeoman html-wiring instead\n    this.engine = require('ejs').render\n\n    this.option('app-suffix', {\n      desc: 'Allow a custom suffix to be added to the module name',\n      type: 'String',\n      defaults: 'App'\n    });\n\n    this.option('appPath', {\n      desc: 'path/to/app is now accepted to choose where to write the files',\n      banner: 'path/to/app is now accepted to choose where to write the files',\n      type: 'String',\n      defaults: 'app',\n      required: 'false'\n    });\n\n    this.argument('appname', { type: String, required: false });\n    this.appname = this.appname || path.basename(process.cwd());\n    this.appname = camelize(slugify(humanize(this.appname)));\n    this.appSlugName = slugify(humanize(this.appname))\n\n    this.env.options['app-suffix'] = this.options['app-suffix'] || 'App';\n    this.scriptAppName = this.appname + angularUtils.appName(this);\n\n    this.env.options.appPath = this.options.appPath || 'app';\n    this.config.set('appPath', this.env.options.appPath);\n    this.appPath = this.env.options.appPath;\n\n    this.pkg = require('../package.json');\n    this.sourceRoot(path.join(__dirname, '../templates/common'));\n  },\n\n  prompting: function() {\n    var cb = this.async();\n    var compass;\n\n    if (!this.options['skip-welcome-message']) {\n      this.log(yosay());\n      this.log('Out of the box I include Bootstrap and some AngularJS recommended modules.\\n');\n    }\n\n    if (this.options.minsafe) {\n      this.log.error(\n        'The --minsafe flag has been removed. ngAnnotate is used to handle this during the build.\\n'\n      );\n    }\n\n    this.prompt([{\n      type: 'confirm',\n      name: 'compass',\n      message: 'Would you like to use Sass (with Compass)?',\n      default: true\n    }, {\n      type: 'confirm',\n      name: 'bootstrap',\n      message: 'Would you like to include Bootstrap?',\n      default: true\n    }, {\n      type: 'confirm',\n      name: 'compassBootstrap',\n      message: 'Would you like to use the Sass version of Bootstrap?',\n      default: true,\n      when: function (props) {\n        return props.bootstrap && compass;\n      }\n    }, {\n      type: 'checkbox',\n      name: 'modules',\n      message: 'Which modules would you like to include?',\n      choices: [{\n        value: 'resourceModule',\n        name: 'angular-resource.js',\n        checked: true\n      }, {\n        value: 'cookiesModule',\n        name: 'angular-cookies.js',\n        checked: true\n      }, {\n      value: 'sanitizeModule',\n      name: 'angular-sanitize.js',\n      checked: true\n      }, {\n        value: 'routeModule',\n        name: 'angular-route.js',\n        checked: true\n      }, {\n        value: 'animateModule',\n        name: 'angular-animate.js',\n        checked: true\n      }, {\n        value: 'touchModule',\n        name: 'angular-touch.js',\n        checked: true\n      }, {\n        value: 'ariaModule',\n        name: 'angular-aria.js',\n        checked: false\n      }, {\n        value: 'messagesModule',\n        name: 'angular-messages.js',\n        checked: false\n      }]\n    }], function (props) {\n      this.compass = props.compass;\n      this.bootstrap = props.bootstrap;\n      this.compassBootstrap = props.compassBootstrap;\n\n      var hasMod = function (mod) { return props.modules.indexOf(mod) !== -1; };\n      this.ariaModule = hasMod('ariaModule');\n      this.messagesModule = hasMod('messagesModule');\n      this.resourceModule = hasMod('resourceModule');\n      this.cookiesModule = hasMod('cookiesModule');\n      this.sanitizeModule = hasMod('sanitizeModule');\n      this.routeModule = hasMod('routeModule');\n      this.animateModule = hasMod('animateModule');\n      this.touchModule = hasMod('touchModule');\n\n      var angMods = [];\n\n      if (this.cookiesModule) {\n        angMods.push('ngCookies');\n      }\n\n      if (this.ariaModule) {\n        angMods.push('ngAria');\n      }\n\n      if (this.messagesModule) {\n        angMods.push('ngMessages');\n      }\n\n      if (this.resourceModule) {\n        angMods.push('ngResource');\n      }\n\n      if (this.sanitizeModule) {\n        angMods.push('ngSanitize');\n      }\n\n      if (this.routeModule) {\n        angMods.push('ngRoute');\n        this.env.options.ngRoute = true;\n      }\n\n      if (this.routeModule) {\n        angMods.push('ngAnimate');\n        this.env.options.ngAnimate = true;\n      }\n\n      if (this.routeModule) {\n        angMods.push('ngTouch');\n        this.env.options.ngTouch = true;\n      }\n\n      this.env.options.angularDeps = angMods;\n\n      cb();\n    }.bind(this));\n  },\n\n  configuring: {\n    bowerConfig: function() {\n      this.fs.copyTpl(\n        this.templatePath('root/_bowerrc'),\n        this.destinationPath('.bowerrc')\n      );\n\n      this.fs.copyTpl(\n        this.templatePath('root/_bower.json'),\n        this.destinationPath('bower.json'),\n        {\n          appSlugName: this.appSlugName,\n          animateModule: this.animateModule,\n          ariaModule: this.ariaModule,\n          cookiesModule: this.cookiesModule,\n          messagesModule: this.messagesModule,\n          resourceModule: this.resourceModule,\n          routeModule: this.routeModule,\n          sanitizeModule: this.sanitizeModule,\n          touchModule: this.touchModule,\n          bootstrap: this.bootstrap,\n          compassBootstrap: this.compassBootstrap,\n          appPath: this.appPath,\n          scriptAppName: this.scriptAppName\n        }\n      );\n    },\n\n    packageJson: function() {\n      this.fs.copyTpl(\n        this.templatePath('root/_package.json'),\n        this.destinationPath('package.json'),\n        {\n          appSlugName: this.appSlugName,\n          compass: this.compass\n        }\n      );\n    },\n\n    gruntfile: function() {\n      this.template('root/_Gruntfile.js', 'Gruntfile.js');\n    },\n\n    editorConfig: function() {\n      this.copy('../../templates/common/root/.editorconfig', '.editorconfig');\n    },\n\n    jscsrc: function() {\n      this.copy('../../templates/common/root/.jscsrc', '.jscsrc');\n    },\n\n    git: function() {\n      this.copy('../../templates/common/root/.gitattributes', '.gitattributes');\n      this.copy('../../templates/common/root/gitignore', '.gitignore');\n    },\n\n    jshint: function() {\n      this.copy('../../templates/common/root/.jshintrc', '.jshintrc');\n    },\n\n    readme: function() {\n      this.fs.copyTpl(\n        this.templatePath('root/README.md'),\n        this.destinationPath('README.md'),\n        {\n          appSlugName: this.appSlugName,\n          pkg: this.pkg\n        }\n      );\n    },\n\n    testDirectory: function() {\n      this.directory('test');\n    },\n  },\n\n  writing: {\n    bootstrapFiles: function() {\n      var cssFile = 'styles/main.' + (this.compass ? 's' : '') + 'css';\n      this.copy(\n        path.join('app', cssFile),\n        path.join(this.appPath, cssFile)\n      );\n    },\n\n    indexHtml: function() {\n      this.ngRoute = this.env.options.ngRoute;\n      this.indexFile = this.engine(this.read('app/index.html'), this);\n      this.indexFile = this.indexFile.replace(/&apos;/g, \"'\");\n      this.write(path.join(this.appPath, 'index.html'), this.indexFile);\n    },\n\n    requireJsAppConfig: function() {\n      this.template('../../templates/common/scripts/main.js', path.join(this.appPath, 'scripts/main.js'));\n    },\n\n    requireJsTestConfig: function() {\n      this.template('../../templates/common/scripts/test-main.js', 'test/test-main.js');\n    },\n\n    webFiles: function() {\n      this.sourceRoot(path.join(__dirname, '../templates/common'));\n      var appPath = this.options.appPath;\n      var copy = function (dest) {\n        this.copy(path.join('app', dest), path.join(this.appPath, dest));\n      }.bind(this);\n\n      copy('404.html');\n      copy('favicon.ico');\n      copy('robots.txt');\n      copy('views/main.html');\n      this.directory(path.join('app', 'images'), path.join(this.appPath, 'images'));\n    },\n\n    appFile: function() {\n      this.angularModules = this.env.options.angularDeps;\n      this.ngRoute = this.env.options.ngRoute;\n      this.template('../../templates/javascript/app.js', path.join(this.appPath, 'scripts/app.js'));\n    },\n  },\n\n  install: function() {\n    var enabledComponents = [];\n\n    this.installDependencies({ skipInstall: this.options['skip-install'] });\n\n    // Invoke the creation of the default controller\n    this.composeWith('controller', { arguments: ['main'] }, {\n        local: require.resolve('../controller/index.js')\n    });\n\n    // If ngRoute is specified as an install option, then create the \"About\" route\n    if (this.env.options.ngRoute) {\n      this.composeWith('route', { arguments: ['about'] }, {\n          local: require.resolve('../route/index.js')\n      });\n    }\n\n    if (this.animateModule) { enabledComponents.push('angular-animate/angular-animate.js'); }\n    if (this.ariaModule) { enabledComponents.push('angular-aria/angular-aria.js'); }\n    if (this.cookiesModule) { enabledComponents.push('angular-cookies/angular-cookies.js'); }\n    if (this.messagesModule) { enabledComponents.push('angular-messages/angular-messages.js'); }\n    if (this.resourceModule) { enabledComponents.push('angular-resource/angular-resource.js'); }\n    if (this.routeModule) { enabledComponents.push('angular-route/angular-route.js'); }\n    if (this.sanitizeModule) { enabledComponents.push('angular-sanitize/angular-sanitize.js'); }\n    if (this.touchModule) { enabledComponents.push('angular-touch/angular-touch.js'); }\n\n    this.composeWith('karma-require', {\n      options: {\n        travis: true,\n        'skip-install': this.options['skip-install'],\n        components: [\n          'angular/angular.js',\n          'angular-mocks/angular-mocks.js'\n        ].concat(enabledComponents)\n      }\n    });\n  },\n\n  end: {\n    showGuidance: function() {\n      if (!this.options['skip-message']) {\n        console.log(\n          '\\nNow that everything is set up, you\\'ll need to execute a build. ' +\n          '\\nThis is done by running' +\n          '\\n  grunt build' +\n          '\\n' +\n          '\\nWork with your files by using' +\n          '\\n  grunt serve' +\n          '\\n' +\n          '\\nThis sets a watch on your files and also opens your project in ' +\n          '\\na web browser using live-reload, so that any changes you make are ' +\n          '\\ninstantly visible.'\n        );\n      }\n    },\n\n    saveConfig: function() {\n      this.config.save();\n    }\n  }\n});\n\nmodule.exports = AngularRequireJSGenerator;\n"]}