Skip to content

Instantly share code, notes, and snippets.

@rahman541
Last active May 22, 2023 04:04
Show Gist options
  • Save rahman541/f23d7bb242520e17517644d4dd179190 to your computer and use it in GitHub Desktop.
Save rahman541/f23d7bb242520e17517644d4dd179190 to your computer and use it in GitHub Desktop.
ES6 Setup with nodemon

ES6 Setup

npm init -y
npm i --save-dev nodemon
npm add babel-preset-env babel-cli

Create a .babelrc config in your project root. Insert the following

{
  "presets": ["env"]
}

In package.json add this to scripts:

"dev": "nodemon --exec babel-node index.js"

To run: npm run dev

@NiiMER
Copy link

NiiMER commented Sep 12, 2022

Thanks @HamidOsouli-zz 🙌
I think the link doesn't exist anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment