Skip to content

Instantly share code, notes, and snippets.

@v3rlly
Last active May 16, 2020 19:49
Show Gist options
  • Save v3rlly/30bc08cc45d4be96e344529f273a364a to your computer and use it in GitHub Desktop.
Save v3rlly/30bc08cc45d4be96e344529f273a364a to your computer and use it in GitHub Desktop.

Setup nodeJS + Nodemon + Babel ---> ES6 syntax

  1. install dependencies
 npm install babel-cli babel-preset-env babel-loader babel-core --save-dev
 sudo npm install -g nodemon
  1. add a start script to the package.json file
"scripts": {
    "start": "nodemon index.js --exec babel-node --presets babel-preset-env",
}
  1. write code with es6 syntax in index.js then..
npm start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment