Chapter 8. Application Organization and Management

This chapter will cover the following recipes:

  • Composing package.json for a minimum viable Angular 2 application
  • Configuring TypeScript for a minimum viable Angular 2 application
  • Performing in-browser transpilation with SystemJS
  • Composing application files for a minimum viable Angular 2 application
  • Migrating the minimum viable Angular 2 application to Webpack bundling
  • Incorporating shims and polyfills into Webpack
  • HTML generation with html-webpack-plugin
  • Setting up an application with Angular's CLI

Introduction

The Angular 2 project's ambitions goals involve the utilization of a different language with different syntax and constructs, as well as providing high efficiency and modularity. What this means for you is that the process of maintaining an Angular 2 application may be difficult.

The ultimate goal is to efficiently serve HTML, CSS, and JS to a web browser and to make it easy to develop the source components of these static files. How one arrives at this endpoint can be worked out in a number of different ways, and it would be an exercise in futility to write a chapter on all of them.

Instead, this chapter will provide a few opinionated ways of arranging your Angular 2 application in a way that it would reflect the most popular and effective strategies. It will also show you how to build and extend a minimum viable Angular 2 application. For some, this will seem a bit simple and rudimentary. However, the majority of Quickstart projects or code generation frameworks simply give you a repository and a few commands to run in order to get out of the door, and these commands run without telling you what they're doing or how they're doing it! In this chapter, you will learn how to build an Angular 2 application from the ground up along with the packages and tools that will help you do it and why these methods were selected.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.217.5.86