๐ก๐ฃ๐ ๐ฆ๐ฐ๐ฟ๐ถ๐ฝ๐๐ ๐ฌ๐ผ๐ ๐ฆ๐ต๐ผ๐๐น๐ฑ ๐จ๐๐ฒ
Most developers use dev, build, and start. You miss features in your package.json. These scripts replace extra tools:
- Pre and post hooks: Run tasks before or after a script.
- Pass arguments: Use -- to send flags to tests.
- run-p and run-s: Run tasks in parallel or series.
- cross-env: Set variables for Windows, Mac, and Linux.
- node --watch: Watch files in Node 18 without nodemon.
- $npm_package_version: Use version fields in scripts.
- Namespaced scripts: Group tasks like dev:server or build:css.
Source: https://devencyclopedia.com/blog/npm-scripts-you-should-know Optional learning community: https://dev.to/dev_encyclopedia/npm-scripts-youre-probably-not-using-but-should-be-2hg7