Chapter 2

Optimizing and Bundling

IN THIS CHAPTER

Bullet Creating an automated build script

Bullet Using a module bundler

Bullet Adding functionality to your build tool

Bullet Migrating a vanilla JavaScript app to ReactJS

“If you optimize everything, you will always be unhappy.”

—DONALD KNUTH

Whether you work by yourself or as part of a team of developers, one of the most important parts of your development environment is your automated build tool. Building an application is the process of optimizing and bundling your code to prepare the application for deployment and use by actual people, which, of course, is the end goal of learning about JavaScript programming.

In this chapter, you find out how to put together the tools and scripts necessary to go from a development environment to a production environment.

Automating Your Build Script

The systems development life cycle (SDLC) is a series of phases used by software developers since the 1960s to build applications. These are the phases of the SDLC:

  • Analysis
  • Design
  • Development
  • Testing
  • Deployment
  • Maintenance

Because this is a book about programming, nearly ...

Get JavaScript All-in-One For Dummies now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.