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

@vixeven
Copy link

vixeven commented Aug 3, 2018

Amazing. Thank you!

@ishidas
Copy link

ishidas commented Aug 17, 2018

👍

@christianodejesus
Copy link

Thanks a lot, this is very helpful.

@Etaboada95
Copy link

thanks

@idiotleon
Copy link

Thanks! Works like charm!

@nevvord
Copy link

nevvord commented Nov 25, 2019

Спасибо ты крут!

@vuchl
Copy link

vuchl commented Mar 23, 2020

Thanks!

@HugoAlvesdutra
Copy link

you save my day.
Thanks a lot !!!!!

@HamidOsouli-zz
Copy link

If you want to use it with Babel 7, you can use it here :https://gist.github.com/HamidOsouli/f48bc042995b18d2436dd372e72e4647

@ian117
Copy link

ian117 commented Feb 8, 2022

Thanks! ✌🙌

@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