๐ก๐ฃ๐ ๐ฆ๐ฐ๐ฟ๐ถ๐ฝ๐๐ ๐ฌ๐ผ๐ ๐ฆ๐ต๐ผ๐๐น๐ฑ ๐จ๐๐ฒ
Most developers only use dev, build, and start scripts. You miss built-in tools.
Use these to work faster:
- pre and post hooks: run checks before or after scripts.
- Pass arguments: use -- to send flags.
- run-p and run-s: run tasks in parallel or serial.
- cross-env: set variables for all operating systems.
- node --watch: watch files without nodemon in Node 18.
- $npm_package_version: use package.json fields in scripts.
- Namespaced scripts: use dev: or build: to group tasks.
Source: https://devencyclopedia.com/blog/npm-scripts-you-should-know