npm Flashcards

1
Q

What is a package?

A

self contained code that you can import

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What happens when you add a dependency to a package with npm?

A

Downloads it -> Puts it in the node-modules directory -> Checks for other dependencies -> Downloads them -> Updates package Lock

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is webpack?

A

Allows you to bundle files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do you add a devDependency to a package?

A

npm i -D ……

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a NPM script?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do you execute Webpack with npm run?

A

npm run nameOfFile

How well did you know this?
1
Not at all
2
3
4
5
Perfectly