DEV Community

Discussion on: How to have better NPM Scripts

Collapse
 
raulfdm profile image
Raul Melo

I often pick this tool for my personal projects just for the convenience.

But I do agree, I had a monorepo where I have a common scripts which runs a common test command and then inside the folders when I don't need to pass any special flag I only navigate back and invoke the bash script.

I don't have this workflow documented because it's my projects I don't believe nobody will ever touch it but I strong believe in good and well maintained documentations explaining such workflows.

At Warner for example we work in a very complex monorepo with more then 30 projects cross 10 different teams. The work flow, how to setup, the why's of the tooling we use there is all written in .md files and it can help everyone understand the decisions taken.

But I've worked in places where we had some scripts here and there, no docs nor reference explaining why and I needed indeed to scan to understand.

Maybe it's more about how do we organize ourselves and think of the team then the tool we're using.

But you brought a valid point... thanks for that :D