Documenting the commands you need in your project.
How do I build, lint, test or run the development server on my project?
When you start out, I guess it is fine to just run the webpack, eslint etc by hand. But as you are adding more members to your team or don’t work full time on it anymore.
I’m a huge fan of adding run/build/lint/test script to package.json. Then you can just add npm run lint or yarn run lint to lint. And the best thing about doing it this way is that, if there is some change to the command you use to build, lint, test or run, you can just change the command and you don’t need to make sure everyone you work with are up to speed.
How to do it?
You just add a element to the scripts object in package.json in the following form “name”: “script you need to run”,