A horrible introduction to using modern JavaScript tooling with D3
Chapter 11
Okay, cool, so we’re halfway there in our journey to understanding JavaScript tooling! Here’s what we’ve learned so far:
npm
to install everything - packages/modules/whatever you want to call themnpm
installs things on a per-project basisnpm init
package.json
that describes our project and its dependencieseslint
is used to clean up our code qualitynpm run
by filling out the scripts
section of our package.json
I know, that’s a lot of stuff.
Linting does a lot to help fix errors in our code easily, though, so even if it’s more work in the beginning you save a lot of time in the long run! And people who read our code will be thankful, too.
Now let’s move on to the next step.