Chapter 1

Building from Scratch

IN THIS CHAPTER

Bullet Recognizing why you need a build tool

Bullet Introducing npm

Bullet Recognizing the parts of package.json

Bullet Installing a dev server

Bullet Building a script with modules

“If you wish to make an apple pie from scratch, you must first invent the universe.”

—CARL SAGAN

If you've worked through Book 3, Book 4, and Book 5, you know how to write JavaScript code using popular JavaScript frameworks. Until now, you've been mostly protected from the tools that check, compile, and open your applications in a browser. Rather than spend a lot of time configuring these tools, you've been using a single tool, Vite, that wraps around and configures everything for you.

But, just as anyone who drives a car can benefit from knowing what goes on under the hood, a whole world of programs and tools wait for you "under the hood" of modern JavaScript development. Knowing how to tinker with these tools makes you a better developer.

In this chapter, I start from scratch and help you ...

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.