[
  {
    "path": ".dockerignore",
    "content": ".git\n.github\n.vscode\ncoverage\n\n# OS generated files #\n.DS_Store\nehthumbs.db\nIcon?\nThumbs.db\n\n# Node Files #\nnode_modules\nnpm-debug.log\nnpm-debug.log.*\n\n# Typing #\nsrc/typings/tsd\ntypings\ntsd_typings\n\n# Dist #\ndist\n.awcache\n.webpack.json\ncompiled\ndll\n\n# IDE #\n.idea\n*.swp\n\n\n# Angular #\n*.ngfactory.ts\n*.css.shim.ts\n*.ngsummary.json\n*.shim.ngstyle.ts\n\n"
  },
  {
    "path": ".editorconfig",
    "content": "# tipe.io\n# http://editorconfig.org\n\nroot = true\n\n[*]\ncharset = utf-8\nindent_style = space\nindent_size = 2\nend_of_line = lf\ninsert_final_newline = true\ntrim_trailing_whitespace = true\n\n[*.md]\ninsert_final_newline = false\ntrim_trailing_whitespace = false\n"
  },
  {
    "path": ".gitattributes",
    "content": "yarn.lock -diff\n"
  },
  {
    "path": ".github/CONTRIBUTING.md",
    "content": "## Read and contribute to the Wiki\n\nMake sure you read the [Wiki](https://github.com/gdi2290/angular-starter/wiki).\n\n## Submitting Pull Requests\n\nIf you're changing the structure of the repository please create an issue first.\n\n## Submitting bug reports\n\nMake sure you are on latest changes and that you ran this command `npm run clean:install` after updating your local repository. If you can, please provide more information about your environment such as browser, operating system, node version, and npm version.\n"
  },
  {
    "path": ".github/FUNDING.yml",
    "content": "# These are supported funding model platforms\n\ngithub: [PatrickJS] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]\npatreon: # Replace with a single Patreon username\nopen_collective: # Replace with a single Open Collective username\nko_fi: # Replace with a single Ko-fi username\ntidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel\ncommunity_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry\nliberapay: # Replace with a single Liberapay username\nissuehunt: # Replace with a single IssueHunt username\notechie: # Replace with a single Otechie username\ncustom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE.md",
    "content": "* **I'm submitting a ...**\n[ ] bug report\n[ ] feature request\n[ ] question about the decisions made in the repository\n\n* **Do you want to request a *feature* or report a *bug*?**\n\n\n\n* **What is the current behavior?**\n\n\n\n* **If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem** via\nhttps://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5).\n\n\n\n* **What is the expected behavior?**\n\n\n\n* **What is the motivation / use case for changing the behavior?**\n\n\n\n* **Please tell us about your environment:**\n\n- Angular version: 4.x.x\n- Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]\n\n\n\n* **Other information** (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)\n"
  },
  {
    "path": ".github/PULL_REQUEST_TEMPLATE.md",
    "content": "* **What kind of change does this PR introduce?** (Bug fix, feature, docs update, ...)\n\n\n\n* **What is the current behavior?** (You can also link to an open issue here)\n\n\n\n* **What is the new behavior (if this is a feature change)?**\n\n\n\n* **Other information**:\n"
  },
  {
    "path": ".gitignore",
    "content": "# tipe.io\n\n# Logs\nlogs\n*.log\n\n# Runtime data\npids\n*.pid\n*.seed\n\n# Directory for instrumented libs generated by jscoverage/JSCover\nlib-cov\n\n# Coverage directory used by tools like istanbul\ncoverage\n\n# SonarQube sonar-scanner temp directory\n.scannerwork\n\n# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)\n.grunt\n\n# Compiled binary addons (http://nodejs.org/api/addons.html)\nbuild/Release\n\n# Users Environment Variables\n.lock-wscript\n\n# OS generated files #\n.DS_Store\nehthumbs.db\nIcon?\nThumbs.db\n\n# Node Files #\n/node_modules/\n/bower_components/\nnpm-debug.log\n/npm-debug.log.*\n\n# Coverage #\n/coverage/\n\n# Generic Unit Sonar Reports #\n/reports/\n\n# Typing #\n/src/typings/tsd/\n/typings/\n/tsd_typings/\n\n# Dist #\n/dist\n/public/__build__/\n/src/*/__build__/\n/__build__/**\n/public/dist/\n/src/*/dist/\n/dist/**\n/.awcache\n.webpack.json\n/compiled/\ndll/\ntemp\ntmp\nwebpack-cache\n\n# Doc #\n/doc/\n/documentation/\n\n# IDE #\n.idea/\n*.swp\n\n\n# Angular #\n*.ngfactory.ts\n*.css.shim.ts\n*.ngsummary.json\n*.shim.ngstyle.ts\n"
  },
  {
    "path": ".nvmrc",
    "content": "lts/*\n"
  },
  {
    "path": ".travis.yml",
    "content": "sudo: false\ndist: trusty\nlanguage: node_js\n\ncache:\n  directories:\n    - node_modules\n\naddons:\n  chrome: stable\n\nnode_js:\n  - \"6\"\n  - \"7\"\n  - \"8\"\n\nmatrix:\n  fast_finish: true\n\nbefore_install:\n  - npm install npm@5 -g\n  - npm cache verify\n  - npm prune\n  - npm update\n\ninstall:\n  - npm install\n\nscript:\n  - npm run ci:travis\n"
  },
  {
    "path": ".vscode/launch.json",
    "content": "{\n    \"version\": \"0.2.0\",\n    \"configurations\": [\n        {\n            \"name\": \"Launch Chrome against localhost, with sourcemaps\",\n            \"type\": \"chrome\",\n            \"request\": \"launch\",\n            \"url\": \"http://localhost:3000/*\",\n            \"runtimeArgs\": [\n              \"--disable-web-security\",\n              \"--user-data-dir\",\n              \"--remote-debugging-port=9222\"\n            ],\n            \"sourceMaps\": true,\n            \"webRoot\": \"${workspaceRoot}\"\n        },\n        {\n            \"name\": \"Attach to Chrome, with sourcemaps\",\n            \"type\": \"chrome\",\n            \"request\": \"attach\",\n            \"url\": \"http://localhost:3000/*\",\n            \"port\": 9222,\n            \"sourceMaps\": true,\n            \"webRoot\": \"${workspaceRoot}\"\n        }\n    ]\n}\n"
  },
  {
    "path": ".vscode/settings.json",
    "content": "{\n  \"typescript.tsdk\": \"node_modules/typescript/lib/\"\n}\n"
  },
  {
    "path": "Dockerfile",
    "content": "# Usage:\n#\n#    Build image:\n#    docker build -t angular-starter .\n#\n#    Run image (on localhost:8080):\n#    docker run --name angular-starter -p 8080:80 angular-starter\n#\n#    Run image as virtual host (read more: https://github.com/jwilder/nginx-proxy):\n#    docker run -e VIRTUAL_HOST=angular-starter.your-domain.com --name angular-starter angular-starter\n\n# Stage 1, based on Node.js, to build and compile Angular\n\nFROM node:8.9.4-alpine as builder\n\nCOPY package.json ./\n\n## Storing node modules on a separate layer will prevent unnecessary npm installs at each build\nRUN npm i && mkdir /ng-app && mv ./node_modules ./ng-app\n\nWORKDIR /ng-app\n\nCOPY . .\n\nRUN npm run build:aot:prod\n\n# Stage 2, based on Nginx, to have only the compiled app, ready for production with Nginx\n\nFROM nginx:1.13.9-alpine\n\nCOPY ./config/nginx-custom.conf /etc/nginx/conf.d/default.conf\n                                  \n## Remove default nginx website\nRUN rm -rf /usr/share/nginx/html/*\n\n## From ‘builder’ stage copy over the artifacts in dist folder to default nginx public folder\nCOPY --from=builder /ng-app/dist /usr/share/nginx/html\n\nCMD [\"nginx\", \"-g\", \"daemon off;\"]\n"
  },
  {
    "path": "Dockerfile-dev",
    "content": "# Usage:\n#\n#    Build image:\n#    docker build -t angular-starter .\n#\n#    Run image (on localhost:8080):\n#    docker run --name angular-starter -p 8080:80 angular-starter\n#\n#    Run image as virtual host (read more: https://github.com/jwilder/nginx-proxy):\n#    docker run -e VIRTUAL_HOST=angular-starter.your-domain.com --name angular-starter angular-starter\n\nFROM node:8.9.4-alpine as builder\n\nCOPY package.json ./\n\n## Storing node modules on a separate layer will prevent unnecessary npm installs at each build\nRUN npm i && mkdir /ng-app && mv ./node_modules ./ng-app\n\nWORKDIR /ng-app\n\nCOPY . .\n"
  },
  {
    "path": "LICENSE",
    "content": "The MIT License (MIT)\n\nCopyright (c) 2015-2018 PatrickJS, Tipe Inc\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "README.md",
    "content": "# Please use the Angular CLI if you want an angular app\n\n[![taylor swift](https://img.shields.io/badge/secured%20by-taylor%20swift-brightgreen.svg)](https://twitter.com/SwiftOnSecurity)\n[![volkswagen status](https://auchenberg.github.io/volkswagen/volkswargen_ci.svg?v=1)](https://github.com/auchenberg/volkswagen)\n[![Build Status](https://travis-ci.org/gdi2290/angular-starter.svg?branch=master)](https://travis-ci.org/gdi2290/angular-starter)\n[![GitHub version](https://badge.fury.io/gh/gdi2290%2Fangular-starter.svg)](https://badge.fury.io/gh/gdi2290%2Fangular-starter)\n[![Dependency Status](https://david-dm.org/gdi2290/angular-starter.svg)](https://david-dm.org/gdi2290/angular-starter)\n[![Stack Share](http://img.shields.io/badge/tech-stack-0690fa.svg?style=flat)](http://stackshare.io/gdi2290/angular-starter)\n\n<p align=\"center\">\n  <a href=\"https://patrickjs.com\" target=\"_blank\">\n    <img src=\"https://cloud.githubusercontent.com/assets/1016365/26219144/aa986cfa-3bdb-11e7-9f04-7296dc9ae945.png\" alt=\"Angular Starter\" />\n  </a>\n</p>\n\n# Angular Webpack Starter [![Join the chat at https://gitter.im/angularclass/angular2-webpack-starter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/angularclass/angular2-webpack-starter?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)\n\n\n> An Angular starter kit featuring [Angular 6](https://angular.io), [Ahead of Time Compile](https://angular.io/docs/ts/latest/cookbook/aot-compiler.html), [Router](https://angular.io/docs/ts/latest/guide/router.html), [Forms](https://angular.io/docs/ts/latest/guide/forms.html),\n[Http](https://angular.io/docs/ts/latest/guide/server-communication.html),\n[Services](https://gist.github.com/gdi2290/634101fec1671ee12b3e#_follow_@AngularClass_on_twitter),\n[Tests](https://angular.io/docs/ts/latest/guide/testing.html), [E2E](https://angular.github.io/protractor/#/faq#what-s-the-difference-between-karma-and-protractor-when-do-i-use-which-)), [Karma](https://karma-runner.github.io/), [Protractor](https://angular.github.io/protractor/), [Jasmine](https://github.com/jasmine/jasmine), [Istanbul](https://github.com/gotwarlost/istanbul), [TypeScript](http://www.typescriptlang.org/), [@types](https://www.npmjs.com/~types), [TsLint](http://palantir.github.io/tslint/), [Codelyzer](https://github.com/mgechev/codelyzer), [Hot Module Replacement](https://webpack.github.io/docs/hot-module-replacement-with-webpack.html), and [Webpack](http://webpack.github.io/).\n\n> If you're looking for Angular 1.x please use [NG6-starter](https://github.com/gdi2290/NG6-starter)\n> If you're looking to learn about Webpack and ES6 Build Tools check out [ES6-build-tools](https://github.com/AngularClass/ES6-build-tools)\n> If you're looking to learn TypeScript see [TypeStrong/learn-typescript](https://github.com/TypeStrong/learn-typescript)\n> If you're looking for something easier to get started with then see the angular-seed that I also maintain [gdi2290/angular-seed](https://github.com/gdi2290/angular-seed)\n\nThis seed repo serves as an Angular starter for anyone looking to get up and running with Angular and TypeScript fast. Using a [Webpack 4](https://webpack.js.org) for building our files and assisting with boilerplate. We're also using Protractor for our end-to-end story and Karma for our unit tests.\n* Best practices in file and application organization for Angular.\n* Ready to go build system using Webpack for working with TypeScript.\n* Angular examples that are ready to go when experimenting with Angular.\n* A great Angular seed repo for anyone who wants to start their project.\n* Ahead of Time (AoT) compile for rapid page loads of your production builds.\n* Tree shaking to automatically remove unused code from your production bundle.\n* Testing Angular code with Jasmine and Karma.\n* Coverage with Istanbul and Karma\n* End-to-end Angular app testing using Protractor.\n* Type manager with @types\n* Hot Module Replacement with Webpack and [@gdi2290/hmr](https://github.com/gdi2290/angular-hmr) and [@gdi2290/hmr-loader](https://github.com/PatrickJS/angular-hmr-loader)\n\n### Quick start\n**Make sure you have Node version >= 8.0 and (NPM >= 5 or [Yarn](https://yarnpkg.com) )**\n> Clone/Download the repo then edit `app.component.ts` inside [`/src/app/app.component.ts`](/src/app/app.component.ts)\n\n```bash\n# clone our repo\n# --depth 1 removes all but one .git commit history\ngit clone --depth 1 https://github.com/gdi2290/angular-starter.git\n\n# change directory to our repo\ncd angular-starter\n\n# install the repo with npm\nnpm install\n\n# start the server\nnpm start\n\n# use Hot Module Replacement\nnpm run server:dev:hmr\n\n# if you're in China use cnpm\n# https://github.com/cnpm/cnpm\n```\ngo to [http://0.0.0.0:3000](http://0.0.0.0:3000) or [http://localhost:3000](http://localhost:3000) in your browser\n\n# Table of Contents\n* [File Structure](#file-structure)\n* [Getting Started](#getting-started)\n    * [Dependencies](#dependencies)\n    * [Installing](#installing)\n    * [Running the app](#running-the-app)\n* [Configuration](#configuration)\n* [AoT Don'ts](#aot-donts)\n* [External Stylesheets](#external-stylesheets)\n* [Contributing](#contributing)\n* [TypeScript](#typescript)\n* [@Types](#types)\n* [Frequently asked questions](#frequently-asked-questions)\n* [Support, Questions, or Feedback](#support-questions-or-feedback)\n* [Deployment](#deployment)\n* [License](#license)\n\n\n## File Structure\nWe use the component approach in our starter. This is the new standard for developing Angular apps and a great way to ensure maintainable code by encapsulation of our behavior logic. A component is basically a self contained app usually in a single file or a folder with each concern as a file: style, template, specs, e2e, and component class. Here's how it looks:\n```\nangular-starter/\n ├──config/                        * our configuration\n |   ├──build-utils.js             * common config and shared functions for prod and dev\n |   ├──config.common.json         * config for both environments prod and dev such title and description of index.html\n |   ├──config.dev.json            * config for development environment\n |   ├──config.prod.json           * config for production environment \n │   │                              (note: you can load your own config file, just set the evn ANGULAR_CONF_FILE with the path of your own file)\n |   ├──helpers.js                 * helper functions for our configuration files\n |   ├──spec-bundle.js             * ignore this magic that sets up our Angular testing environment\n |   ├──karma.conf.js              * karma config for our unit tests\n |   ├──protractor.conf.js         * protractor config for our end-to-end tests\n │   ├──webpack.common.js          * common tasks for webpack build process shared for dev and prod\n │   ├──webpack.dev.js             * our development webpack config\n │   ├──webpack.prod.js            * our production webpack config\n │   └──webpack.test.js            * our testing webpack config\n │\n ├──src/                           * our source files that will be compiled to javascript\n |   ├──main.browser.ts            * our entry file for our browser environment\n │   │\n |   ├──index.html                 * Index.html: where we generate our index page\n │   │\n |   ├──polyfills.ts               * our polyfills file\n │   │\n │   ├──app/                       * WebApp: folder\n │   │   ├──app.component.spec.ts  * a simple test of components in app.component.ts\n │   │   ├──app.e2e.ts             * a simple end-to-end test for /\n │   │   └──app.component.ts       * a simple version of our App component components\n │   │\n │   └──assets/                    * static assets are served here\n │       ├──icon/                  * our list of icons from www.favicon-generator.org\n │       ├──service-worker.js      * ignore this. Web App service worker that's not complete yet\n │       ├──robots.txt             * for search engines to crawl your website\n │       └──humans.txt             * for humans to know who the developers are\n │\n │\n ├──tslint.json                    * typescript lint config\n ├──typedoc.json                   * typescript documentation generator\n ├──tsconfig.json                  * typescript config used outside webpack\n ├──tsconfig.webpack.json          * config that webpack uses for typescript\n ├──package.json                   * what npm uses to manage its dependencies\n └──webpack.config.js              * webpack main configuration file\n\n```\n\n# Getting Started\n## Dependencies\nWhat you need to run this app:\n* `node` and `npm` (`brew install node`)\n* Ensure you're running the latest versions Node `v8.x.x`+ (or `v9.x.x`) and NPM `5.x.x`+\n\n> If you have `nvm` installed, which is highly recommended (`brew install nvm`) you can do a `nvm install --lts && nvm use` in `$` to run with the latest Node LTS. You can also have this `zsh` done for you [automatically](https://github.com/creationix/nvm#calling-nvm-use-automatically-in-a-directory-with-a-nvmrc-file)\n\nOnce you have those, you should install these globals with `npm install --global`:\n* `webpack` (`npm install --global webpack`)\n* `webpack-dev-server` (`npm install --global webpack-dev-server`)\n* `karma` (`npm install --global karma-cli`)\n* `protractor` (`npm install --global protractor`)\n* `typescript` (`npm install --global typescript`)\n* `tslint` (`npm install --global tslint@4.5.1`)\n\n## Installing\n* `fork` this repo\n* `clone` your fork\n* `npm install webpack-dev-server rimraf webpack -g` to install required global dependencies\n* `npm install` to install all dependencies or `yarn`\n* `npm run server` to start the dev server in another tab\n\n## Running the app\nAfter you have installed all dependencies you can now run the app. Run `npm run server` to start a local server using `webpack-dev-server` which will watch, build (in-memory), and reload for you. The port will be displayed to you as `http://0.0.0.0:3000` (or if you prefer IPv6, if you're using `express` server, then it's `http://[::1]:3000/`).\n\n### server\n```bash\n# development\nnpm run server\n# production\nnpm run build:prod\nnpm run server:prod\n```\n\n## Other commands\n## the following commands with npm can be used with yarn as well\n\n### build files\n```bash\n# development\nnpm run build:dev\n# production (jit)\nnpm run build:prod\n# AoT\nnpm run build:aot\n```\n\n### hot module replacement\n```bash\nnpm run server:dev:hmr\n```\n\n### watch and build files\n```bash\nnpm run watch\n```\n\n### run unit tests\n```bash\nnpm run test\n```\n\n### watch and run our tests\n```bash\nnpm run watch:test\n```\n\n### run end-to-end tests\n```bash\n# update Webdriver (optional, done automatically by postinstall script)\nnpm run webdriver:update\n# this will start a test server and launch Protractor\nnpm run e2e\n```\n\n### continuous integration (run unit tests and e2e tests together)\n```bash\n# this will test both your JIT and AoT builds\nnpm run ci\n```\n\n### run Protractor's elementExplorer (for end-to-end)\n```bash\nnpm run e2e:live\n```\n\n### build Docker\n```bash\nnpm run build:docker\n```\n\n# Configuration\nConfiguration files live in `config/` we are currently using webpack, karma, and protractor for different stages of your application\n\n# AoT Don'ts\nThe following are some things that will make AoT compile fail.\n\n- Don’t use require statements for your templates or styles, use styleUrls and templateUrls, the angular2-template-loader plugin will change it to require at build time.\n- Don’t use default exports.\n- Don’t use `form.controls.controlName`, use `form.get(‘controlName’)`\n- Don’t use `control.errors?.someError`, use `control.hasError(‘someError’)`\n- Don’t use functions in your providers, routes or declarations, export a function and then reference that function name\n- @Inputs, @Outputs, View or Content Child(ren), Hostbindings, and any field you use from the template or annotate for Angular should be public\n\nFor more detailed guide on AoT's Do's and Don'ts refer to https://github.com/rangle/angular-2-aot-sandbox\n\n# External Stylesheets\nAny stylesheets (Sass or CSS) placed in the `src/styles` directory and imported into your project will automatically be compiled into an external `.css` and embedded in your production builds.\n\nFor example to use Bootstrap as an external stylesheet:\n1) Create a `styles.scss` file (name doesn't matter) in the `src/styles` directory.\n2) `npm install` the version of Bootstrap you want.\n3) In `styles.scss` add `@import '~bootstrap/scss/bootstrap.scss';`\n4) In `src/app/app.module.ts` add underneath the other import statements: `import '../styles/styles.scss';`\n\n# Contributing\nYou can include more examples as components but they must introduce a new concept such as `Home` component (separate folders), and Todo (services). I'll accept pretty much everything so feel free to open a Pull-Request\n\n# TypeScript\n> To take full advantage of TypeScript with autocomplete you would have to install it globally and use an editor with the correct TypeScript plugins.\n\n## Use latest TypeScript compiler\nTypeScript 2.7.x includes everything you need. Make sure to upgrade, even if you installed TypeScript previously.\n\n```\nnpm install --global typescript\n```\n\n## Use a TypeScript-aware editor\nWe have good experience using these editors:\n\n* [Visual Studio Code](https://code.visualstudio.com/)\n* [Webstorm 2018.1](https://www.jetbrains.com/webstorm/download/)\n* [Atom](https://atom.io/) with [TypeScript plugin](https://atom.io/packages/atom-typescript)\n* [Sublime Text](http://www.sublimetext.com/3) with [Typescript-Sublime-Plugin](https://github.com/Microsoft/Typescript-Sublime-plugin#installation)\n\n### Visual Studio Code + Debugger for Chrome\n> Install [Debugger for Chrome](https://marketplace.visualstudio.com/items?itemName=msjsdiag.debugger-for-chrome) and see docs for instructions to launch Chrome\n\nThe included `.vscode` automatically connects to the webpack development server on port `3000`.\n\n# Types\n> When you include a module that doesn't include Type Definitions inside of the module you can include external Type Definitions with @types\n\ni.e, to have youtube api support, run this command in terminal:\n```shell\nnpm i @types/youtube @types/gapi @types/gapi.youtube\n```\nIn some cases where your code editor doesn't support Typescript 2 yet or these types weren't listed in ```tsconfig.json```, add these to **\"src/custom-typings.d.ts\"** to make peace with the compile check:\n```es6\nimport '@types/gapi.youtube';\nimport '@types/gapi';\nimport '@types/youtube';\n```\n\n## Custom Type Definitions\nWhen including 3rd party modules you also need to include the type definition for the module\nif they don't provide one within the module. You can try to install it with @types\n\n```\nnpm install @types/node\nnpm install @types/lodash\n```\n\nIf you can't find the type definition in the registry we can make an ambient definition in\nthis file for now. For example\n\n```typescript\ndeclare module \"my-module\" {\n  export function doesSomething(value: string): string;\n}\n```\n\n\nIf you're prototyping and you will fix the types later you can also declare it as type any\n\n```typescript\ndeclare var assert: any;\ndeclare var _: any;\ndeclare var $: any;\n```\n\nIf you're importing a module that uses Node.js modules which are CommonJS you need to import as\n\n```typescript\nimport * as _ from 'lodash';\n```\n\n\n# Frequently asked questions\n* What's the current browser support for Angular?\n  * Please view the updated list of [browser support for Angular](https://github.com/gdi2290/awesome-angular#current-browser-support-for-angular)\n* Why is my service, aka provider, is not injecting parameter correctly?\n  * Please use `@Injectable()` for your service for typescript to correctly attach the metadata (this is a TypeScript problem)\n* Where do I write my tests?\n  * You can write your tests next to your component files. See [`/src/app/home/home.component.spec.ts`](/src/app/home/home.component.spec.ts)\n* How do I start the app when I get `EACCES` and `EADDRINUSE` errors?\n  * The `EADDRINUSE` error means the port `3000` is currently being used and `EACCES` is lack of permission for webpack to build files to `./dist/`\n* How to use `sass` for css?\n *  * `loaders: ['raw-loader','sass-loader']` and `@Component({ styleUrls: ['./filename.scss'] })` see Wiki page [How to include SCSS in components](https://github.com/gdi2290/angular-starter/wiki/How-to-include-SCSS-in-components), or issue [#136](https://github.com/gdi2290/angular-starter/issues/136) for more information.\n* How do I test a Service?  \n  * See issue [#130](https://github.com/gdi2290/angular-starter/issues/130#issuecomment-158872648)\n* How do I add `vscode-chrome-debug` support?\n  * The VS Code chrome debug extension support can be done via `launch.json` see issue [#144](https://github.com/gdi2290/angular-starter/issues/144#issuecomment-164063790)\n* How do I make the repo work in a virtual machine?\n  * You need to use `0.0.0.0` so revert these changes [#205](https://github.com/gdi2290/angular-starter/pull/205/files)\n* What are the naming conventions for Angular?\n  * please see issue [#185](https://github.com/gdi2290/angular-starter/issues/185) and PR [196](https://github.com/gdi2290/angular-starter/pull/196)\n* How do I include bootstrap or jQuery?\n  * please see issue [#215](https://github.com/gdi2290/angular-starter/issues/215) and [#214](https://github.com/gdi2290/angular-starter/issues/214#event-511768416)\n* How do I async load a component?\n  * see wiki [How-do-I-async-load-a-component-with-AsyncRoute](https://github.com/gdi2290/angular-starter/wiki/How-do-I-async-load-a-component-with-AsyncRoute)\n* Error: Cannot find module 'tapable'\n  * Remove `node_modules/` and run `npm cache clean` then `npm install`\n* How do I turn on Hot Module Replacement\n  * Run `npm run server:dev:hmr`\n* `RangeError: Maximum call stack size exceeded`\n  * This is a problem with minifying Angular and it's recent JIT templates. If you set `mangle` to `false` then you should be good.\n* Why is the size of my app larger in development?\n  * We are using inline source-maps and hot module replacement which will increase the bundle size.\n* If you're in China\n  * check out https://github.com/cnpm/cnpm\n* node-pre-gyp ERR in npm install (Windows)\n  * often happens when you're behind proxy and proxy wasn't configured in the npm as it tries to download binary package from the github and if it fails to do so, it will try to compile node-sass from the source codes\n  * install Python3 x86\n* `Error:Error: Parse tsconfig error [{\"messageText\":\"Unknown compiler option 'lib'.\",\"category\":1,\"code\":5023},{\"messageText\":\"Unknown compiler option 'strictNullChecks'.\",\"category\":1,\"code\":5023},{\"messageText\":\"Unknown compiler option 'baseUrl'.\",\"category\":1,\"code\":5023},{\"messageText\":\"Unknown compiler option 'paths'.\",\"category\":1,\"code\":5023},{\"messageText\":\"Unknown compiler option 'types'.\",\"category\":1,\"code\":5023}]`\n  * remove `node_modules/typescript` and run `npm install typescript@beta`. This repo now uses ts 2.0\n* \"There are multiple modules with names that only differ in casing\"\n  * change `c:\\[path to angular-starter]` to `C:\\[path to angular-starter]` see [926#issuecomment-245223547](https://github.com/gdi2290/angular-starter/issues/926#issuecomment-245223547)\n\n# Support, Questions, or Feedback\n> Contact us anytime for anything about this repo or Angular\n\n`@PatrickJS__` on twitter\n\n# Deployment\n\n## Docker\n\nTo run project you only need host machine with **operating system** with installed **git** (to clone this repo)\nand [docker](https://www.docker.com/) and thats all - any other software is not needed\n(other software like node.js etc. will be automatically downloaded and installed inside docker container during build step based on dockerfile).\n\n### Install docker\n\n#### MacOS:\n\n`brew cask install docker`\n\nAnd run docker by Mac bottom menu> launchpad > docker (on first run docker will ask you about password)\n\n#### Ubuntu:\n\n```\nsudo apt-get update\nsudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D\nsudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main'\nsudo apt-get update\napt-cache policy docker-engine\nsudo apt-get install -y docker-engine\nsudo systemctl status docker  # test: should be ‘active’\n```\nAnd add your user to docker group (to avoid `sudo` before using `docker` command in future):\n```\nsudo usermod -aG docker $(whoami)\n```\nand logout and login again.\n\n### Build image\n\nBecause *node.js* is big memory consumer you need 1-2GB RAM or virtual memory to build docker image\n(it was successfully tested on machine with 512MB RAM + 2GB virtual memory - building process take 7min)\n\nGo to main project folder. To build image type:\n\n`docker build -t angular-starter .`\n\nThe **angular-starter** name used in above commands is only example image name.\nTo remove intermediate images created by docker on build process, type:\n\n`docker rmi -f $(docker images -f \"dangling=true\" -q)`\n\n### Run image\n\nTo run created docker image on [localhost:8080](localhost:8080) type (parameter `-p 8080:80` is host:container port mapping)\n\n`docker run --name angular-starter -p 8080:80 angular-starter &`\n\nAnd that's all, you can open browser and go to [localhost:8080](localhost:8080).\n\n### Build and Run image using docker-compose\n\nTo create and run docker image on [localhost:8080](localhost:8080) as part of large project you may use **docker-compose**. Type \n\n`docker-compose up`\n\nAnd that's all, you can open browser and go to [localhost:8080](localhost:8080).\n\n\n### Run image on sub-domain\n\nIf you want to run image as virtual-host on sub-domain you must setup [proxy](https://github.com/jwilder/nginx-proxy). You should install proxy and set sub-domain in this way:\n\n ```\n docker run -d -p 80:80 --name nginx-proxy -v /var/run/docker.sock:/tmp/docker.sock:ro jwilder/nginx-proxy:alpine\n ```\n\n And in your `/etc/hosts` file (linux) add line: `127.0.0.1 angular-starter.your-domain.com` or in yor hosting add\n following DNS record (wildchar `*` is handy because when you add new sub-domain in future, you don't need to touch/add any DNS record)\n\n ```\n Type: CNAME\n Hostname: *.your-domain.com\n Direct to: your-domain.com\n TTL(sec): 43200\n ```\n\nAnd now you are ready to run image on subdomain by:\n\n```\ndocker run -e VIRTUAL_HOST=angular-starter.your-domain.com --name angular-starter angular-starter &\n```\n\n### Login into docker container\n\n`docker exec -t -i angular-starter /bin/bash`\n\n## Netlify\n\nYou can quickly create a free site to get started using this\nstarter kit in production on [Netlify](https://www.netlify.com/):\n\n[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/AngularClass/angular-starter)\n\n### Optional Integration with SonarQube (for continous code quality)\nAssuming you have SonarQube 5.5.6 (LTS) installed\n* Setup SonarQube with the [Sonar Typescript plugin](https://github.com/Pablissimo/SonarTsPlugin#installation) and the Generic Test Coverage plugin https://docs.sonarqube.org/display/PLUG/Generic+Test+Coverage\n* Install sonar-scanner globally \n```bash\nnpm install --global sonar-scanner\n```\n* Install the [Karma plugin for sonarqube](https://www.npmjs.com/package/karma-sonarqube-unit-reporter) as a dev dependency \n```bash\nnpm install karma-sonarqube-unit-reporter --save-dev\n```\n* Sonar Host URL configuration:\nUpdate [`sonar-project.properties`](sonar-project.properties) file for the property `sonar.host.url` to point to your SonarQube server. By default this assumes that the SonarQube server is running locally using the default port\n```\nsonar.host.url=<Sonar Host URL and Port>\n```\n* Run the unit tests with sonar reporter enabled\n```bash\nnpm run test:sonar\n```\n* The test results collected in the results folder in the sonar compatible format\n* Push results to SonarCube\n```bash\nsonar-scanner\n``` \n* If working with SonarQube 6.x it supports [Generic Test Data](https://docs.sonarqube.org/display/SONAR/Generic+Test+Data)\n* Modify the [karma.conf.js](config/karma.config.js) to set the appropriate version of the sonarQube\n```es6\nsonarQubeUnitReporter: {\n  sonarQubeVersion: '6.x',\n}\n```\n___\n\nenjoy — [**PatrickJS**](https://patrickjs.com)\n\n___\n\n# License\n [MIT](/LICENSE)\n"
  },
  {
    "path": "config/build-utils.js",
    "content": "const ts = require('typescript');\nconst path = require('path');\nconst fs = require('fs');\nconst helpers = require('./helpers');\n\nconst APP_COMMON_CONFIG = require('./config.common.json');\n\nconst DEFAULT_METADATA = {\n  title: APP_COMMON_CONFIG.title,\n  description: APP_COMMON_CONFIG.description,\n  baseUrl: '/',\n  isDevServer: helpers.isWebpackDevServer(),\n  HMR: helpers.hasProcessFlag('hot'),\n  AOT: process.env.BUILD_AOT || helpers.hasNpmFlag('aot'),\n  E2E: !!process.env.BUILD_E2E,\n  WATCH: helpers.hasProcessFlag('watch'),\n  tsConfigPath: 'tsconfig.webpack.json',\n\n  /**\n   * This suffix is added to the environment.ts file, if not set the default environment file is loaded (development)\n   * To disable environment files set this to null\n   */\n  envFileSuffix: ''\n};\n\nfunction supportES2015(tsConfigPath) {\n  if (!supportES2015.hasOwnProperty('supportES2015')) {\n    const tsTarget = readTsConfig(tsConfigPath).options.target;\n    supportES2015['supportES2015'] = tsTarget !== ts.ScriptTarget.ES3 && tsTarget !== ts.ScriptTarget.ES5;\n  }\n  return supportES2015['supportES2015'];\n}\n\nfunction readTsConfig(tsConfigPath) {\n  const configResult = ts.readConfigFile(tsConfigPath, ts.sys.readFile);\n  return ts.parseJsonConfigFileContent(configResult.config, ts.sys,\n    path.dirname(tsConfigPath), undefined, tsConfigPath);\n}\n\nfunction getEnvFile(suffix) {\n  if (suffix && suffix[0] !== '.') {\n    suffix = '.' + suffix;\n  }\n\n  if (suffix === null) {\n    return;\n  }\n\n  let fileName = helpers.root(`src/environments/environment${suffix}.ts`);\n  if (fs.existsSync(fileName)) {\n    return fileName;\n  } else if (fs.existsSync(fileName = helpers.root('src/environments/environment.ts'))) {\n    console.warn(`Could not find environment file with suffix ${suffix}, loading default environment file`);\n    return fileName;\n  } else {\n    throw new Error('Environment file not found.')\n  }\n}\n\n/**\n * Read the tsconfig to determine if we should prefer ES2015 modules.\n * Load rxjs path aliases.\n * https://github.com/ReactiveX/rxjs/blob/master/doc/lettable-operators.md#build-and-treeshaking\n * @param supportES2015 Set to true when the output of typescript is >= ES6\n */\nfunction rxjsAlias(supportES2015) {\n  try {\n    const rxjsPathMappingImport = supportES2015 ? 'rxjs/_esm2015/path-mapping' : 'rxjs/_esm5/path-mapping';\n    const rxPaths = require(rxjsPathMappingImport);\n    return rxPaths(helpers.root('node_modules'));\n  } catch (e) {\n    return {};\n  }\n}\n\nfunction ngcWebpackSetup(prod, metadata) {\n  if (!metadata) {\n    metadata = DEFAULT_METADATA;\n  }\n\n  const buildOptimizer = prod && metadata.AOT;\n  const sourceMap = true; // TODO: apply based on tsconfig value?\n  const ngcWebpackPluginOptions = {\n    skipCodeGeneration: !metadata.AOT,\n    sourceMap\n  };\n\n  const environment = getEnvFile(metadata.envFileSuffix);\n  if (environment) {\n    ngcWebpackPluginOptions.hostReplacementPaths = {\n      [helpers.root('src/environments/environment.ts')]: environment\n    }\n  }\n\n  if (!prod && metadata.WATCH) {\n    // Force commonjs module format for TS on dev watch builds.\n    ngcWebpackPluginOptions.compilerOptions = {\n      module: 'commonjs'\n    };\n  }\n\n  const buildOptimizerLoader = {\n    loader: '@angular-devkit/build-optimizer/webpack-loader',\n    options: {\n      sourceMap\n    }\n  };\n\n  const loaders = [\n    {\n      test: /(?:\\.ngfactory\\.js|\\.ngstyle\\.js|\\.ts)$/,\n      use: buildOptimizer ? [ buildOptimizerLoader, '@ngtools/webpack' ] : [ '@ngtools/webpack' ]\n    },\n    ...buildOptimizer\n      ? [ { test: /\\.js$/, use: [ buildOptimizerLoader ] } ]\n      : []\n  ];\n\n  return {\n    loaders,\n    plugin: ngcWebpackPluginOptions\n  };\n}\n\n\nexports.DEFAULT_METADATA = DEFAULT_METADATA;\nexports.supportES2015 = supportES2015;\nexports.readTsConfig = readTsConfig;\nexports.getEnvFile = getEnvFile;\nexports.rxjsAlias = rxjsAlias;\nexports.ngcWebpackSetup = ngcWebpackSetup;\n"
  },
  {
    "path": "config/config.common.json",
    "content": "{\n  \"title\": \"Angular Starter by @gdi2290 from @TipeIO\",\n  \"description\": \"An Angular starter kit featuring Angular 5, Ahead of Time Compile, Router, Forms, Http, Services, Tests, E2E), Karma, Protractor, Jasmine, Istanbul, TypeScript, @types, TsLint, Codelyzer, Hot Module Replacement, and Webpack by Tipe.io\"\n}\n"
  },
  {
    "path": "config/config.dev.json",
    "content": "{\n  \"firebase\": {\n    \"apiKey\": \"\",\n    \"authDomain\": \"XXXXXX.firebaseapp.com\",\n    \"databaseURL\": \"https://XXXXXX.firebaseio.com\",\n    \"projectId\": \"XXXXXX\",\n    \"storageBucket\": \"XXXXXX.appspot.com\",\n    \"messagingSenderId\": \"000000000000\"\n  }\n}\n"
  },
  {
    "path": "config/config.prod.json",
    "content": "{\n  \"firebase\": {\n    \"apiKey\": \"\",\n    \"authDomain\": \"XXXXXX.firebaseapp.com\",\n    \"databaseURL\": \"https://XXXXXX.firebaseio.com\",\n    \"projectId\": \"XXXXXX\",\n    \"storageBucket\": \"XXXXXX.appspot.com\",\n    \"messagingSenderId\": \"000000000000\"\n  },\n  \"gtmKey\" : \"GTM-XXXXXXX\"\n}\n"
  },
  {
    "path": "config/empty.js",
    "content": "module.exports = {\n  hmrModule: function(ngmodule) {\n    return ngmodule;\n  },\n  NgProbeToken: {},\n  HmrState: function() {},\n  _createConditionalRootRenderer: function(rootRenderer, extraTokens, coreTokens) {\n    return rootRenderer;\n  },\n  __platform_browser_private__: {}\n};\n"
  },
  {
    "path": "config/github-deploy/index.js",
    "content": "const execSync = require('child_process').execSync;\n/**\n * Used to merge webpack configs.\n */\nconst webpackMerge = require('webpack-merge'); // used to merge webpack configs\nconst HtmlWebpackPlugin = require('html-webpack-plugin');\nconst helpers = require('../helpers');\n\nconst REPO_NAME_RE = /Push {2}URL: ((git@github\\.com:)|(https:\\/\\/github\\.com\\/)).+\\/(.+)\\.git/;\n\nfunction getWebpackConfigModule(options) {\n  if (options.githubDev) {\n    return require('../webpack.dev.js');\n  } else if (options.githubProd) {\n    return require('../webpack.prod.js');\n  } else {\n    throw new Error('Invalid compile option.');\n  }\n}\n\nfunction getRepoName(remoteName) {\n  remoteName = remoteName || 'origin';\n\n  var stdout = execSync('git remote show ' + remoteName),\n      match = REPO_NAME_RE.exec(stdout);\n\n  if (!match) {\n    throw new Error('Could not find a repository on remote ' + remoteName);\n  } else {\n    return match[4];\n  }\n}\n\nfunction stripTrailing(str, char) {\n\n  if (str[0] === char) {\n    str = str.substr(1);\n  }\n\n  if (str.substr(-1) === char) {\n    str = str.substr(0, str.length - 1);\n  }\n\n  return str;\n}\n\n/**\n * Given a string remove trailing slashes and adds 1 slash at the end of the string.\n *\n * Example:\n * safeUrl('/value/')\n * // 'value/'\n *\n * @param url\n * @returns {string}\n */\nfunction safeUrl(url) {\n  const stripped = stripTrailing(url || '', '/');\n  return stripped ? stripped + '/' : '';\n}\n\nfunction replaceHtmlWebpackPlugin(plugins, ghRepoName) {\n  for (var i=0; i<plugins.length; i++) {\n    if (plugins[i] instanceof HtmlWebpackPlugin) {\n      /**\n       * Remove the old instance of the html plugin.\n       */\n      const htmlPlug = plugins.splice(i, 1)[0];\n      const METADATA = webpackMerge(htmlPlug.options.metadata, {\n        /**\n         * Prefixing the REPO name to the baseUrl for router support.\n         * This also means all resource URIs (CSS/Images/JS) will have this prefix added by the browser\n         * unless they are absolute (start with '/'). We will handle it via `output.publicPath`\n         */\n        baseUrl: '/' + ghRepoName + '/' + safeUrl(htmlPlug.options.metadata.baseUrl)\n      });\n\n      /**\n       * Add the new instance of the html plugin.\n       */\n      plugins.splice(i, 0, new HtmlWebpackPlugin({\n        template: htmlPlug.options.template,\n        title: htmlPlug.options.title,\n        chunksSortMode: htmlPlug.options.chunksSortMode,\n        metadata: METADATA,\n        inject: htmlPlug.options.inject\n      }));\n      return;\n    }\n  }\n}\nexports.getWebpackConfigModule = getWebpackConfigModule;\nexports.getRepoName = getRepoName;\nexports.safeUrl = safeUrl;\nexports.replaceHtmlWebpackPlugin = replaceHtmlWebpackPlugin;\n"
  },
  {
    "path": "config/head-config.common.js",
    "content": "/**\n * Configuration for head elements added during the creation of index.html.\n *\n * All href attributes are added the publicPath (if exists) by default.\n * You can explicitly hint to prefix a publicPath by setting a boolean value to a key that has\n * the same name as the attribute you want to operate on, but prefix with =\n *\n * Example:\n * { name: 'msapplication-TileImage', content: '/assets/icon/ms-icon-144x144.png', '=content': true },\n * Will prefix the publicPath to content.\n *\n * { rel: 'apple-touch-icon', sizes: '57x57', href: '/assets/icon/apple-icon-57x57.png', '=href': false },\n * Will not prefix the publicPath on href (href attributes are added by default\n *\n */\nmodule.exports = {\n  link: [\n    /**\n     * <link> tags for 'apple-touch-icon' (AKA Web Clips).\n     */\n    { rel: 'apple-touch-icon', sizes: '57x57', href: '/assets/icon/apple-icon-57x57.png' },\n    { rel: 'apple-touch-icon', sizes: '60x60', href: '/assets/icon/apple-icon-60x60.png' },\n    { rel: 'apple-touch-icon', sizes: '72x72', href: '/assets/icon/apple-icon-72x72.png' },\n    { rel: 'apple-touch-icon', sizes: '76x76', href: '/assets/icon/apple-icon-76x76.png' },\n    { rel: 'apple-touch-icon', sizes: '114x114', href: '/assets/icon/apple-icon-114x114.png' },\n    { rel: 'apple-touch-icon', sizes: '120x120', href: '/assets/icon/apple-icon-120x120.png' },\n    { rel: 'apple-touch-icon', sizes: '144x144', href: '/assets/icon/apple-icon-144x144.png' },\n    { rel: 'apple-touch-icon', sizes: '152x152', href: '/assets/icon/apple-icon-152x152.png' },\n    { rel: 'apple-touch-icon', sizes: '180x180', href: '/assets/icon/apple-icon-180x180.png' },\n\n    /**\n     * <link> tags for android web app icons\n     */\n    { rel: 'icon', type: 'image/png', sizes: '192x192', href: '/assets/icon/android-icon-192x192.png' },\n\n    /**\n     * <link> tags for favicons\n     */\n    { rel: 'icon', type: 'image/png', sizes: '32x32', href: '/assets/icon/favicon-32x32.png' },\n    { rel: 'icon', type: 'image/png', sizes: '96x96', href: '/assets/icon/favicon-96x96.png' },\n    { rel: 'icon', type: 'image/png', sizes: '16x16', href: '/assets/icon/favicon-16x16.png' },\n\n    /**\n     * <link> tags for a Web App Manifest\n     */\n    { rel: 'manifest', href: '/assets/manifest.json' }\n  ],\n  meta: [\n    { name: 'msapplication-TileColor', content: '#00bcd4' },\n    { name: 'msapplication-TileImage', content: '/assets/icon/ms-icon-144x144.png', '=content': true },\n    { name: 'theme-color', content: '#00bcd4' }\n  ]\n};\n"
  },
  {
    "path": "config/helpers.js",
    "content": "/**\n * @author: tipe.io\n */\nconst path = require('path');\n\nconst EVENT = process.env.npm_lifecycle_event || '';\n\n/**\n * Helper functions.\n */\nvar ROOT = path.resolve(__dirname, '..');\n\nfunction hasProcessFlag(flag) {\n  return process.argv.join('').indexOf(flag) > -1;\n}\n\nfunction hasNpmFlag(flag) {\n  return EVENT.includes(flag);\n}\n\nfunction isWebpackDevServer() {\n  return process.argv[1] && !! (/webpack-dev-server/.exec(process.argv[1]));\n}\n\n\nvar root = path.join.bind(path, ROOT);\n\nexports.hasProcessFlag = hasProcessFlag;\nexports.hasNpmFlag = hasNpmFlag;\nexports.isWebpackDevServer = isWebpackDevServer;\nexports.root = root;\n"
  },
  {
    "path": "config/html-elements-plugin/index.js",
    "content": "const RE_ENDS_WITH_BS = /\\/$/;\n\n/**\n * Create an HTML tag with attributes from a map.\n *\n * Example:\n * createTag('link', { rel: \"manifest\", href: \"/assets/manifest.json\" })\n * // <link rel=\"manifest\" href=\"/assets/manifest.json\">\n * @param tagName The name of the tag\n * @param attrMap A Map of attribute names (keys) and their values.\n * @param publicPath a path to add to eh start of static asset url\n * @returns {string}\n */\nfunction createTag(tagName, attrMap, publicPath) {\n  publicPath = publicPath || '';\n\n  /**\n   * Add trailing slash if we have a publicPath and it doesn't have one.\n   */\n  if (publicPath && !RE_ENDS_WITH_BS.test(publicPath)) {\n    publicPath += '/';\n  }\n\n  const attributes = Object.getOwnPropertyNames(attrMap)\n    .filter(function (name) {\n      return name[0] !== '=';\n    })\n    .map(function (name) {\n      var value = attrMap[name];\n\n      if (publicPath) {\n        /**\n         * Check if we have explicit instruction, use it if so (e.g: =herf: false)\n         * if no instruction, use public path if it's href attribute.\n         */\n        const usePublicPath = attrMap.hasOwnProperty('=' + name) ? !!attrMap['=' + name] : name === 'href';\n\n        if (usePublicPath) {\n          /**\n           * Remove a starting trailing slash if the value has one so we wont have //\n           */\n          value = publicPath + (value[0] === '/' ? value.substr(1) : value);\n        }\n      }\n\n      return `${name}=\"${value}\"`;\n    });\n\n  const closingTag = tagName === 'script' ? '</script>' : '';\n\n  return `<${tagName} ${attributes.join(' ')}>${closingTag}`;\n}\n\n/**\n * Returns a string representing all html elements defined in a data source.\n *\n * Example:\n *\n *    const ds = {\n *      link: [\n *        { rel: \"apple-touch-icon\", sizes: \"57x57\", href: \"/assets/icon/apple-icon-57x57.png\" }\n *      ],\n *      meta: [\n *        { name: \"msapplication-TileColor\", content: \"#00bcd4\" }\n *      ]\n *    }\n *\n * getHeadTags(ds);\n * // \"<link rel=\"apple-touch-icon\" sizes=\"57x57\" href=\"/assets/icon/apple-icon-57x57.png\">\"\n *    \"<meta name=\"msapplication-TileColor\" content=\"#00bcd4\">\"\n *\n * @returns {string}\n */\nfunction getHtmlElementString(dataSource, publicPath) {\n  return Object.getOwnPropertyNames(dataSource)\n    .map(function (name) {\n      if (Array.isArray(dataSource[name])) {\n        return dataSource[name].map(function (attrs) {\n          return createTag(name, attrs, publicPath);\n        });\n      } else {\n        return [createTag(name, dataSource[name], publicPath)];\n      }\n    })\n    .reduce(function (arr, curr) {\n      return arr.concat(curr);\n    }, [])\n    .join('\\n\\t');\n}\n\nclass HtmlElementsPlugin {\n  constructor(locations) {\n    this.locations = locations;\n  }\n\n  /* istanbul ignore next: this would be integration tests */\n  apply(compiler) {\n    compiler.hooks.compilation.tap('HtmlElementsPlugin', compilation => {\n      compilation.options.htmlElements = compilation.options.htmlElements || {};\n      compilation.hooks.htmlWebpackPluginBeforeHtmlGeneration.tapAsync('HtmlElementsPlugin',\n        (htmlPluginData, callback) => {\n\n          const locations = this.locations;\n          if (locations) {\n            const publicPath = htmlPluginData.assets.publicPath;\n\n            Object.getOwnPropertyNames(locations).forEach(function (loc) {\n\n              compilation.options.htmlElements[loc] = getHtmlElementString(locations[loc], publicPath);\n            });\n          }\n\n          // return htmlPluginData;\n          callback(null, htmlPluginData);\n        }\n      );\n    });\n  }\n}\n\nmodule.exports = HtmlElementsPlugin;\n\n"
  },
  {
    "path": "config/karma.conf.js",
    "content": "/**\n * @author: tipe.io\n */\n\nmodule.exports = function (config) {\n  const testWebpackConfig = require('./webpack.test.js')({ env: 'test' });\n\n  const configuration = {\n\n    /**\n     * Base path that will be used to resolve all patterns (e.g. files, exclude).\n    */\n    basePath: '',\n\n    /**\n     * Frameworks to use\n     *\n     * available frameworks: https://npmjs.org/browse/keyword/karma-adapter\n     */\n    frameworks: ['jasmine'],\n\n    /**\n     * List of files to exclude.\n    */\n    exclude: [],\n\n    client: {\n      captureConsole: false\n    },\n\n    /**\n     * List of files / patterns to load in the browser\n     *\n     * we are building the test environment in ./spec-bundle.js\n     */\n    files: [\n      { pattern: './config/spec-bundle.js', watched: false },\n      { pattern: './src/assets/**/*', watched: false, included: false, served: true, nocache: false }\n    ],\n\n    /**\n     * By default all assets are served at http://localhost:[PORT]/base/\n     */\n    proxies: {\n      \"/assets/\": \"/base/src/assets/\"\n    },\n\n    /**\n     * Preprocess matching files before serving them to the browser\n     * available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor\n     */\n    preprocessors: { './config/spec-bundle.js': ['coverage', 'webpack', 'sourcemap'] },\n\n    /**\n     * Webpack Config at ./webpack.test.js\n     */\n    webpack: testWebpackConfig,\n\n    coverageReporter: {\n      type: 'in-memory'\n    },\n\n    remapCoverageReporter: {\n      'text-summary': null,\n      json: './coverage/coverage.json',\n      html: './coverage/html'\n    },\n\n    /**\n     * Webpack please don't spam the console when running in karma!\n     */\n    webpackMiddleware: {\n      /**\n       * webpack-dev-middleware configuration\n       * i.e.\n       */\n      logLevel: 'warn',\n      /**\n       * and use stats to turn off verbose output\n       */\n      stats: {\n        /**\n         * options i.e.\n         */\n        chunks: false\n      }\n    },\n\n    /**\n     * Test results reporter to use\n     *\n     * possible values: 'dots', 'progress'\n     * available reporters: https://npmjs.org/browse/keyword/karma-reporter\n     */\n    reporters: ['mocha', 'coverage', 'remap-coverage'],\n\n    /**\n     * Web server port.\n     */\n    port: 9876,\n\n    /**\n     * enable / disable colors in the output (reporters and logs)\n     */\n    colors: true,\n\n    /**\n     * Level of logging\n     * possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG\n     */\n    logLevel: config.LOG_WARN,\n\n    /**\n     * enable / disable watching file and executing tests whenever any file changes\n     */\n    autoWatch: true,\n\n    /**\n     * start these browsers\n     * available browser launchers: https://npmjs.org/browse/keyword/karma-launcher\n     */\n    browsers: [\n      'ChromeTravisCi'\n    ],\n\n    customLaunchers: {\n      ChromeTravisCi: {\n        base: 'ChromeHeadless',\n        flags: ['--no-sandbox', '--disable-gpu']\n      }\n    },\n\n    /**\n     * Continuous Integration mode\n     * if true, Karma captures browsers, runs the tests and exits\n     */\n    singleRun: false,\n\n    client: {\n      clearContext: false // leave Jasmine Spec Runner output visible in browser\n    },\n\n    /**\n     * For slower machines you may need to have a longer browser\n     * wait time . Uncomment the line below if required.\n     */\n    // browserNoActivityTimeout: 30000\n\n  };\n\n  // Optional Sonar Qube Reporter\n  if (process.env.SONAR_QUBE) {\n\n    // SonarQube reporter plugin configuration\n    configuration.sonarQubeUnitReporter = {\n      sonarQubeVersion: '5.x',\n      outputFile: 'reports/ut_report.xml',\n      overrideTestDescription: true,\n      testPath: 'src/app',\n      testFilePattern: '.spec.ts',\n      useBrowserName: false\n    };\n\n    // Additional lcov format required for\n    // sonarqube\n    configuration.remapCoverageReporter.lcovonly = './coverage/coverage.lcov';\n\n    configuration.reporters.push('sonarqubeUnit');\n  }\n\n  if (process.env.TRAVIS) {\n    configuration.browsers = [\n      'ChromeTravisCi'\n    ];\n  }\n\n  config.set(configuration);\n};\n"
  },
  {
    "path": "config/nginx-custom.conf",
    "content": "server {\n  listen 80;\n\n  gzip on;\n  gzip_http_version 1.1;\n  gzip_disable      \"MSIE [1-6]\\.\";\n  gzip_min_length   1100;\n  gzip_vary         on;\n  gzip_proxied      expired no-cache no-store private auth;\n  gzip_types        text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;\n  gzip_comp_level   5;\n\n  root /usr/share/nginx/html;\n\n  location / {\n    index index.html index.htm;\n    try_files $uri $uri/ /index.html =404;\n  }\n}\n"
  },
  {
    "path": "config/protractor.conf.js",
    "content": "/**\n * @author: tipe.io\n */\n\nrequire('ts-node/register');\nvar helpers = require('./helpers');\n\nexports.config = {\n  baseUrl: 'http://localhost:3000/',\n\n  /**\n   * Use `npm run e2e`\n   */\n  specs: [\n    helpers.root('src/**/**.e2e.ts'),\n    helpers.root('src/**/*.e2e.ts')\n  ],\n  exclude: [],\n\n  framework: 'jasmine',\n\n  allScriptsTimeout: 11000,\n\n  jasmineNodeOpts: {\n    showTiming: true,\n    showColors: true,\n    isVerbose: false,\n    includeStackTrace: false,\n    defaultTimeoutInterval: 40000\n  },\n\n  directConnect: true,\n  capabilities: {\n    browserName: 'chrome',\n    chromeOptions: {\n      args: [ \"--headless\", \"--disable-gpu\", \"--window-size=800x600\", \"--no-sandbox\" ]\n    }\n  },\n\n  onPrepare: function() {\n    browser.ignoreSynchronization = true;\n  },\n\n  /**\n   * Angular 2 configuration\n   *\n   * useAllAngular2AppRoots: tells Protractor to wait for any angular2 apps on the page instead of just the one matching\n   * `rootEl`\n   */\n   useAllAngular2AppRoots: true,\n\n   SELENIUM_PROMISE_MANAGER: false,\n};\n"
  },
  {
    "path": "config/resource-override.js",
    "content": ""
  },
  {
    "path": "config/spec-bundle.js",
    "content": "/**\n * @author: tipe.io\n */\n\n/**\n * When testing with webpack and ES6, we have to do some extra\n * things to get testing to work right. Because we are gonna write tests\n * in ES6 too, we have to compile those as well. That's handled in\n * karma.conf.js with the karma-webpack plugin. This is the entry\n * file for webpack test. Just like webpack will create a bundle.js\n * file for our client, when we run test, it will compile and bundle them\n * all here! Crazy huh. So we need to do some setup\n */\nError.stackTraceLimit = Infinity;\n\nrequire('core-js/es6');\nrequire('core-js/es7/reflect');\n\nrequire('zone.js/dist/zone');\nrequire('zone.js/dist/long-stack-trace-zone');\nrequire('zone.js/dist/proxy'); // since zone.js 0.6.15\nrequire('zone.js/dist/sync-test');\nrequire('zone.js/dist/jasmine-patch'); // put here since zone.js 0.6.14\nrequire('zone.js/dist/async-test');\nrequire('zone.js/dist/fake-async-test');\n\nvar testing = require('@angular/core/testing');\nvar browser = require('@angular/platform-browser-dynamic/testing');\n\ntesting.TestBed.initTestEnvironment(\n  browser.BrowserDynamicTestingModule,\n  browser.platformBrowserDynamicTesting()\n);\n\n/**\n * Ok, this is kinda crazy. We can use the context method on\n * require that webpack created in order to tell webpack\n * what files we actually want to require or import.\n * Below, context will be a function/object with file names as keys.\n * Using that regex we are saying look in ../src then find\n * any file that ends with spec.ts and get its path. By passing in true\n * we say do this recursively\n */\nvar testContext = require.context('../src', true, /\\.spec\\.ts/);\n\n/**\n * Get all the files, for each file, call the context function\n * that will require the file and load it up here. Context will\n * loop and require those spec files here\n */\nfunction requireAll(requireContext) {\n  return requireContext.keys().map(requireContext);\n}\n\n/**\n * Requires and returns all modules that match\n */\nvar modules = requireAll(testContext);\n"
  },
  {
    "path": "config/webpack.common.js",
    "content": "/**\n * @author: tipe.io\n */\n\nconst helpers = require('./helpers');\n\n/**\n * Webpack Plugins\n *\n * problem with copy-webpack-plugin\n */\nconst DefinePlugin = require('webpack/lib/DefinePlugin');\nconst CopyWebpackPlugin = require('copy-webpack-plugin');\nconst HtmlElementsPlugin = require('./html-elements-plugin');\nconst HtmlWebpackPlugin = require('html-webpack-plugin');\nconst WebpackInlineManifestPlugin = require('webpack-inline-manifest-plugin');\nconst ScriptExtHtmlWebpackPlugin = require('script-ext-html-webpack-plugin');\nconst AngularCompilerPlugin = require('@ngtools/webpack').AngularCompilerPlugin;\n\nconst buildUtils = require('./build-utils');\n\n/**\n * Webpack configuration\n *\n * See: https://webpack.js.org/configuration/\n */\nmodule.exports = function(options) {\n  const isProd = options.env === 'production';\n  const APP_CONFIG = require(process.env.ANGULAR_CONF_FILE || (isProd ? './config.prod.json' : './config.dev.json'));\n\n  const METADATA = Object.assign({}, buildUtils.DEFAULT_METADATA, options.metadata || {});\n  const GTM_API_KEY = process.env.GTM_API_KEY || APP_CONFIG.gtmKey;\n\n  const ngcWebpackConfig = buildUtils.ngcWebpackSetup(isProd, METADATA);\n  const supportES2015 = buildUtils.supportES2015(METADATA.tsConfigPath);\n\n  const entry = {\n    polyfills: './src/polyfills.browser.ts',\n    main: './src/main.browser.ts'\n  };\n\n  Object.assign(ngcWebpackConfig.plugin, {\n    tsConfigPath: METADATA.tsConfigPath,\n    mainPath: entry.main\n  });\n\n  return {\n    /**\n     * The entry point for the bundle\n     * Our Angular.js app\n     *\n     * See: https://webpack.js.org/configuration/entry-context/#entry\n     */\n    entry: entry,\n\n    /**\n     * Options affecting the resolving of modules.\n     *\n     * See: https://webpack.js.org/configuration/resolve/\n     */\n    resolve: {\n      mainFields: [...(supportES2015 ? ['es2015'] : []), 'browser', 'module', 'main'],\n\n      /**\n       * An array of extensions that should be used to resolve modules.\n       *\n       * See: https://webpack.js.org/configuration/resolve/#resolve-extensions\n       */\n      extensions: ['.ts', '.js', '.json'],\n\n      /**\n       * An array of directory names to be resolved to the current directory\n       */\n      modules: [helpers.root('src'), helpers.root('node_modules')],\n\n      /**\n       * Add support for lettable operators.\n       *\n       * For existing codebase a refactor is required.\n       * All rxjs operator imports (e.g. `import 'rxjs/add/operator/map'` or `import { map } from `rxjs/operator/map'`\n       * must change to `import { map } from 'rxjs/operators'` (note that all operators are now under that import.\n       * Additionally some operators have changed to to JS keyword constraints (do => tap, catch => catchError)\n       *\n       * Remember to use the `pipe()` method to chain operators, this functinoally makes lettable operators similar to\n       * the old operators usage paradigm.\n       *\n       * For more details see:\n       * https://github.com/ReactiveX/rxjs/blob/master/doc/lettable-operators.md#build-and-treeshaking\n       *\n       * If you are not planning on refactoring your codebase (or not planning on using imports from `rxjs/operators`\n       * comment out this line.\n       *\n       * BE AWARE that not using lettable operators will probably result in significant payload added to your bundle.\n       */\n      alias: buildUtils.rxjsAlias(supportES2015)\n    },\n\n    /**\n     * Options affecting the normal modules.\n     *\n     * See: https://webpack.js.org/configuration/module/\n     */\n    module: {\n      rules: [\n        ...ngcWebpackConfig.loaders,\n\n        /**\n         * To string and css loader support for *.css files (from Angular components)\n         * Returns file content as string\n         *\n         */\n        {\n          test: /\\.css$/,\n          use: ['to-string-loader', 'css-loader'],\n          exclude: [helpers.root('src', 'styles')]\n        },\n\n        /**\n         * To string and sass loader support for *.scss files (from Angular components)\n         * Returns compiled css content as string\n         *\n         */\n        {\n          test: /\\.scss$/,\n          use: ['to-string-loader', 'css-loader', 'sass-loader'],\n          exclude: [helpers.root('src', 'styles')]\n        },\n\n        /**\n         * Raw loader support for *.html\n         * Returns file content as string\n         *\n         * See: https://github.com/webpack/raw-loader\n         */\n        {\n          test: /\\.html$/,\n          use: 'raw-loader',\n          exclude: [helpers.root('src/index.html')]\n        },\n\n        /**\n         * File loader for supporting images, for example, in CSS files.\n         */\n        {\n          test: /\\.(jpg|png|gif)$/,\n          use: 'file-loader'\n        },\n\n        /* File loader for supporting fonts, for example, in CSS files.\n        */\n        {\n          test: /\\.(eot|woff2?|svg|ttf)([\\?]?.*)$/,\n          use: 'file-loader'\n        }\n      ]\n    },\n\n    /**\n     * Add additional plugins to the compiler.\n     *\n     * See: https://webpack.js.org/configuration/plugins/\n     */\n    plugins: [\n      /**\n       * Plugin: DefinePlugin\n       * Description: Define free variables.\n       * Useful for having development builds with debug logging or adding global constants.\n       *\n       * Environment helpers\n       *\n       * See: https://webpack.js.org/plugins/define-plugin/\n       */\n      // NOTE: when adding more properties make sure you include them in custom-typings.d.ts\n      new DefinePlugin({\n        ENV: JSON.stringify(METADATA.ENV),\n        HMR: METADATA.HMR,\n        AOT: METADATA.AOT,\n        'process.env.ENV': JSON.stringify(METADATA.ENV),\n        'process.env.NODE_ENV': JSON.stringify(METADATA.ENV),\n        'process.env.HMR': METADATA.HMR\n        // 'FIREBASE_CONFIG': JSON.stringify(APP_CONFIG.firebase),\n      }),\n\n      /**\n       * Plugin: CopyWebpackPlugin\n       * Description: Copy files and directories in webpack.\n       *\n       * Copies project static assets.\n       *\n       * See: https://www.npmjs.com/package/copy-webpack-plugin\n       */\n      new CopyWebpackPlugin(\n        [{ from: 'src/assets', to: 'assets' }, { from: 'src/meta' }],\n        isProd ? { ignore: ['mock-data/**/*'] } : undefined\n      ),\n\n      /*\n      * Plugin: HtmlWebpackPlugin\n      * Description: Simplifies creation of HTML files to serve your webpack bundles.\n      * This is especially useful for webpack bundles that include a hash in the filename\n      * which changes every compilation.\n      *\n      * See: https://github.com/ampedandwired/html-webpack-plugin\n      */\n      new HtmlWebpackPlugin({\n        template: 'src/index.html',\n        title: METADATA.title,\n        chunksSortMode: function(a, b) {\n          const entryPoints = ['inline', 'polyfills', 'sw-register', 'styles', 'vendor', 'main'];\n          return entryPoints.indexOf(a.names[0]) - entryPoints.indexOf(b.names[0]);\n        },\n        metadata: METADATA,\n        gtmKey: GTM_API_KEY,\n        inject: 'body',\n        xhtml: true,\n        minify: isProd\n          ? {\n              caseSensitive: true,\n              collapseWhitespace: true,\n              keepClosingSlash: true\n            }\n          : false\n      }),\n\n      /**\n       * Plugin: ScriptExtHtmlWebpackPlugin\n       * Description: Enhances html-webpack-plugin functionality\n       * with different deployment options for your scripts including:\n       *\n       * See: https://github.com/numical/script-ext-html-webpack-plugin\n       */\n      new ScriptExtHtmlWebpackPlugin({\n        sync: /inline|polyfills|vendor/,\n        defaultAttribute: 'async',\n        preload: [/polyfills|vendor|main/],\n        prefetch: [/chunk/]\n      }),\n\n      /**\n       * Plugin: HtmlElementsPlugin\n       * Description: Generate html tags based on javascript maps.\n       *\n       * If a publicPath is set in the webpack output configuration, it will be automatically added to\n       * href attributes, you can disable that by adding a \"=href\": false property.\n       * You can also enable it to other attribute by settings \"=attName\": true.\n       *\n       * The configuration supplied is map between a location (key) and an element definition object (value)\n       * The location (key) is then exported to the template under then htmlElements property in webpack configuration.\n       *\n       * Example:\n       *  Adding this plugin configuration\n       *  new HtmlElementsPlugin({\n       *    headTags: { ... }\n       *  })\n       *\n       *  Means we can use it in the template like this:\n       *  <%= webpackConfig.htmlElements.headTags %>\n       *\n       * Dependencies: HtmlWebpackPlugin\n       */\n      new HtmlElementsPlugin({\n        headTags: require('./head-config.common')\n      }),\n\n      new AngularCompilerPlugin(ngcWebpackConfig.plugin),\n\n      /**\n       * Plugin: WebpackInlineManifestPlugin\n       * Inline Webpack's manifest.js in index.html\n       *\n       * https://github.com/almothafar/webpack-inline-manifest-plugin\n       */\n      new WebpackInlineManifestPlugin()\n    ],\n\n    /**\n     * Include polyfills or mocks for various node stuff\n     * Description: Node configuration\n     *\n     * See: https://webpack.js.org/configuration/node/\n     */\n    node: {\n      global: true,\n      crypto: 'empty',\n      process: true,\n      module: false,\n      clearImmediate: false,\n      setImmediate: false\n    }\n  };\n};\n"
  },
  {
    "path": "config/webpack.dev.js",
    "content": "/**\n * @author: tipe.io\n */\n\nconst helpers = require('./helpers');\nconst buildUtils = require('./build-utils');\nconst webpackMerge = require('webpack-merge'); // used to merge webpack configs\nconst commonConfig = require('./webpack.common.js'); // the settings that are common to prod and dev\n\n/**\n * Webpack Plugins\n */\nconst LoaderOptionsPlugin = require('webpack/lib/LoaderOptionsPlugin');\n\n/**\n * Webpack configuration\n *\n * See: https://webpack.js.org/configuration/\n */\nmodule.exports = function(options) {\n  const ENV = (process.env.ENV = process.env.NODE_ENV = 'development');\n  const HOST = process.env.HOST || 'localhost';\n  const PORT = process.env.PORT || 3000;\n\n  const METADATA = Object.assign({}, buildUtils.DEFAULT_METADATA, {\n    host: HOST,\n    port: PORT,\n    ENV: ENV,\n    HMR: helpers.hasProcessFlag('hot'),\n    PUBLIC: process.env.PUBLIC_DEV || HOST + ':' + PORT\n  });\n\n  return webpackMerge(commonConfig({ env: ENV, metadata: METADATA }), {\n    mode: 'development',\n    devtool: 'inline-source-map',\n\n    /**\n     * Options affecting the output of the compilation.\n     *\n     * See: https://webpack.js.org/configuration/output/\n     */\n    output: {\n      /**\n       * The output directory as absolute path (required).\n       *\n       * See: https://webpack.js.org/configuration/output/#output-path\n       */\n      path: helpers.root('dist'),\n\n      /**\n       * Specifies the name of each output file on disk.\n       * IMPORTANT: You must not specify an absolute path here!\n       *\n       * See: https://webpack.js.org/configuration/output/#output-filename\n       */\n      filename: '[name].bundle.js',\n\n      /**\n       * The filename of the SourceMaps for the JavaScript files.\n       * They are inside the output.path directory.\n       *\n       * See: https://webpack.js.org/configuration/output/#output-sourcemapfilename\n       */\n      sourceMapFilename: '[file].map',\n\n      /** The filename of non-entry chunks as relative path\n       * inside the output.path directory.\n       *\n       * See: https://webpack.js.org/configuration/output/#output-chunkfilename\n       */\n      chunkFilename: '[id].chunk.js',\n\n      library: 'ac_[name]',\n      libraryTarget: 'var'\n    },\n\n    module: {\n      rules: [\n        /**\n         * Css loader support for *.css files (styles directory only)\n         * Loads external css styles into the DOM, supports HMR\n         *\n         */\n        {\n          test: /\\.css$/,\n          use: ['style-loader', 'css-loader'],\n          include: [helpers.root('src', 'styles')]\n        },\n\n        /**\n         * Sass loader support for *.scss files (styles directory only)\n         * Loads external sass styles into the DOM, supports HMR\n         *\n         */\n        {\n          test: /\\.scss$/,\n          use: ['style-loader', 'css-loader', 'sass-loader'],\n          include: [helpers.root('src', 'styles')]\n        }\n      ]\n    },\n\n    plugins: [\n      /**\n       * Plugin LoaderOptionsPlugin (experimental)\n       *\n       * See: https://gist.github.com/sokra/27b24881210b56bbaff7\n       */\n      new LoaderOptionsPlugin({\n        debug: true,\n        options: {}\n      })\n    ],\n\n    /**\n     * Webpack Development Server configuration\n     * Description: The webpack-dev-server is a little node.js Express server.\n     * The server emits information about the compilation state to the client,\n     * which reacts to those events.\n     *\n     * See: https://webpack.js.org/configuration/dev-server/\n     */\n    devServer: {\n      port: METADATA.port,\n      host: METADATA.host,\n      hot: METADATA.HMR,\n      public: METADATA.PUBLIC,\n      historyApiFallback: true,\n      watchOptions: {\n        // if you're using Docker you may need this\n        // aggregateTimeout: 300,\n        // poll: 1000,\n        ignored: /node_modules/\n      },\n      /**\n       * Here you can access the Express app object and add your own custom middleware to it.\n       *\n       * See: https://webpack.js.org/configuration/dev-server/\n       */\n      setup: function(app) {\n        // For example, to define custom handlers for some paths:\n        // app.get('/some/path', function(req, res) {\n        //   res.json({ custom: 'response' });\n        // });\n      }\n    },\n\n    /**\n     * Include polyfills or mocks for various node stuff\n     * Description: Node configuration\n     *\n     * See: https://webpack.js.org/configuration/node/\n     */\n    node: {\n      global: true,\n      crypto: 'empty',\n      process: true,\n      module: false,\n      clearImmediate: false,\n      setImmediate: false,\n      fs: 'empty'\n    }\n  });\n};\n"
  },
  {
    "path": "config/webpack.github-deploy.js",
    "content": "/**\n * @author: tipe.io\n */\nconst fs = require('fs');\nconst path = require('path');\nconst helpers = require('./helpers');\nconst ghDeploy = require('./github-deploy');\nconst webpackMerge = require('webpack-merge'); // used to merge webpack configs\n\n/**\n * Webpack Constants\n */\nconst GIT_REMOTE_NAME = 'origin';\nconst COMMIT_MESSAGE = 'Updates';\nconst GH_REPO_NAME = ghDeploy.getRepoName(GIT_REMOTE_NAME);\n\nmodule.exports = function(options) {\n  const webpackConfigFactory = ghDeploy.getWebpackConfigModule(options); // the settings that are common to prod and dev\n  const webpackConfig = webpackConfigFactory(options);\n\n  /**\n   * Replace the instance of HtmlWebpackPlugin with an updated one.\n   */\n  ghDeploy.replaceHtmlWebpackPlugin(webpackConfig.plugins, GH_REPO_NAME);\n\n  return webpackMerge(webpackConfig, {\n\n    output: {\n      /**\n       * The public path is set to the REPO name.\n       *\n       * `HtmlElementsPlugin` will add it to all resources url's created by it.\n       * `HtmlWebpackPlugin` will add it to all webpack bundels/chunks.\n       *\n       * In theory publicPath shouldn't be used since the browser should automatically prefix the\n       * `baseUrl` into all URLs, however this is not the case when the URL is absolute (start with /)\n       *\n       * It's important to prefix & suffix the repo name with a slash (/).\n       * Prefixing so every resource will be absolute (otherwise it will be url.com/repoName/repoName...\n       * Suffixing since chunks will not do it automatically (testes against about page)\n       */\n      publicPath: '/' + GH_REPO_NAME + '/' + ghDeploy.safeUrl(webpackConfig.output.publicPath)\n    },\n\n    plugins: [\n      function() {\n        this.plugin('done', function(stats) {\n          console.log('Starting deployment to GitHub.');\n\n          const logger = function(msg) {\n            console.log(msg);\n          };\n\n          const options = {\n            logger: logger,\n            remote: GIT_REMOTE_NAME,\n            message: COMMIT_MESSAGE,\n            dotfiles: true // for .nojekyll\n          };\n          /**\n           * Since GitHub moved to Jekyll 3.3, their server ignores the \"node_modules\" and \"vendors\" folder by default.\n           * but, as of now, it also ignores \"vendors*\" files.\n           * This means vendor.bundle.js or vendor.[chunk].bundle.js will return 404.\n           * this is the fix for now.\n           */\n          fs.writeFileSync(path.join(webpackConfig.output.path, '.nojekyll'), '');\n\n          const ghpages = require('gh-pages');\n          ghpages.publish(webpackConfig.output.path, options, function(err) {\n            if (err) {\n              console.log('GitHub deployment done. STATUS: ERROR.');\n              throw err;\n            } else {\n              console.log('GitHub deployment done. STATUS: SUCCESS.');\n            }\n          });\n        });\n      }\n    ]\n  });\n};\n"
  },
  {
    "path": "config/webpack.prod.js",
    "content": "/**\n * @author: tipe.io\n */\nconst helpers = require('./helpers');\nconst buildUtils = require('./build-utils');\n\n/**\n * Used to merge webpack configs\n */\nconst webpackMerge = require('webpack-merge');\n\n/**\n * The settings that are common to prod and dev\n */\nconst commonConfig = require('./webpack.common.js');\n\n/**\n * Webpack Plugins\n */\n\nconst MiniCssExtractPlugin = require('mini-css-extract-plugin');\nconst HashedModuleIdsPlugin = require('webpack/lib/HashedModuleIdsPlugin');\nconst UglifyJsPlugin = require('uglifyjs-webpack-plugin');\n\n/***\n * Ref: https://github.com/mishoo/UglifyJS2/tree/harmony#minify-options\n * @param supportES2015\n * @param enableCompress disabling compress could improve the performance, see https://github.com/webpack/webpack/issues/4558#issuecomment-352255789\n * @returns {{ecma: number, warnings: boolean, ie8: boolean, mangle: boolean, compress: {pure_getters: boolean, passes: number}, output: {ascii_only: boolean, comments: boolean}}}\n */\nfunction getUglifyOptions(supportES2015, enableCompress) {\n  const uglifyCompressOptions = {\n    pure_getters: true /* buildOptimizer */,\n    // PURE comments work best with 3 passes.\n    // See https://github.com/webpack/webpack/issues/2899#issuecomment-317425926.\n    passes: 2 /* buildOptimizer */\n  };\n\n  return {\n    ecma: supportES2015 ? 6 : 5,\n    warnings: false, // TODO verbose based on option?\n    ie8: false,\n    mangle: true,\n    compress: enableCompress ? uglifyCompressOptions : false,\n    output: {\n      ascii_only: true,\n      comments: false\n    }\n  };\n}\n\nmodule.exports = function(env) {\n  const ENV = (process.env.NODE_ENV = process.env.ENV = 'production');\n  const supportES2015 = buildUtils.supportES2015(buildUtils.DEFAULT_METADATA.tsConfigPath);\n  const sourceMapEnabled = process.env.SOURCE_MAP === '1';\n  const METADATA = Object.assign({}, buildUtils.DEFAULT_METADATA, {\n    host: process.env.HOST || 'localhost',\n    port: process.env.PORT || 8080,\n    ENV: ENV,\n    HMR: false\n  });\n\n  // set environment suffix so these environments are loaded.\n  METADATA.envFileSuffix = METADATA.E2E ? 'e2e.prod' : 'prod';\n\n  return webpackMerge(commonConfig({ env: ENV, metadata: METADATA }), {\n    mode: 'production',\n\n    devtool: 'source-map',\n\n    /**\n     * Options affecting the output of the compilation.\n     *\n     * See: https://webpack.js.org/configuration/output/\n     */\n    output: {\n      /**\n       * The output directory as absolute path (required).\n       *\n       * See: https://webpack.js.org/configuration/output/#output-path\n       */\n      path: helpers.root('dist'),\n\n      /**\n       * Specifies the name of each output file on disk.\n       * IMPORTANT: You must not specify an absolute path here!\n       *\n       * See: https://webpack.js.org/configuration/output/#output-filename\n       */\n      filename: '[name].[chunkhash].bundle.js',\n\n      /**\n       * The filename of the SourceMaps for the JavaScript files.\n       * They are inside the output.path directory.\n       *\n       * See: https://webpack.js.org/configuration/output/#output-sourcemapfilename\n       */\n      sourceMapFilename: '[file].map',\n\n      /**\n       * The filename of non-entry chunks as relative path\n       * inside the output.path directory.\n       *\n       * See: https://webpack.js.org/configuration/output/#output-chunkfilename\n       */\n      chunkFilename: '[name].[chunkhash].chunk.js'\n    },\n\n    module: {\n      rules: [\n        /**\n         * Extract CSS files from .src/styles directory to external CSS file\n         */\n        {\n          test: /\\.css$/,\n          use: [MiniCssExtractPlugin.loader, 'css-loader'],\n          include: [helpers.root('src', 'styles')]\n        },\n\n        /**\n         * Extract and compile SCSS files from .src/styles directory to external CSS file\n         */\n        {\n          test: /\\.scss$/,\n          use: [MiniCssExtractPlugin.loader, 'css-loader', 'sass-loader'],\n          include: [helpers.root('src', 'styles')]\n        }\n      ]\n    },\n\n    optimization: {\n      minimizer: [\n        /**\n         * Plugin: UglifyJsPlugin\n         * Description: Minimize all JavaScript output of chunks.\n         * Loaders are switched into minimizing mode.\n         *\n         * See: https://webpack.js.org/plugins/uglifyjs-webpack-plugin/\n         *\n         * NOTE: To debug prod builds uncomment //debug lines and comment //prod lines\n         */\n        new UglifyJsPlugin({\n          sourceMap: sourceMapEnabled,\n          parallel: true,\n          cache: helpers.root('webpack-cache/uglify-cache'),\n          uglifyOptions: getUglifyOptions(supportES2015, true)\n        })\n      ],\n      splitChunks: {\n        chunks: 'all'\n      }\n    },\n\n    /**\n     * Add additional plugins to the compiler.\n     *\n     * See: https://webpack.js.org/configuration/plugins/\n     */\n    plugins: [\n      new MiniCssExtractPlugin({ filename: '[name]-[hash].css', chunkFilename: '[name]-[chunkhash].css' }),\n      new HashedModuleIdsPlugin()\n    ],\n\n    /**\n     * Include polyfills or mocks for various node stuff\n     * Description: Node configuration\n     *\n     * See: https://webpack.js.org/configuration/node/\n     */\n    node: {\n      global: true,\n      crypto: 'empty',\n      process: false,\n      module: false,\n      clearImmediate: false,\n      setImmediate: false,\n      fs: 'empty'\n    }\n  });\n};\n"
  },
  {
    "path": "config/webpack.test.js",
    "content": "/**\n * @author: tipe.io\n */\n\nconst helpers = require('./helpers');\n\n/**\n * Webpack Plugins\n */\nconst ProvidePlugin = require('webpack/lib/ProvidePlugin');\nconst DefinePlugin = require('webpack/lib/DefinePlugin');\nconst LoaderOptionsPlugin = require('webpack/lib/LoaderOptionsPlugin');\nconst ContextReplacementPlugin = require('webpack/lib/ContextReplacementPlugin');\n\n/**\n * Webpack Constants\n */\nconst ENV = (process.env.ENV = process.env.NODE_ENV = 'test');\n\n/**\n * Webpack configuration\n *\n * See: https://webpack.js.org/configuration/\n */\nmodule.exports = function(options) {\n  return {\n    mode: 'development',\n    /**\n     * Source map for Karma from the help of karma-sourcemap-loader &  karma-webpack\n     *\n     * Do not change, leave as is or it wont work.\n     * See: https://github.com/webpack/karma-webpack#source-maps\n     */\n    devtool: 'inline-source-map',\n\n    /**\n     * Options affecting the resolving of modules.\n     *\n     * See: https://webpack.js.org/configuration/resolve/\n     */\n    resolve: {\n      /**\n       * An array of extensions that should be used to resolve modules.\n       *\n       * See: https://webpack.js.org/configuration/resolve/#resolve-extensions\n       */\n      extensions: ['.ts', '.js'],\n\n      /**\n       * Make sure root is src\n       */\n      modules: [helpers.root('src'), 'node_modules']\n    },\n\n    /**\n     * Options affecting the normal modules.\n     *\n     * See: https://webpack.js.org/configuration/module/\n     *\n     * 'use:' revered back to 'loader:' as a temp. workaround for #1188\n     * See: https://github.com/gdi2290/angular-starter/issues/1188#issuecomment-262872034\n     */\n    module: {\n      rules: [\n        /**\n         * Source map loader support for *.js files\n         * Extracts SourceMaps for source files that as added as sourceMappingURL comment.\n         *\n         * See: https://github.com/webpack/source-map-loader\n         */\n        {\n          enforce: 'pre',\n          test: /\\.js$/,\n          loader: 'source-map-loader',\n          exclude: [\n            /**\n             * These packages have problems with their sourcemaps\n             */\n            helpers.root('node_modules/@angular')\n          ]\n        },\n\n        /**\n         * Typescript loader support for .ts and Angular 2 async routes via .async.ts\n         *\n         * See: https://github.com/s-panferov/awesome-typescript-loader\n         */\n        {\n          test: /\\.ts$/,\n          use: [\n            {\n              loader: 'awesome-typescript-loader',\n              query: {\n                /**\n                 * Use inline sourcemaps for \"karma-remap-coverage\" reporter\n                 */\n                sourceMap: false,\n                inlineSourceMap: true,\n                compilerOptions: {\n                  /**\n                   * Remove TypeScript helpers to be injected\n                   * below by DefinePlugin\n                   */\n                  removeComments: true\n                }\n              }\n            },\n            'angular2-template-loader'\n          ],\n          exclude: [/\\.e2e\\.ts$/]\n        },\n\n        /**\n         * Raw loader support for *.css files\n         * Returns file content as string\n         *\n         * See: https://github.com/webpack/raw-loader\n         */\n        {\n          test: /\\.css$/,\n          loader: ['to-string-loader', { loader: 'css-loader', options: { url: false } }],\n          exclude: [helpers.root('src/index.html')]\n        },\n\n        /**\n         * Raw loader support for *.scss files\n         *\n         * See: https://github.com/webpack/raw-loader\n         */\n        {\n          test: /\\.scss$/,\n          loader: ['raw-loader', 'sass-loader'],\n          exclude: [helpers.root('src/index.html')]\n        },\n\n        /**\n         * Raw loader support for *.html\n         * Returns file content as string\n         *\n         * See: https://github.com/webpack/raw-loader\n         */\n        {\n          test: /\\.html$/,\n          loader: 'raw-loader',\n          exclude: [helpers.root('src/index.html')]\n        },\n\n        /**\n         * Instruments JS files with Istanbul for subsequent code coverage reporting.\n         * Instrument only testing sources.\n         *\n         * See: https://github.com/deepsweet/istanbul-instrumenter-loader\n         */\n        {\n          enforce: 'post',\n          test: /\\.(js|ts)$/,\n          loader: 'istanbul-instrumenter-loader',\n          include: helpers.root('src'),\n          exclude: [/\\.(e2e|spec)\\.ts$/, /node_modules/]\n        }\n      ]\n    },\n\n    /**\n     * Add additional plugins to the compiler.\n     *\n     * See: https://webpack.js.org/configuration/plugins/\n     */\n    plugins: [\n      /**\n       * Plugin: DefinePlugin\n       * Description: Define free variables.\n       * Useful for having development builds with debug logging or adding global constants.\n       *\n       * Environment helpers\n       *\n       * See: https://webpack.js.org/plugins/define-plugin/\n       *\n       * NOTE: when adding more properties make sure you include them in custom-typings.d.ts\n       */\n      new DefinePlugin({\n        ENV: JSON.stringify(ENV),\n        HMR: false,\n        'process.env': {\n          ENV: JSON.stringify(ENV),\n          NODE_ENV: JSON.stringify(ENV),\n          HMR: false\n        }\n      }),\n\n      /**\n       * Plugin: ContextReplacementPlugin\n       * Description: Provides context to Angular's use of System.import\n       *\n       * See: https://webpack.js.org/plugins/context-replacement-plugin/\n       * See: https://github.com/angular/angular/issues/11580\n       */\n      new ContextReplacementPlugin(\n        /**\n         * The (\\\\|\\/) piece accounts for path separators in *nix and Windows\n         */\n        /\\@angular(\\\\|\\/)core(\\\\|\\/)esm5/,\n        helpers.root('src'), // location of your src\n        {\n          /**\n           * your Angular Async Route paths relative to this root directory\n           */\n        }\n      ),\n\n      /**\n       * Plugin LoaderOptionsPlugin (experimental)\n       *\n       * See: https://gist.github.com/sokra/27b24881210b56bbaff7\n       */\n      new LoaderOptionsPlugin({\n        debug: false,\n        options: {\n          /**\n           * legacy options go here\n           */\n        }\n      })\n    ],\n\n    /**\n     * Disable performance hints\n     *\n     * See: https://github.com/a-tarasyuk/rr-boilerplate/blob/master/webpack/dev.config.babel.js#L41\n     */\n    performance: {\n      hints: false\n    },\n\n    /**\n     * Include polyfills or mocks for various node stuff\n     * Description: Node configuration\n     *\n     * See: https://webpack.js.org/configuration/node/\n     */\n    node: {\n      global: true,\n      crypto: 'empty',\n      process: false,\n      module: false,\n      clearImmediate: false,\n      setImmediate: false,\n      fs: 'empty'\n    }\n  };\n};\n"
  },
  {
    "path": "docker-compose.yml",
    "content": "version: '3'\nservices:\n  angular-starter:\n    build:\n      context: .\n      dockerfile: Dockerfile-dev\n    container_name: angular-starter\n    networks:\n      - angular-starter\n    ports:\n      - '3000:3000'\n    environment:\n     - HOST=0.0.0.0\n    command: npm run start\nnetworks:\n  angular-starter:\n    driver: bridge\n"
  },
  {
    "path": "firebase.json",
    "content": "{\n  \"hosting\": {\n    \"public\": \"dist\",\n    \"rewrites\": [\n      {\n        \"source\": \"**\",\n        \"destination\": \"/index.html\"\n      }\n    ],\n    \"ignore\": [\n      \"firebase.json\",\n      \"**/.*\",\n      \"**/node_modules/**\"\n    ]\n  }\n}"
  },
  {
    "path": "karma.conf.js",
    "content": "/**\n * @author: tipe.io\n */\n\n/**\n * Look in ./config for karma.conf.js\n */\nmodule.exports = require('./config/karma.conf.js');\n"
  },
  {
    "path": "netlify.toml",
    "content": "[build]\n  command = \"npm run build:prod\"\n  publish = \"dist\"\n"
  },
  {
    "path": "package.json",
    "content": "{\n  \"name\": \"angular-starter\",\n  \"version\": \"7.5.0\",\n  \"description\": \"An Angular Webpack Starter kit featuring Angular (Router, Http, Forms, Services, Tests, E2E, Coverage), Karma, Protractor, Jasmine, Istanbul, TypeScript, and Webpack by Tipe.io\",\n  \"keywords\": [\n    \"angular\",\n    \"angular2\",\n    \"angular4\",\n    \"angular5\",\n    \"webpack\",\n    \"typescript\",\n    \"tipe\",\n    \"tipe.io\"\n  ],\n  \"author\": \"Patrick Stapleton <patrick@tipe.io>\",\n  \"homepage\": \"https://github.com/gdi2290/angular-starter\",\n  \"license\": \"MIT\",\n  \"scripts\": {\n    \"build:aot:prod\": \"rimraf dist compiled && cross-env BUILD_AOT=1 SOURCE_MAP=0 npm run webpack -- --config config/webpack.prod.js --progress --profile --bail\",\n    \"build:aot\": \"npm run build:aot:prod\",\n    \"build:aot:dev\": \"cross-env BUILD_AOT=1 npm run build:dev\",\n    \"build:dev\": \"rimraf dist && npm run webpack -- --config config/webpack.dev.js --mode development --progress --profile --trace-deprecation\",\n    \"build:docker\": \"npm run build:prod && docker build -t angular-webpack-starter:latest .\",\n    \"build:prod\": \"rimraf dist && npm run webpack -- --config config/webpack.prod.js --progress --profile --bail\",\n    \"build\": \"npm run build:dev\",\n    \"ci:aot\": \"cross-env BUILD_E2E=1 npm run lint && npm run test:ci && npm run build:aot && npm run e2e\",\n    \"ci:jit\": \"cross-env BUILD_E2E=1 npm run lint && npm run test:ci && npm run build:prod && npm run e2e\",\n    \"ci:nobuild\": \"npm run lint && npm test:ci && npm run e2e\",\n    \"ci:testall\": \"cross-env BUILD_E2E=1 npm run lint && npm run test:ci && npm run build:prod && npm run e2e && npm run build:aot && npm run e2e\",\n    \"ci:travis\": \"cross-env BUILD_E2E=1 npm run lint && npm run test:ci && npm run build:aot && npm run e2e:travis\",\n    \"ci\": \"npm run ci:testall\",\n    \"clean:all\": \"npm run rimraf -- doc coverage dist compiled webpack-cache\",\n    \"clean:cache\": \"npm run rimraf -- webpack-cache\",\n    \"clean:aot\": \"npm run rimraf -- compiled\",\n    \"clean:dist\": \"npm run rimraf -- dist\",\n    \"clean:install\": \"npm set progress=false && npm install\",\n    \"clean\": \"npm cache verify && npm run rimraf -- node_modules doc coverage dist compiled webpack-cache\",\n    \"docker\": \"docker\",\n    \"docs\": \"npm run typedoc -- --options typedoc.json --exclude '**/*.spec.ts' ./src/\",\n    \"docs:compodoc\": \"compodoc -p tsconfig.json\",\n    \"docs:compodoc:serve\": \"compodoc -p tsconfig.json -s\",\n    \"docs:compodoc:serve:watch\": \"compodoc -p tsconfig.json -s -w\",\n    \"e2e:live\": \"npm-run-all -p -r server:prod:ci protractor:live\",\n    \"e2e:travis\": \"npm-run-all -p -r server:prod:ci protractor:delay\",\n    \"e2e\": \"npm-run-all -p -r server:prod:ci protractor\",\n    \"github-deploy:dev\": \"npm run webpack -- --config config/webpack.github-deploy.js --mode development --progress --profile --env.githubDev\",\n    \"github-deploy:prod\": \"npm run webpack -- --config config/webpack.github-deploy.js  --mode production --progress --profile --env.githubProd\",\n    \"github-deploy\": \"npm run github-deploy:dev\",\n    \"lint\": \"npm run tslint \\\"src/**/*.ts\\\"\",\n    \"node\": \"node\",\n    \"postinstall\": \"npm run webdriver:update\",\n    \"postversion\": \"git push && git push --tags\",\n    \"preclean:install\": \"npm run clean\",\n    \"preversion\": \"npm test\",\n    \"protractor\": \"protractor\",\n    \"protractor:delay\": \"sleep 3 && npm run protractor\",\n    \"protractor:live\": \"protractor --elementExplorer\",\n    \"rimraf\": \"rimraf\",\n    \"server:dev:hmr\": \"npm run server:dev -- --hot --hotOnly\",\n    \"server:aot:dev\": \"cross-env BUILD_AOT=1 npm run server:dev\",\n    \"server:dev\": \"npm run webpack-dev-server -- --config config/webpack.dev.js --open --progress --profile --watch --content-base src/\",\n    \"server:prod\": \"http-server dist -c-1 --cors\",\n    \"server:prod:ci\": \"http-server dist -p 3000 -c-1 --cors\",\n    \"server\": \"npm run server:dev\",\n    \"start:prod:hmr\": \"cross-env ANGULAR_CONF_FILE=./config.prod.json npm run server:dev:hmr\",\n    \"start:hmr\": \"npm run server:dev:hmr\",\n    \"start\": \"npm run server:dev\",\n    \"start:aot\": \"npm run server:aot:dev\",\n    \"test\": \"karma start\",\n    \"test:sonar\": \"npm run lint && cross-env SONAR_QUBE=1 karma start\",\n    \"test:ci\": \"karma start --single-run --browsers ChromeTravisCi\",\n    \"tslint\": \"tslint \\\"src/**/*.ts\\\" --project tsconfig.json\",\n    \"typedoc\": \"typedoc\",\n    \"version\": \"npm run build\",\n    \"watch:dev:hmr\": \"npm run watch:dev -- --hot\",\n    \"watch:dev\": \"npm run build:dev -- --watch\",\n    \"watch:aot:dev\": \"npm run build:aot:dev -- --watch\",\n    \"watch:prod\": \"npm run build:prod -- --watch\",\n    \"watch:aot:prod\": \"npm run build:aot:prod -- --watch\",\n    \"watch:test\": \"npm run test -- --auto-watch --no-single-run\",\n    \"watch\": \"npm run watch:dev\",\n    \"webdriver-manager\": \"node ./node_modules/protractor/bin/webdriver-manager\",\n    \"webdriver:start\": \"node ./node_modules/protractor/bin/webdriver-manager start\",\n    \"webdriver:update\": \"node ./node_modules/protractor/bin/webdriver-manager update\",\n    \"webpack-dev-server\": \"node --max_old_space_size=4096 node_modules/webpack-dev-server/bin/webpack-dev-server.js\",\n    \"webpack\": \"node --max_old_space_size=4096 node_modules/webpack/bin/webpack.js\"\n  },\n  \"dependencies\": {\n    \"@angular/animations\": \"^6.0.6\",\n    \"@angular/common\": \"^6.0.6\",\n    \"@angular/compiler\": \"^6.0.6\",\n    \"@angular/core\": \"^6.0.6\",\n    \"@angular/forms\": \"^6.0.6\",\n    \"@angular/platform-browser\": \"^6.0.6\",\n    \"@angular/platform-browser-dynamic\": \"^6.0.6\",\n    \"@angular/platform-server\": \"^6.0.6\",\n    \"@angular/router\": \"^6.0.6\",\n    \"core-js\": \"^2.5.7\",\n    \"http-server\": \"^0.11.1\",\n    \"ie-shim\": \"^0.1.0\",\n    \"reflect-metadata\": \"^0.1.12\",\n    \"rxjs\": \"^6.2.1\",\n    \"zone.js\": \"^0.8.26\"\n  },\n  \"devDependencies\": {\n    \"@angular-devkit/build-optimizer\": \"^0.6.8\",\n    \"@angular/cli\": \"^6.0.8\",\n    \"@angular/compiler-cli\": \"^6.0.6\",\n    \"@angular/language-service\": \"^6.0.6\",\n    \"@compodoc/compodoc\": \"^1.1.3\",\n    \"@ngtools/webpack\": \"^6.0.8\",\n    \"@types/hammerjs\": \"^2.0.35\",\n    \"@types/jasmine\": \"^2.8.8\",\n    \"@types/node\": \"^10.3.5\",\n    \"@types/uglify-js\": \"^3.0.2\",\n    \"@types/webpack\": \"^4.4.2\",\n    \"add-asset-html-webpack-plugin\": \"^2.1.3\",\n    \"angular2-template-loader\": \"^0.6.2\",\n    \"assets-webpack-plugin\": \"^3.8.4\",\n    \"awesome-typescript-loader\": \"^5.2.0\",\n    \"codelyzer\": \"^4.3.0\",\n    \"copy-webpack-plugin\": \"^4.5.1\",\n    \"cross-env\": \"^5.2.0\",\n    \"css-loader\": \"^0.28.11\",\n    \"exports-loader\": \"^0.7.0\",\n    \"expose-loader\": \"^0.7.5\",\n    \"file-loader\": \"^1.1.11\",\n    \"find-root\": \"^1.1.0\",\n    \"gh-pages\": \"^1.2.0\",\n    \"html-webpack-plugin\": \"^3.2.0\",\n    \"imports-loader\": \"^0.8.0\",\n    \"istanbul-instrumenter-loader\": \"^3.0.1\",\n    \"jasmine-core\": \"^3.1.0\",\n    \"karma\": \"^2.0.4\",\n    \"karma-chrome-launcher\": \"^2.2.0\",\n    \"karma-coverage\": \"^1.1.2\",\n    \"karma-jasmine\": \"^1.1.2\",\n    \"karma-mocha-reporter\": \"^2.2.5\",\n    \"karma-remap-coverage\": \"^0.1.5\",\n    \"karma-sourcemap-loader\": \"^0.3.7\",\n    \"karma-webpack\": \"^3.0.0\",\n    \"mini-css-extract-plugin\": \"^0.4.0\",\n    \"node-sass\": \"^4.9.0\",\n    \"npm-run-all\": \"^4.1.3\",\n    \"optimize-js-plugin\": \"^0.0.4\",\n    \"parse5\": \"^5.0.0\",\n    \"protractor\": \"^5.3.2\",\n    \"raw-loader\": \"^0.5.1\",\n    \"rimraf\": \"^2.6.2\",\n    \"rxjs-tslint\": \"^0.1.5\",\n    \"sass-loader\": \"^7.0.3\",\n    \"script-ext-html-webpack-plugin\": \"^2.0.1\",\n    \"source-map-loader\": \"^0.2.3\",\n    \"string-replace-loader\": \"^2.1.1\",\n    \"style-loader\": \"^0.21.0\",\n    \"to-string-loader\": \"^1.1.5\",\n    \"ts-node\": \"^7.0.0\",\n    \"tslib\": \"^1.9.3\",\n    \"tslint\": \"^5.10.0\",\n    \"tslint-loader\": \"^3.6.0\",\n    \"typedoc\": \"^0.11.1\",\n    \"typescript\": \"~2.7.2\",\n    \"uglifyjs-webpack-plugin\": \"^1.2.6\",\n    \"url-loader\": \"^1.0.1\",\n    \"webpack\": \"^4.12.0\",\n    \"webpack-cli\": \"^3.0.8\",\n    \"webpack-dev-middleware\": \"^3.1.3\",\n    \"webpack-dev-server\": \"^3.1.4\",\n    \"webpack-inline-manifest-plugin\": \"^4.0.1\",\n    \"webpack-merge\": \"^4.1.3\"\n  },\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"https://github.com/gdi2290/angular-starter.git\"\n  },\n  \"bugs\": {\n    \"url\": \"https://github.com/gdi2290/angular-starter/issues\"\n  },\n  \"engines\": {\n    \"node\": \">= 8.0.0\",\n    \"npm\": \">= 5\"\n  }\n}\n"
  },
  {
    "path": "protractor.conf.js",
    "content": "/**\n * @author: tipe.io\n */\n\n/**\n * look in ./config for protractor.conf.js\n */\nexports.config = require('./config/protractor.conf.js').config;\n"
  },
  {
    "path": "sonar-project.properties",
    "content": "sonar.projectKey=angular:angular-starter\nsonar.projectName=angular-starter\nsonar.projectVersion=6.0.0\nsonar.sourceEncoding=UTF-8\nsonar.sources=src\nsonar.exclusions=**/node_modules/**,**/*.spec.ts\nsonar.tests=src/app\nsonar.test.inclusions=**/*.spec.ts\n\nsonar.ts.tslint.configPath=tslint.json\nsonar.ts.coverage.lcovReportPath=coverage/coverage.lcov\n# if using local tslint then enable the line below\n# sonar.ts.tslint.outputPath=reports/lint_issues.json\nsonar.genericcoverage.unitTestReportPaths=reports/ut_report.xml\n\n# Change the host.url to point to the \n# sonarcube server (default localhost)\nsonar.host.url=http://localhost:9000"
  },
  {
    "path": "src/app/+barrel/+child-barrel/child-barrel.component.ts",
    "content": "import {\n  Component,\n  OnInit,\n} from '@angular/core';\n/**\n * We're loading this component asynchronously\n * We are using some magic with es6-promise-loader that will wrap the module with a Promise\n * see https://github.com/gdi2290/es6-promise-loader for more info\n */\n\nconsole.log('`ChildBarrel` component loaded asynchronously');\n\n@Component({\n  selector: 'child-barrel',\n  template: `\n    <h1>Hello from Child Barrel</h1>\n  `,\n})\nexport class ChildBarrelComponent implements OnInit {\n\n  public ngOnInit() {\n    console.log('hello `ChildBarrel` component');\n  }\n\n}\n"
  },
  {
    "path": "src/app/+barrel/+child-barrel/child-barrel.module.ts",
    "content": "import { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { NgModule } from '@angular/core';\nimport { RouterModule } from '@angular/router';\n\nimport { routes } from './child-barrel.routes';\nimport { ChildBarrelComponent } from './child-barrel.component';\n\nconsole.log('`ChildBarrel` bundle loaded asynchronously');\n\n@NgModule({\n  declarations: [\n    /**\n     * Components / Directives/ Pipes\n     */\n    ChildBarrelComponent,\n  ],\n  imports: [\n    CommonModule,\n    FormsModule,\n    RouterModule.forChild(routes),\n  ],\n})\nexport class ChildBarrelModule {\n  public static routes = routes;\n}\n"
  },
  {
    "path": "src/app/+barrel/+child-barrel/child-barrel.routes.ts",
    "content": "import { ChildBarrelComponent } from './child-barrel.component';\n\nexport const routes = [\n  { path: '', component: ChildBarrelComponent,  pathMatch: 'full' },\n];\n"
  },
  {
    "path": "src/app/+barrel/+child-barrel/index.ts",
    "content": "export { ChildBarrelModule } from './child-barrel.module';\n"
  },
  {
    "path": "src/app/+barrel/barrel.component.ts",
    "content": "import {\n  Component,\n  OnInit,\n} from '@angular/core';\n/**\n * We're loading this component asynchronously\n * We are using some magic with es6-promise-loader that will wrap the module with a Promise\n * see https://github.com/gdi2290/es6-promise-loader for more info\n */\n\nconsole.log('`Barrel` component loaded asynchronously');\n\n@Component({\n  selector: 'barrel',\n  template: `\n    <h1>Hello from Barrel</h1>\n    <span>\n      <a [routerLink]=\" ['./child-barrel'] \">\n        Child Barrel\n      </a>\n    </span>\n    <router-outlet></router-outlet>\n  `,\n})\nexport class BarrelComponent implements OnInit {\n\n  public ngOnInit() {\n    console.log('hello `Barrel` component');\n  }\n\n}\n"
  },
  {
    "path": "src/app/+barrel/barrel.module.ts",
    "content": "import { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { NgModule } from '@angular/core';\nimport { RouterModule } from '@angular/router';\n\nimport { routes } from './barrel.routes';\nimport { BarrelComponent } from './barrel.component';\n\nconsole.log('`Barrel` bundle loaded asynchronously');\n\n@NgModule({\n  declarations: [\n    /**\n     * Components / Directives/ Pipes\n     */\n    BarrelComponent,\n  ],\n  imports: [\n    CommonModule,\n    FormsModule,\n    RouterModule.forChild(routes),\n  ],\n})\nexport class BarrelModule {\n  public static routes = routes;\n}\n"
  },
  {
    "path": "src/app/+barrel/barrel.routes.ts",
    "content": "import { BarrelComponent } from './barrel.component';\n\nexport const routes = [\n  { path: '', children: [\n    { path: '', component: BarrelComponent },\n    { path: 'child-barrel', loadChildren: './+child-barrel#ChildBarrelModule' }\n  ]},\n];\n"
  },
  {
    "path": "src/app/+barrel/index.ts",
    "content": "export { BarrelModule } from './barrel.module';\n"
  },
  {
    "path": "src/app/+detail/+child-detail/child-detail.component.ts",
    "content": "import {\n  Component,\n  OnInit,\n} from '@angular/core';\n/**\n * We're loading this component asynchronously\n * We are using some magic with es6-promise-loader that will wrap the module with a Promise\n * see https://github.com/gdi2290/es6-promise-loader for more info\n */\n\nconsole.log('`ChildDetail` component loaded asynchronously');\n\n@Component({\n  selector: 'child-detail',\n  template: `\n    <h1>Hello from Child Detail</h1>\n  `,\n})\nexport class ChildDetailComponent implements OnInit {\n\n  public ngOnInit() {\n    console.log('hello `ChildDetail` component');\n  }\n\n}\n"
  },
  {
    "path": "src/app/+detail/+child-detail/child-detail.module.ts",
    "content": "import { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { NgModule } from '@angular/core';\nimport { RouterModule } from '@angular/router';\n\nimport { routes } from './child-detail.routes';\nimport { ChildDetailComponent } from './child-detail.component';\n\nconsole.log('`ChildDetail` bundle loaded asynchronously');\n\n@NgModule({\n  declarations: [\n    /**\n     * Components / Directives/ Pipes\n     */\n    ChildDetailComponent,\n  ],\n  imports: [\n    CommonModule,\n    FormsModule,\n    RouterModule.forChild(routes),\n  ],\n})\nexport class ChildDetailModule {\n  public static routes = routes;\n}\n"
  },
  {
    "path": "src/app/+detail/+child-detail/child-detail.routes.ts",
    "content": "import { ChildDetailComponent } from './child-detail.component';\n\nexport const routes = [\n  { path: '', component: ChildDetailComponent,  pathMatch: 'full' },\n];\n"
  },
  {
    "path": "src/app/+detail/+child-detail/index.ts",
    "content": "export { ChildDetailModule } from './child-detail.module';\n"
  },
  {
    "path": "src/app/+detail/detail.component.ts",
    "content": "import {\n  Component,\n  OnInit,\n} from '@angular/core';\n/**\n * We're loading this component asynchronously\n * We are using some magic with es6-promise-loader that will wrap the module with a Promise\n * see https://github.com/gdi2290/es6-promise-loader for more info\n */\n\nconsole.log('`Detail` component loaded asynchronously');\n\n@Component({\n  selector: 'detail',\n  template: `\n    <h1>Hello from Detail</h1>\n    <span>\n      <a [routerLink]=\" ['./child-detail'] \">\n        Child Detail\n      </a>\n    </span>\n    <router-outlet></router-outlet>\n  `,\n})\nexport class DetailComponent implements OnInit {\n\n  public ngOnInit() {\n    console.log('hello `Detail` component');\n  }\n\n}\n"
  },
  {
    "path": "src/app/+detail/detail.module.ts",
    "content": "import { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { NgModule } from '@angular/core';\nimport { RouterModule } from '@angular/router';\n\nimport { routes } from './detail.routes';\nimport { DetailComponent } from './detail.component';\n\nconsole.log('`Detail` bundle loaded asynchronously');\n\n@NgModule({\n  declarations: [\n    /**\n     * Components / Directives/ Pipes\n     */\n    DetailComponent,\n  ],\n  imports: [\n    CommonModule,\n    FormsModule,\n    RouterModule.forChild(routes),\n  ],\n})\nexport class DetailModule {\n  public static routes = routes;\n}\n"
  },
  {
    "path": "src/app/+detail/detail.routes.ts",
    "content": "import { DetailComponent } from './detail.component';\n\nexport const routes = [\n  { path: '', children: [\n    { path: '', component: DetailComponent },\n    { path: 'child-detail', loadChildren: './+child-detail#ChildDetailModule' }\n  ]},\n];\n"
  },
  {
    "path": "src/app/+detail/index.ts",
    "content": "export { DetailModule } from './detail.module';\n"
  },
  {
    "path": "src/app/+dev-module/dev-module.component.ts",
    "content": "import { Component, OnInit } from '@angular/core';\n\n@Component({\n  selector: 'dev-module',\n  template: `\n    <h1>Hello from DevModule Component</h1>\n  `,\n})\nexport class DevModuleComponent implements OnInit {\n\n  public ngOnInit() {\n    console.log('hello `DevModule` component');\n  }\n\n}\n"
  },
  {
    "path": "src/app/+dev-module/dev-module.module.ts",
    "content": "import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { RouterModule } from '@angular/router';\n\nimport { routes } from './dev-module.routes';\nimport { DevModuleComponent } from './dev-module.component';\n\n/*\n      Don't leave side-effects outside of classes so this will tree-shake nicely on prod\n      e.g. `console.log('something')` is a side effect.\n*/\n@NgModule({\n  declarations: [ DevModuleComponent ],\n  imports: [\n    CommonModule,\n    RouterModule.forChild(routes),\n  ],\n})\nexport class DevModuleModule {\n  public static routes = routes;\n  constructor() {\n    console.log('`DevModuleModule` module initialized');\n  }\n}\n"
  },
  {
    "path": "src/app/+dev-module/dev-module.routes.ts",
    "content": "import { DevModuleComponent } from './dev-module.component';\n\nexport const routes = [\n  { path: 'dev-module', component: DevModuleComponent }\n];\n"
  },
  {
    "path": "src/app/+dev-module/index.ts",
    "content": "export { DevModuleModule } from './dev-module.module';\n"
  },
  {
    "path": "src/app/about/about.component.spec.ts",
    "content": "import { ActivatedRoute, Data } from '@angular/router';\nimport { Component } from '@angular/core';\nimport { inject, TestBed } from '@angular/core/testing';\n\n/**\n * Load the implementations that should be tested.\n */\nimport { AboutComponent } from './about.component';\n\ndescribe('About', () => {\n  /**\n   * Provide our implementations or mocks to the dependency injector\n   */\n  beforeEach(() => TestBed.configureTestingModule({\n    providers: [\n      /**\n       * Provide a better mock.\n       */\n      {\n        provide: ActivatedRoute,\n        useValue: {\n          data: {\n            subscribe: (fn: (value: Data) => void) => fn({\n              yourData: 'yolo'\n            })\n          }\n        }\n      },\n      AboutComponent\n    ]\n  }));\n\n  it('should log ngOnInit', inject([AboutComponent], (about: AboutComponent) => {\n    spyOn(console, 'log');\n    expect(console.log).not.toHaveBeenCalled();\n\n    about.ngOnInit();\n    expect(console.log).toHaveBeenCalled();\n  }));\n\n});\n"
  },
  {
    "path": "src/app/about/about.component.ts",
    "content": "import {\n  Component,\n  OnInit\n} from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\n\n@Component({\n  selector: 'about',\n  styles: [`\n  `],\n  template: `\n    <h1>About</h1>\n    <div>\n      For hot module reloading run\n      <pre>npm run start:hmr</pre>\n    </div>\n    <div>\n      <h3>\n        patrick@tipe.io\n      </h3>\n    </div>\n    <pre>this.localState = {{ localState | json }}</pre>\n  `\n})\nexport class AboutComponent implements OnInit {\n\n  public localState: any;\n  constructor(\n    public route: ActivatedRoute\n  ) {}\n\n  public ngOnInit() {\n    this.route\n      .data\n      .subscribe((data: any) => {\n        /**\n         * Your resolved data from route.\n         */\n        this.localState = data.yourData;\n      });\n\n    console.log('hello `About` component');\n    /**\n     * static data that is bundled\n     * var mockData = require('assets/mock-data/mock-data.json');\n     * console.log('mockData', mockData);\n     * if you're working with mock data you can also use http.get('assets/mock-data/mock-data.json')\n     */\n    this.asyncDataWithWebpack();\n  }\n  private asyncDataWithWebpack() {\n    /**\n     * you can also async load mock data with 'es6-promise-loader'\n     * you would do this if you don't want the mock-data bundled\n     * remember that 'es6-promise-loader' is a promise\n     */\n    setTimeout(() => {\n\n      import('../../assets/mock-data/mock-data.json')\n        .then((json) => {\n          console.log('async mockData', json);\n          this.localState = json;\n        });\n\n    });\n  }\n\n}\n"
  },
  {
    "path": "src/app/about/index.ts",
    "content": "export * from './about.component';\n"
  },
  {
    "path": "src/app/app.component.css",
    "content": "html, body{\n  height: 100%;\n  font-family: Arial, Helvetica, sans-serif\n}\n\na.active {\n  background-color: gray;\n}\n"
  },
  {
    "path": "src/app/app.component.spec.ts",
    "content": "import { NO_ERRORS_SCHEMA } from '@angular/core';\nimport {\n  inject,\n  async,\n  TestBed,\n  ComponentFixture\n} from '@angular/core/testing';\n\n/**\n * Load the implementations that should be tested\n */\nimport { AppComponent } from './app.component';\nimport { AppState } from './app.service';\n\ndescribe(`App`, () => {\n  let comp: AppComponent;\n  let fixture: ComponentFixture<AppComponent>;\n\n  /**\n   * async beforeEach\n   */\n  beforeEach(async(() => {\n    TestBed.configureTestingModule({\n      declarations: [ AppComponent ],\n      schemas: [NO_ERRORS_SCHEMA],\n      providers: [AppState]\n    })\n    /**\n     * Compile template and css\n     */\n    .compileComponents();\n  }));\n\n  /**\n   * Synchronous beforeEach\n   */\n  beforeEach(() => {\n    fixture = TestBed.createComponent(AppComponent);\n    comp    = fixture.componentInstance;\n\n    /**\n     * Trigger initial data binding\n     */\n    fixture.detectChanges();\n  });\n\n  it(`should be readly initialized`, () => {\n    expect(fixture).toBeDefined();\n    expect(comp).toBeDefined();\n  });\n\n  it(`should be @TipeIO`, () => {\n    expect(comp.twitter).toEqual('https://twitter.com/gdi2290');\n    expect(comp.tipe).toEqual('assets/img/tipe.png');\n    expect(comp.name).toEqual('Angular Starter');\n  });\n\n  it('should log ngOnInit', () => {\n    spyOn(console, 'log');\n    expect(console.log).not.toHaveBeenCalled();\n\n    comp.ngOnInit();\n    expect(console.log).toHaveBeenCalled();\n  });\n\n});\n"
  },
  {
    "path": "src/app/app.component.ts",
    "content": "/**\n * Angular 2 decorators and services\n */\nimport { Component, OnInit, ViewEncapsulation } from '@angular/core';\nimport { environment } from 'environments/environment';\nimport { AppState } from './app.service';\n\nexport const ROOT_SELECTOR = 'app';\n\n/**\n * App Component\n * Top Level Component\n */\n@Component({\n  selector: ROOT_SELECTOR,\n  encapsulation: ViewEncapsulation.None,\n  styleUrls: [\n    './app.component.css'\n  ],\n  template: `\n    <nav>\n      <a [routerLink]=\" ['./'] \"\n        routerLinkActive=\"active\" [routerLinkActiveOptions]= \"{exact: true}\">\n        Index\n      </a>\n      <a [routerLink]=\" ['./home'] \"\n        routerLinkActive=\"active\" [routerLinkActiveOptions]= \"{exact: true}\">\n        Home\n      </a>\n      <a [routerLink]=\" ['./detail'] \"\n        routerLinkActive=\"active\" [routerLinkActiveOptions]= \"{exact: true}\">\n        Detail\n      </a>\n      <a [routerLink]=\" ['./barrel'] \"\n        routerLinkActive=\"active\" [routerLinkActiveOptions]= \"{exact: true}\">\n        Barrel\n      </a>\n      <a [routerLink]=\" ['./about'] \"\n        routerLinkActive=\"active\" [routerLinkActiveOptions]= \"{exact: true}\">\n        About\n      </a>\n      <a *ngIf=\"showDevModule\" [routerLink]=\" ['./dev-module'] \"\n         routerLinkActive=\"active\" [routerLinkActiveOptions]= \"{exact: true}\">\n        DevModule\n      </a>\n    </nav>\n\n    <main>\n      <router-outlet></router-outlet>\n    </main>\n\n    <pre class=\"app-state\">this.appState.state = {{ appState.state | json }}</pre>\n\n    <footer>\n      <span>Angular Starter by <a [href]=\"twitter\">@gdi2290</a></span>\n      <div>\n        <a [href]=\"url\">\n          <img [src]=\"tipe\" width=\"25%\">\n        </a>\n      </div>\n    </footer>\n  `\n})\nexport class AppComponent implements OnInit {\n  public name = 'Angular Starter';\n  public tipe = 'assets/img/tipe.png';\n  public twitter = 'https://twitter.com/gdi2290';\n  public url = 'https://tipe.io';\n  public showDevModule: boolean = environment.showDevModule;\n\n  constructor(\n    public appState: AppState\n  ) {}\n\n  public ngOnInit() {\n    console.log('Initial App State', this.appState.state);\n  }\n\n}\n\n/**\n * Please review the https://github.com/AngularClass/angular-examples/ repo for\n * more angular app examples that you may copy/paste\n * (The examples may not be updated as quickly. Please open an issue on github for us to update it)\n * For help or questions please contact us at @AngularClass on twitter\n * or our chat on Slack at https://AngularClass.com/slack-join\n */\n"
  },
  {
    "path": "src/app/app.e2e.ts",
    "content": "import { browser, by, element } from 'protractor';\nimport 'tslib';\n\ndescribe('App', () => {\n\n  beforeEach(async () => {\n    await browser.get('/');\n  });\n\n  it('should have a title', async () => {\n    const subject = await browser.getTitle();\n    const result  = 'Angular Starter by @gdi2290 from @TipeIO';\n    expect(subject).toEqual(result);\n  });\n\n  it('should have header', async () => {\n    const subject = await element(by.css('h1')).isPresent();\n    const result  = true;\n    expect(subject).toEqual(result);\n  });\n\n  it('should have <home>', async () => {\n    const subject = await element(by.css('app home')).isPresent();\n    const result  = true;\n    expect(subject).toEqual(result);\n  });\n\n  it('should have buttons', async () => {\n    const subject = await element(by.css('button')).getText();\n    const result  = 'Submit Value';\n    expect(subject).toEqual(result);\n  });\n\n});\n"
  },
  {
    "path": "src/app/app.module.ts",
    "content": "import { NgModule } from '@angular/core';\nimport { BrowserModule } from '@angular/platform-browser';\nimport { FormsModule } from '@angular/forms';\nimport { HttpClientModule } from '@angular/common/http';\nimport { RouterModule, PreloadAllModules } from '@angular/router';\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\n\n/*\n * Platform and Environment providers/directives/pipes\n */\nimport { environment } from 'environments/environment';\nimport { ROUTES } from './app.routes';\n// App is our top level component\nimport { AppComponent } from './app.component';\nimport { APP_RESOLVER_PROVIDERS } from './app.resolver';\nimport { AppState, InternalStateType } from './app.service';\nimport { HomeComponent } from './home';\nimport { AboutComponent } from './about';\nimport { NoContentComponent } from './no-content';\nimport { XLargeDirective } from './home/x-large';\nimport { DevModuleModule } from './+dev-module';\n\nimport '../styles/styles.scss';\nimport '../styles/headings.css';\n\n// Application wide providers\nconst APP_PROVIDERS = [\n  ...APP_RESOLVER_PROVIDERS,\n  AppState\n];\n\ninterface StoreType {\n  state: InternalStateType;\n  restoreInputValues: () => void;\n  disposeOldHosts: () => void;\n}\n\n/**\n * `AppModule` is the main entry point into Angular2's bootstraping process\n */\n@NgModule({\n  bootstrap: [ AppComponent ],\n  declarations: [\n    AppComponent,\n    AboutComponent,\n    HomeComponent,\n    NoContentComponent,\n    XLargeDirective\n  ],\n  /**\n   * Import Angular's modules.\n   */\n  imports: [\n    BrowserModule,\n    BrowserAnimationsModule,\n    FormsModule,\n    HttpClientModule,\n    RouterModule.forRoot(ROUTES, {\n      useHash: Boolean(history.pushState) === false,\n      preloadingStrategy: PreloadAllModules\n    }),\n\n    /**\n     * This section will import the `DevModuleModule` only in certain build types.\n     * When the module is not imported it will get tree shaked.\n     * This is a simple example, a big app should probably implement some logic\n     */\n    ...environment.showDevModule ? [ DevModuleModule ] : [],\n  ],\n  /**\n   * Expose our Services and Providers into Angular's dependency injection.\n   */\n  providers: [\n    environment.ENV_PROVIDERS,\n    APP_PROVIDERS\n  ]\n})\nexport class AppModule {}\n"
  },
  {
    "path": "src/app/app.resolver.ts",
    "content": "import { Resolve, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';\nimport { Injectable } from '@angular/core';\nimport { of } from 'rxjs';\n\n@Injectable()\nexport class DataResolver implements Resolve<any> {\n  public resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) {\n    return of({ res: 'I am data'});\n  }\n}\n\n/**\n * An array of services to resolve routes with data.\n */\nexport const APP_RESOLVER_PROVIDERS = [\n  DataResolver\n];\n"
  },
  {
    "path": "src/app/app.routes.ts",
    "content": "import { Routes } from '@angular/router';\nimport { HomeComponent } from './home';\nimport { AboutComponent } from './about';\nimport { NoContentComponent } from './no-content';\n\nexport const ROUTES: Routes = [\n  { path: '',      component: HomeComponent },\n  { path: 'home',  component: HomeComponent },\n  { path: 'about', component: AboutComponent },\n  { path: 'detail', loadChildren: './+detail#DetailModule'},\n  { path: 'barrel', loadChildren: './+barrel#BarrelModule'},\n  { path: '**',    component: NoContentComponent },\n];\n"
  },
  {
    "path": "src/app/app.service.ts",
    "content": "import { Injectable } from '@angular/core';\n\nexport interface InternalStateType {\n  [key: string]: any;\n}\n\n@Injectable()\nexport class AppState {\n\n  public _state: InternalStateType = { };\n\n  /**\n   * Already return a clone of the current state.\n   */\n  public get state() {\n    return this._state = this._clone(this._state);\n  }\n  /**\n   * Never allow mutation\n   */\n  public set state(value) {\n    throw new Error('do not mutate the `.state` directly');\n  }\n\n  public get(prop?: any) {\n    /**\n     * Use our state getter for the clone.\n     */\n    const state = this.state;\n    return state.hasOwnProperty(prop) ? state[prop] : state;\n  }\n\n  public set(prop: string, value: any) {\n    /**\n     * Internally mutate our state.\n     */\n    return this._state[prop] = value;\n  }\n\n  private _clone(object: InternalStateType) {\n    /**\n     * Simple object clone.\n     */\n    return JSON.parse(JSON.stringify( object ));\n  }\n}\n"
  },
  {
    "path": "src/app/home/home.component.css",
    "content": "/*styles for home content only*/"
  },
  {
    "path": "src/app/home/home.component.html",
    "content": "<div>\n  <h1 x-large class=\"sample-content\">Your Content Here</h1>\n\n  <hr>\n\n  <div>\n    For hot module reloading run\n    <pre>npm run start:hmr</pre>\n  </div>\n\n  <hr>\n\n  <div>\n    <h4>Local State</h4>\n\n    <form (ngSubmit)=\"submitState(localState.value)\" autocomplete=\"off\">\n\n      <input\n        [value]=\"localState.value\"\n        (input)=\"localState.value = $event.target.value\"\n        placeholder=\"Submit Local State to App State\"\n        autofocus>\n\n      <button>Submit Value</button>\n    </form>\n    <!--\n        <input type=\"text\" [value]=\"localState.value\" (input)=\"localState.value = $event.target.value\" autofocus>\n        Rather than wiring up two-way data-binding ourselves with [value] and (input)\n        we can use Angular's [(ngModel)] syntax\n        <input type=\"text\" name=\"textInput\" [(ngModel)]=\"localState.value\" autofocus>\n      -->\n\n    <pre>this.localState = {{ localState | json }}</pre>\n\n  </div>\n\n</div>\n"
  },
  {
    "path": "src/app/home/home.component.spec.ts",
    "content": "import { NO_ERRORS_SCHEMA } from '@angular/core';\nimport {\n  inject,\n  async,\n  TestBed,\n  ComponentFixture,\n  getTestBed\n} from '@angular/core/testing';\nimport { Component } from '@angular/core';\nimport { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';\n\n/**\n * Load the implementations that should be tested.\n */\nimport { AppState } from '../app.service';\nimport { HomeComponent } from './home.component';\nimport { Title } from './title';\n\ndescribe(`Home`, () => {\n  let comp: HomeComponent;\n  let fixture: ComponentFixture<HomeComponent>;\n  let injector: TestBed;\n  let service: AppState;\n  let httpMock: HttpTestingController;\n\n  /**\n   * async beforeEach.\n   */\n  beforeEach(async(() => {\n    TestBed.configureTestingModule({\n      declarations: [HomeComponent],\n      schemas: [NO_ERRORS_SCHEMA],\n      imports: [HttpClientTestingModule],\n      providers: [AppState, Title]\n    })\n\n      /**\n       * Compile template and css.\n       */\n      .compileComponents();\n    injector = getTestBed();\n    service = injector.get(AppState);\n    httpMock = injector.get(HttpTestingController);\n  }));\n\n  /**\n   * Synchronous beforeEach.\n   */\n  beforeEach(() => {\n    fixture = TestBed.createComponent(HomeComponent);\n    comp = fixture.componentInstance;\n\n    /**\n     * Trigger initial data binding.\n     */\n    fixture.detectChanges();\n  });\n\n  it('should have default data', () => {\n    expect(comp.localState).toEqual({ value: '' });\n  });\n\n  it('should have a title', () => {\n    expect(!!comp.title).toEqual(true);\n  });\n\n  it('should log ngOnInit', () => {\n    spyOn(console, 'log');\n    expect(console.log).not.toHaveBeenCalled();\n\n    comp.ngOnInit();\n    expect(console.log).toHaveBeenCalled();\n  });\n\n});\n"
  },
  {
    "path": "src/app/home/home.component.ts",
    "content": "import {\n  Component,\n  OnInit\n} from '@angular/core';\n\nimport { AppState } from '../app.service';\nimport { Title } from './title';\nimport { XLargeDirective } from './x-large';\n\n@Component({\n  /**\n   * The selector is what angular internally uses\n   * for `document.querySelectorAll(selector)` in our index.html\n   * where, in this case, selector is the string 'home'.\n   */\n  selector: 'home',  // <home></home>\n  /**\n   * We need to tell Angular's Dependency Injection which providers are in our app.\n   */\n  providers: [\n    Title\n  ],\n  /**\n   * Our list of styles in our component. We may add more to compose many styles together.\n   */\n  styleUrls: [ './home.component.css' ],\n  /**\n   * Every Angular template is first compiled by the browser before Angular runs it's compiler.\n   */\n  templateUrl: './home.component.html'\n})\nexport class HomeComponent implements OnInit {\n  /**\n   * Set our default values\n   */\n  public localState = { value: '' };\n  /**\n   * TypeScript public modifiers\n   */\n  constructor(\n    public appState: AppState,\n    public title: Title\n  ) {}\n\n  public ngOnInit() {\n    console.log('hello `Home` component');\n    /**\n     * this.title.getData().subscribe(data => this.data = data);\n     */\n  }\n\n  public submitState(value: string) {\n    console.log('submitState', value);\n    this.appState.set('value', value);\n    this.localState.value = '';\n  }\n}\n"
  },
  {
    "path": "src/app/home/home.e2e.ts",
    "content": "import { browser, by, element } from 'protractor';\nimport 'tslib';\n\ndescribe('Home', () => {\n\n  beforeEach(async () => {\n    /**\n     * Change hash depending on router LocationStrategy.\n     */\n    await browser.get('/');\n    await element(by.linkText('Home')).click();\n  });\n\n  it('should have a title', async () => {\n    const subject = await browser.getTitle();\n    const result  = 'Angular Starter by @gdi2290 from @TipeIO';\n    expect(subject).toEqual(result);\n  });\n\n  it('should have `your content here` x-large', async () => {\n    const subject = await element(by.css('[x-large]')).getText();\n    const result  = 'Your Content Here';\n    expect(subject).toEqual(result);\n  });\n\n});\n"
  },
  {
    "path": "src/app/home/index.ts",
    "content": "export * from './home.component';\n"
  },
  {
    "path": "src/app/home/title/index.ts",
    "content": "export * from './title.service';\n"
  },
  {
    "path": "src/app/home/title/title.service.spec.ts",
    "content": "import {\n  inject,\n  async,\n  TestBed,\n  ComponentFixture,\n  getTestBed\n} from '@angular/core/testing';\nimport { Component } from '@angular/core';\nimport { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';\nimport { Title } from './title.service';\n\ndescribe('Title', () => {\n  beforeEach(() => {\n    TestBed.configureTestingModule({\n      imports: [HttpClientTestingModule],\n      providers: [Title]\n    });\n  });\n\n  it('should have http', inject([Title], (title: Title) => {\n    expect(!!title.http).toEqual(true);\n  }));\n\n  it('should get data from the server', inject([Title], (title: Title) => {\n    spyOn(console, 'log');\n    expect(console.log).not.toHaveBeenCalled();\n\n    title.getData();\n    expect(console.log).toHaveBeenCalled();\n    title.getData().subscribe( (result) => {\n      expect(result).toEqual({ value: 'AngularClass' });\n    });\n  }));\n\n});\n"
  },
  {
    "path": "src/app/home/title/title.service.ts",
    "content": "import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\n\n@Injectable()\nexport class Title {\n\n  public value = 'Angular 2';\n\n  constructor(\n    public http: HttpClient\n  ) { }\n\n  public getData() {\n    console.log('Title#getData(): Get Data');\n    return this.http.get('/assets/data.json');\n  }\n\n}\n"
  },
  {
    "path": "src/app/home/x-large/index.ts",
    "content": "export * from './x-large.directive';\n"
  },
  {
    "path": "src/app/home/x-large/x-large.directive.spec.ts",
    "content": "import { By } from '@angular/platform-browser';\nimport {\n  inject,\n  fakeAsync,\n  tick,\n  async,\n  TestBed,\n  ComponentFixture,\n  getTestBed\n} from '@angular/core/testing';\nimport { Component } from '@angular/core';\nimport { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';\n\n/**\n * Load the implementations that should be tested.\n */\nimport { XLargeDirective } from './x-large.directive';\n\ndescribe('x-large directive', () => {\n  /**\n   * Create a test component to test directives.\n   */\n  @Component({\n    template: '<div x-large>Content</div>'\n  })\n  class TestComponent { }\n\n  beforeEach(() => {\n    TestBed.configureTestingModule({\n      declarations: [\n        XLargeDirective,\n        TestComponent\n      ]\n    });\n  });\n\n  it('should sent font-size to x-large', fakeAsync(() => {\n    TestBed.compileComponents().then(() => {\n\n      const fixture = TestBed.createComponent(TestComponent);\n      fixture.detectChanges();\n      tick();\n      const element = fixture.debugElement.query(By.css('div'));\n\n      expect(element.nativeElement.style.fontSize).toBe('x-large');\n\n    });\n  }));\n\n});\n"
  },
  {
    "path": "src/app/home/x-large/x-large.directive.ts",
    "content": "import {\n  Component,\n  Directive,\n  ElementRef,\n  Renderer\n} from '@angular/core';\n/**\n * Directive\n * XLarge is a simple directive to show how one is made\n */\n@Directive({\n  // tslint:disable-next-line:directive-selector\n  selector: '[x-large]' // using [ ] means selecting attributes\n})\nexport class XLargeDirective {\n  constructor(\n    public element: ElementRef,\n    public renderer: Renderer\n  ) {\n    /**\n     * Simple DOM manipulation to set font size to x-large\n     * `nativeElement` is the direct reference to the DOM element\n     * element.nativeElement.style.fontSize = 'x-large';\n     *\n     * for server/webworker support use the renderer\n     */\n     renderer.setElementStyle(element.nativeElement, 'fontSize', 'x-large');\n  }\n}\n"
  },
  {
    "path": "src/app/index.ts",
    "content": "/**\n * App\n */\nexport * from './app.module';\n"
  },
  {
    "path": "src/app/no-content/index.ts",
    "content": "export * from './no-content.component';\n"
  },
  {
    "path": "src/app/no-content/no-content.component.ts",
    "content": "import { Component } from '@angular/core';\n\n@Component({\n  selector: 'no-content',\n  template: `\n    <div>\n      <h1>404: page missing</h1>\n    </div>\n  `\n})\nexport class NoContentComponent {\n\n}\n"
  },
  {
    "path": "src/assets/css/.gitkeep",
    "content": "@AngularClass\n"
  },
  {
    "path": "src/assets/data.json",
    "content": "{\n  \"value\": \"AngularClass\"\n}\n"
  },
  {
    "path": "src/assets/humans.txt",
    "content": "# humanstxt.org/\n# The humans responsible & technology colophon\n\n# TEAM\n\n  <name> -- <role> -- <twitter>\n\n# THANKS\n\n  <name>\n  PatrickJS -- @gdi2290\n  AngularClass -- @AngularClass\n\n# TECHNOLOGY COLOPHON\n\n  HTML5, CSS3\n  Angular2, TypeScript, Webpack\n"
  },
  {
    "path": "src/assets/icon/browserconfig.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<browserconfig><msapplication><tile><square70x70logo src=\"/ms-icon-70x70.png\"/><square150x150logo src=\"/ms-icon-150x150.png\"/><square310x310logo src=\"/ms-icon-310x310.png\"/><TileColor>#ffffff</TileColor></tile></msapplication></browserconfig>"
  },
  {
    "path": "src/assets/manifest.json",
    "content": "{\n \"name\": \"App\",\n \"icons\": [\n  {\n   \"src\": \"/assets/icon/android-icon-36x36.png\",\n   \"sizes\": \"36x36\",\n   \"type\": \"image/png\"\n  },\n  {\n   \"src\": \"/assets/icon/android-icon-48x48.png\",\n   \"sizes\": \"48x48\",\n   \"type\": \"image/png\"\n  },\n  {\n   \"src\": \"/assets/icon/android-icon-72x72.png\",\n   \"sizes\": \"72x72\",\n   \"type\": \"image/png\"\n  },\n  {\n   \"src\": \"/assets/icon/android-icon-96x96.png\",\n   \"sizes\": \"96x96\",\n   \"type\": \"image/png\"\n  },\n  {\n   \"src\": \"/assets/icon/android-icon-144x144.png\",\n   \"sizes\": \"144x144\",\n   \"type\": \"image/png\"\n  },\n  {\n   \"src\": \"/assets/icon/android-icon-192x192.png\",\n   \"sizes\": \"192x192\",\n   \"type\": \"image/png\"\n  }\n ]\n}\n"
  },
  {
    "path": "src/assets/mock-data/mock-data.json",
    "content": "[\n  {\"res\": \"data\"}\n]\n"
  },
  {
    "path": "src/assets/robots.txt",
    "content": "# robotstxt.org\n\nUser-agent: *\n"
  },
  {
    "path": "src/assets/service-worker.js",
    "content": "// This file is intentionally without code.\n"
  },
  {
    "path": "src/custom-typings.d.ts",
    "content": "/*\n * Custom Type Definitions\n * When including 3rd party modules you also need to include the type definition for the module\n * if they don't provide one within the module. You can try to install it with @types\n\nnpm install @types/node\nnpm install @types/lodash\n\n * If you can't find the type definition in the registry we can make an ambient/global definition in\n * this file for now. For example\n\ndeclare module 'my-module' {\n export function doesSomething(value: string): string;\n}\n\n * If you are using a CommonJS module that is using module.exports then you will have to write your\n * types using export = yourObjectOrFunction with a namespace above it\n * notice how we have to create a namespace that is equal to the function we're\n * assigning the export to\n\ndeclare module 'jwt-decode' {\n  function jwtDecode(token: string): any;\n  namespace jwtDecode {}\n  export = jwtDecode;\n}\n\n *\n * If you're prototying and you will fix the types later you can also declare it as type any\n *\n\ndeclare var assert: any;\ndeclare var _: any;\ndeclare var $: any;\n\n *\n * If you're importing a module that uses Node.js modules which are CommonJS you need to import as\n * in the files such as main.browser.ts or any file within app/\n *\n\nimport * as _ from 'lodash'\n\n * You can include your type definitions in this file until you create one for the @types\n *\n */\n\n// support NodeJS modules without type definitions\ndeclare module '*';\n\n/*\n// for legacy tslint etc to understand rename 'modern-lru' with your package\n// then comment out `declare module '*';`. For each new module copy/paste\n// this method of creating an `any` module type definition\ndeclare module 'modern-lru' {\n  let x: any;\n  export = x;\n}\n*/\n\n// Extra variables that live on Global that will be replaced by webpack DefinePlugin\ndeclare var ENV: string;\ndeclare var HMR: boolean;\ndeclare var System: SystemJS;\n// declare const FIREBASE_CONFIG: FirebaseConfig;\n\ninterface FirebaseConfig {\n  apiKey: string;\n  authDomain: string;\n  databaseURL: string;\n  projectId: string;\n  storageBucket: string;\n  messagingSenderId: string;\n}\n\ninterface SystemJS {\n  import: (path?: string) => Promise<any>;\n}\n\ninterface GlobalEnvironment {\n  ENV: string;\n  HMR: boolean;\n  SystemJS: SystemJS;\n  System: SystemJS;\n  // FIREBASE_CONFIG: FirebaseConfig;\n}\n\ninterface Es6PromiseLoader {\n  (id: string): (exportName?: string) => Promise<any>;\n}\n\ntype FactoryEs6PromiseLoader = () => Es6PromiseLoader;\ntype FactoryPromise = () => Promise<any>;\n\ntype AsyncRoutes = {\n  [component: string]: Es6PromiseLoader |\n                               Function |\n                FactoryEs6PromiseLoader |\n                         FactoryPromise ;\n};\n\ntype IdleCallbacks = Es6PromiseLoader |\n                             Function |\n              FactoryEs6PromiseLoader |\n                       FactoryPromise ;\n\ninterface WebpackModule {\n  hot: {\n    data?: any,\n    idle: any,\n    accept(dependencies?: string | string[], callback?: (updatedDependencies?: any) => void): void;\n    decline(deps?: any | string | string[]): void;\n    dispose(callback?: (data?: any) => void): void;\n    addDisposeHandler(callback?: (data?: any) => void): void;\n    removeDisposeHandler(callback?: (data?: any) => void): void;\n    check(autoApply?: any, callback?: (err?: Error, outdatedModules?: any[]) => void): void;\n    apply(options?: any, callback?: (err?: Error, outdatedModules?: any[]) => void): void;\n    status(callback?: (status?: string) => void): void | string;\n    removeStatusHandler(callback?: (status?: string) => void): void;\n  };\n}\n\ninterface WebpackRequire {\n    (id: string): any;\n    (paths: string[], callback: (...modules: any[]) => void): void;\n    ensure(ids: string[], callback: (req: WebpackRequire) => void, chunkName?: string): void;\n    context(directory: string, useSubDirectories?: boolean, regExp?: RegExp): WebpackContext;\n}\n\ninterface WebpackContext extends WebpackRequire {\n    keys(): string[];\n}\n\ninterface ErrorStackTraceLimit {\n  stackTraceLimit: number;\n}\n\n// Extend typings\ninterface NodeRequire extends WebpackRequire {}\ninterface ErrorConstructor extends ErrorStackTraceLimit {}\ninterface NodeRequireFunction extends Es6PromiseLoader  {}\ninterface NodeModule extends WebpackModule {}\ninterface Global extends GlobalEnvironment  {}\n"
  },
  {
    "path": "src/environments/environment.e2e.prod.ts",
    "content": "/* tslint:disable */\nimport { enableProdMode, NgModuleRef } from '@angular/core';\nimport { disableDebugTools } from '@angular/platform-browser';\nimport { Environment } from './model';\n\nenableProdMode();\n\n// export const ENV_FIREBASE_CONFIG: any = FIREBASE_CONFIG;\n\nexport const environment: Environment = {\n  production: true,\n  showDevModule: true,\n\n  /** Angular debug tools in the dev console\n   * https://github.com/angular/angular/blob/86405345b781a9dc2438c0fbe3e9409245647019/TOOLS_JS.md\n   * @param modRef\n   * @return {any}\n   */\n  decorateModuleRef(modRef: NgModuleRef<any>) {\n    disableDebugTools();\n    return modRef;\n  },\n  ENV_PROVIDERS: [\n\n  ]\n};\n"
  },
  {
    "path": "src/environments/environment.prod.ts",
    "content": "/* tslint:disable */\nimport { enableProdMode, NgModuleRef } from '@angular/core';\nimport { disableDebugTools } from '@angular/platform-browser';\nimport { Environment } from './model';\n\nenableProdMode();\n\n// export const ENV_FIREBASE_CONFIG: any = FIREBASE_CONFIG;\n\nexport const environment: Environment = {\n  production: true,\n  showDevModule: false,\n\n  /** Angular debug tools in the dev console\n   * https://github.com/angular/angular/blob/86405345b781a9dc2438c0fbe3e9409245647019/TOOLS_JS.md\n   * @param modRef\n   * @return {any}\n   */\n  decorateModuleRef(modRef: NgModuleRef<any>) {\n    disableDebugTools();\n    return modRef;\n  },\n  ENV_PROVIDERS: [\n\n  ]\n};\n"
  },
  {
    "path": "src/environments/environment.ts",
    "content": "/* tslint:disable */\n\nimport { ApplicationRef, NgModuleRef } from '@angular/core';\nimport { enableDebugTools } from '@angular/platform-browser';\nimport { Environment } from './model';\n\nError.stackTraceLimit = Infinity;\nrequire('zone.js/dist/long-stack-trace-zone');\n\n// export const ENV_FIREBASE_CONFIG: any = FIREBASE_CONFIG;\n\nexport const environment: Environment = {\n  production: false,\n\n  showDevModule: true,\n\n  /** Angular debug tools in the dev console\n   * https://github.com/angular/angular/blob/86405345b781a9dc2438c0fbe3e9409245647019/TOOLS_JS.md\n   * @param modRef\n   * @return {any}\n   */\n  decorateModuleRef(modRef: NgModuleRef<any>) {\n    const appRef = modRef.injector.get(ApplicationRef);\n    const cmpRef = appRef.components[0];\n\n    let _ng = (<any>window).ng;\n    enableDebugTools(cmpRef);\n    (<any>window).ng.probe = _ng.probe;\n    (<any>window).ng.coreTokens = _ng.coreTokens;\n    return modRef;\n  },\n  ENV_PROVIDERS: [\n\n  ]\n};\n\n"
  },
  {
    "path": "src/environments/model.ts",
    "content": "import { NgModuleRef } from '@angular/core';\n\nexport interface Environment {\n  production: boolean;\n  ENV_PROVIDERS: any;\n  showDevModule: boolean;\n  decorateModuleRef(modRef: NgModuleRef<any>): NgModuleRef<any>;\n}\n"
  },
  {
    "path": "src/index.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n  <meta charset=\"utf-8\">\n  <meta http-equiv=\"x-ua-compatible\" content=\"ie=edge\">\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n  <title><%= htmlWebpackPlugin.options.title %></title>\n  <meta name=\"description\" content=\"<%= htmlWebpackPlugin.options.metadata.description %>\">\n  <!-- base url -->\n  <base href=\"<%= htmlWebpackPlugin.options.metadata.baseUrl %>\">\n  <% if (webpackConfig.htmlElements.headTags) { %>\n  <!-- Configured Head Tags  -->\n  <%= webpackConfig.htmlElements.headTags %>\n  <% } %>\n\n  <%= htmlWebpackPlugin.files.webpackManifest %>\n\n  <% if (htmlWebpackPlugin.options.metadata.isDevServer && htmlWebpackPlugin.options.metadata.HMR !== true) { %>\n  <!-- Webpack Dev Server reload -->\n  <script src=\"/webpack-dev-server.js\"></script>\n  <% } %>\n\n  <!-- Async Google Tag Manager: change gtmKey value inside config.prod.conf to your to be your site's ID-->\n  <% if (htmlWebpackPlugin.options.gtmKey) { %>\n  <!-- Google Tag Manager -->\n  <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n      new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n    j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n    'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n  })(window,document,'script','dataLayer','<%= htmlWebpackPlugin.options.gtmKey %>');</script>\n  <!-- End Google Tag Manager -->\n  <% } %>\n  <!-- End Google Analytics -->\n\n  <!-- CSS will be injected by webpack here -->\n  <!-- Preload link tags will be injected by webpack here -->\n\n</head>\n\n<body>\n<% if (htmlWebpackPlugin.options.gtmKey) { %>\n<!-- Google Tag Manager (noscript) -->\n<noscript><iframe src=\"https://www.googletagmanager.com/ns.html?id=<%= htmlWebpackPlugin.options.gtmKey %>\"\n                  height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript>\n<!-- End Google Tag Manager (noscript) -->\n<% } %>\n\n  <app>\n    Loading...\n  </app>\n\n  <!-- Scripts will be injected by webpack here -->\n</body>\n</html>\n"
  },
  {
    "path": "src/main.browser.ts",
    "content": "/**\n * Angular bootstrapping\n */\nimport { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\nimport { environment } from 'environments/environment';\nimport { NgModuleRef } from '@angular/core';\n\n/**\n * App Module\n * our top level module that holds all of our components\n */\nimport { AppModule } from './app';\nimport { ROOT_SELECTOR } from './app/app.component';\n\n/**\n * Bootstrap our Angular app with a top level NgModule\n */\nexport function main(): Promise<any> {\n  let modulePromise: Promise<NgModuleRef<AppModule>> = null;\n\n  if (module['hot']) {\n    module['hot'].accept();\n    module['hot'].dispose(() => {\n      // Before restarting the app, we create a new root element and dispose the old one\n      const oldRootElem = document.querySelector(ROOT_SELECTOR);\n      const newRootElem = document.createElement(ROOT_SELECTOR);\n      oldRootElem!.parentNode!.insertBefore(newRootElem, oldRootElem);\n      if (modulePromise) {\n        modulePromise.then((appModule) => {\n          appModule.destroy();\n          if (oldRootElem !== null) {\n            oldRootElem!.parentNode!.removeChild(oldRootElem);\n          }\n          return appModule;\n        });\n      }\n    });\n  }\n\n  modulePromise = platformBrowserDynamic().bootstrapModule(AppModule);\n\n  return modulePromise.then(environment.decorateModuleRef).catch((err) => console.error(err));\n}\n\n/**\n * Needed for hmr\n * in prod this is replace for document ready\n */\nswitch (document.readyState) {\n  case 'loading':\n    document.addEventListener('DOMContentLoaded', _domReadyHandler, false);\n    break;\n  case 'interactive':\n  case 'complete':\n  default:\n    main();\n}\n\nfunction _domReadyHandler() {\n document.removeEventListener('DOMContentLoaded', _domReadyHandler, false);\n main();\n}\n"
  },
  {
    "path": "src/meta/humans.txt",
    "content": "# humanstxt.org/\n# The humans responsible & technology colophon\n\n# TEAM\n\n  <name> -- <role> -- <twitter>\n\n# THANKS\n\n  <name>\n  PatrickJS -- @gdi2290\n  AngularClass -- @AngularClass\n\n# TECHNOLOGY COLOPHON\n\n  HTML5, CSS3\n  Angular2, TypeScript, Webpack\n"
  },
  {
    "path": "src/meta/robots.txt",
    "content": "# robotstxt.org\n\nUser-agent: *\n"
  },
  {
    "path": "src/polyfills.browser.ts",
    "content": "/**\n * This file includes polyfills needed by Angular and is loaded before the app.\n * You can add your own extra polyfills to this file.\n *\n * This file is divided into 2 sections:\n *   1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.\n *   2. Application imports. Files imported after ZoneJS that should be loaded before your main\n *      file.\n *\n * The current setup is for so-called \"evergreen\" browsers; the last versions of browsers that\n * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),\n * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.\n *\n * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html\n */\n\n/***************************************************************************************************\n * BROWSER POLYFILLS\n */\n\n// Internet Explorer 9 support\n// import 'ie-shim';\n\n// IE9, IE10 and IE11 requires all of the following polyfills.\n// import 'core-js/es6/symbol';\n// import 'core-js/es6/object';\n// import 'core-js/es6/function';\n// import 'core-js/es6/parse-int';\n// import 'core-js/es6/parse-float';\n// import 'core-js/es6/number';\n// import 'core-js/es6/math';\n// import 'core-js/es6/string';\n// import 'core-js/es6/date';\n// import 'core-js/es6/array';\n// import 'core-js/es6/regexp';\n// import 'core-js/es6/map';\n// import 'core-js/es6/weak-map';\n// import 'core-js/es6/set';\n\n/** IE10 and IE11 requires the following for NgClass support on SVG elements */\n// import 'classlist.js';  // Run `npm install --save classlist.js`.\n\n// Evergreen browsers require these.\nimport 'core-js/es6/reflect';\nimport 'core-js/es7/reflect';\n\n/**\n * Required to support Web Animations `@angular/animation`.\n * Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation\n */\n\n// import 'web-animations-js';  // Run `npm install --save web-animations-js`.\n\n/***************************************************************************************************\n * Zone JS is required by Angular itself.\n */\nimport 'zone.js/dist/zone';\n// import 'zone.js/dist/long-stack-trace-zone' // async stack traces with zone.js included for dev\n\n/***************************************************************************************************\n * APPLICATION IMPORTS\n */\n\n/**\n * Date, currency, decimal and percent pipes.\n * Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10\n */\n// import 'intl';  // Run `npm install --save intl`.\n/**\n * Need to import at least one locale-data with intl.\n */\n// import 'intl/locale-data/jsonp/en';\nif ('production' === ENV) {\n  // Production\n\n} else {\n\n  // Development\n}\n"
  },
  {
    "path": "src/styles/_variables.scss",
    "content": "$nav-button-color: #00838F;"
  },
  {
    "path": "src/styles/headings.css",
    "content": "h1 {\n  color: #00BCD4;\n}"
  },
  {
    "path": "src/styles/styles.scss",
    "content": "/* this file will be extracted to main dist folder and is imported in index.html */\n/* This file is for setting global styles  */\n@import 'variables';\n\nnav {\n  margin-top: 16px;\n}\n\nnav a {\n  background-color: $nav-button-color;\n  color: white;\n  padding: 8px 16px;\n  margin: 8px;\n  vertical-align: middle;\n  line-height: 1.25;\n  text-align: center;\n  text-decoration: none;\n  border-radius: 4px;\n}\n"
  },
  {
    "path": "tsconfig.json",
    "content": "{\n  \"compilerOptions\": {\n    \"target\": \"es5\",\n    \"module\": \"commonjs\",\n    \"moduleResolution\": \"node\",\n    \"emitDecoratorMetadata\": true,\n    \"experimentalDecorators\": true,\n    \"allowSyntheticDefaultImports\": true,\n    \"sourceMap\": true,\n    \"noEmit\": true,\n    \"noEmitHelpers\": true,\n    \"importHelpers\": true,\n    \"strictNullChecks\": false,\n    \"lib\": [\n      \"dom\",\n      \"es6\"\n    ],\n    \"baseUrl\": \"./src\",\n    \"paths\": {\n      \"@angular/*\": [\"node_modules/@angular/*\"]\n    },\n    \"typeRoots\": [\n      \"node_modules/@types\"\n    ],\n    \"types\": [\n      \"hammerjs\",\n      \"jasmine\",\n      \"node\",\n      \"uglify-js\",\n      \"webpack\"\n    ]\n  },\n  \"exclude\": [\n    \"node_modules\",\n    \"dist\"\n  ],\n  \"awesomeTypescriptLoaderOptions\": {\n    \"forkChecker\": true,\n    \"useWebpackText\": true\n  },\n  \"compileOnSave\": false,\n  \"buildOnSave\": false,\n  \"atom\": {\n    \"rewriteTsconfig\": false\n  }\n}\n"
  },
  {
    "path": "tsconfig.webpack.json",
    "content": "{\n  \"compilerOptions\": {\n    \"target\": \"es5\",\n    \"module\": \"esnext\",\n    \"moduleResolution\": \"node\",\n    \"emitDecoratorMetadata\": true,\n    \"experimentalDecorators\": true,\n    \"allowSyntheticDefaultImports\": true,\n    \"sourceMap\": true,\n    \"noEmitHelpers\": true,\n    \"importHelpers\": true,\n    \"strictNullChecks\": false,\n    \"lib\": [\n      \"es2015\",\n      \"dom\"\n    ],\n    \"baseUrl\": \"./src\",\n    \"paths\": {\n      \"@angular/*\": [\"../node_modules/@angular/*\"]\n    },\n    \"typeRoots\": [\n      \"node_modules/@types\"\n    ],\n    \"types\": [\n      \"hammerjs\",\n      \"node\"\n    ]\n  },\n  \"exclude\": [\n    \"node_modules\",\n    \"dist\",\n    \"src/**/*.spec.ts\",\n    \"src/**/*.e2e.ts\"\n  ],\n  \"angularCompilerOptions\": {\n    \"skipMetadataEmit\": true\n  },\n  \"compileOnSave\": false,\n  \"buildOnSave\": false,\n  \"atom\": {\n    \"rewriteTsconfig\": false\n  }\n}\n"
  },
  {
    "path": "tslint.json",
    "content": "{\n  \"extends\": [\n    \"tslint:recommended\"\n  ],\n  \"linterOptions\": {\n    \"exclude\": [\n      \"src/*.d.ts\"\n    ]\n  },\n  \"rulesDirectory\": [\n    \"node_modules/codelyzer\",\n    \"node_modules/rxjs-tslint\"\n  ],\n  \"rules\": {\n    \"trailing-comma\": [false, {\"multiline\": \"always\", \"singleline\": \"never\"}],\n    \"interface-name\": [false, \"always-prefix\"],\n    \"component-class-suffix\": true,\n    // \"component-selector\": [true, \"element\", \"my\", \"kebab-case\"],\n    \"directive-class-suffix\": true,\n    // \"directive-selector\": [true, \"attribute\", \"my\", \"camelCase\"],\n    \"import-destructuring-spacing\": true,\n    \"no-attribute-parameter-decorator\": true,\n    \"no-forward-ref\": true,\n    \"no-input-rename\": true,\n    \"no-output-rename\": true,\n    \"only-arrow-functions\": false,\n    \"pipe-naming\": [true, \"camelCase\", \"my\"],\n    \"use-host-property-decorator\": true,\n    \"use-input-property-decorator\": true,\n    \"use-life-cycle-interface\": true,\n    \"use-output-property-decorator\": true,\n    \"use-pipe-transform-interface\": true,\n    \"no-console\": [true,\n      \"time\",\n      \"timeEnd\",\n      \"trace\"\n    ],\n    \"max-line-length\": [\n      true,\n      100\n    ],\n    \"no-string-literal\": false,\n    \"no-use-before-declare\": true,\n    \"object-literal-sort-keys\": false,\n    \"ordered-imports\": false,\n    \"quotemark\": [\n      true,\n      \"single\",\n      \"avoid-escape\"\n    ],\n    \"variable-name\": [\n      true,\n      \"allow-leading-underscore\",\n      \"allow-pascal-case\",\n      \"ban-keywords\",\n      \"check-format\"\n    ],\n    \"rxjs-collapse-imports\": true,\n    \"rxjs-pipeable-operators-only\": true,\n    \"rxjs-no-static-observable-methods\": true,\n    \"rxjs-proper-imports\": true\n  }\n}\n"
  },
  {
    "path": "typedoc.json",
    "content": "{\n  \"mode\": \"modules\",\n  \"out\": \"doc\",\n  \"theme\": \"default\",\n  \"ignoreCompilerErrors\": \"true\",\n  \"experimentalDecorators\": \"true\",\n  \"emitDecoratorMetadata\": \"true\",\n  \"target\": \"ES5\",\n  \"moduleResolution\": \"node\",\n  \"preserveConstEnums\": \"true\",\n  \"stripInternal\": \"true\",\n  \"suppressExcessPropertyErrors\": \"true\",\n  \"suppressImplicitAnyIndexErrors\": \"true\",\n  \"module\": \"commonjs\"\n}\n"
  },
  {
    "path": "webpack.config.js",
    "content": "/**\n * @author: tipe.io\n */\n\n/**\n * Look in ./config folder for webpack.dev.js\n */\nswitch (process.env.NODE_ENV) {\n  case 'prod':\n  case 'production':\n    module.exports = require('./config/webpack.prod')({env: 'production'});\n    break;\n  case 'test':\n  case 'testing':\n    module.exports = require('./config/webpack.test')({env: 'test'});\n    break;\n  case 'dev':\n  case 'development':\n  default:\n    module.exports = require('./config/webpack.dev')({env: 'development'});\n}\n"
  }
]