pupilfirst/wd201-scripts

L2 - What are NPM scripts

Closed this issue · 1 comments

@vikispeaks In lesson

Update the following to the scripts attribute along with the test attribute.

But the test attribute value in the final package.json content is the same as what was in the last lesson. I am unable to understand this.

Also, package.json is also talked about in L1. I believe from L2 you will show them how to create and edit package.json while L1 just introduced it.

@reenas I see the issue. In the First Level, we introduce them to NPM. In the next, we teach about package.json. We move to explain how npm executes items by explaining them about script tag in npm. The test attribute and how to use it should ideally be used in the Testing levels. We are not modifying the test attribute in this lesson. We are just adding a new script along with the one auto generated by npm init which in this case is the Test attribute.

I also have added reference to the npm scripts docs to explore more about these in detail.