build: This command creates our ES6 codes using babel and dumps the output inside the dist directory (automatically deleted and recreated on every build). The dist directory contains the duplicate files and folder in our base directory. The only difference is that it includes codes transpiled from ES6 to ES5.
start: This command starts our node.js application after converting it to ES5 codes inside the dist directory.
dev: development- This command starts our application using nodemon(it helps to restart our server automatically when any JavaScript file changes) and converts all ES6 codes in-memory to ES5 using babel-node. You do not want to do this in production. That is why we have the build command for more optimized performance.
Connect with me on LinkedIn
Connect with me on Twitter
Connect with me on Instagram
-
🌱 I’m currently learning Astro, Blockchainand and much more
-
💬 Ask me about React js, Next js, node js, express js, Django, Fastapi, Next Auth, MongoDB, PostgreSql and blockchain (Solidity)
-
📫 How to reach me [email protected]