Skip to content

Instantly share code, notes, and snippets.

@joonaojapalo
Last active December 10, 2019 11:54
Show Gist options
  • Save joonaojapalo/2afcc8d4804da2dcabaea2f316b8ff14 to your computer and use it in GitHub Desktop.
Save joonaojapalo/2afcc8d4804da2dcabaea2f316b8ff14 to your computer and use it in GitHub Desktop.
node.js script playground
echo '{"presets":[["@babel/preset-env",{"targets":{"node":"current"}}]]}' > .babelrc
echo 'console.info(" ** It works: node_modules/.bin/nodemon --exec babel-node index.js")' > index.js
npm i --save-dev @babel/node @babel/preset-env @babel/core nodemon
code index.js &
node_modules/.bin/nodemon --exec babel-node index.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment