Skip to content

Instantly share code, notes, and snippets.

@weisk
Created September 30, 2018 21:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weisk/961ea998262181587be2cc8d995af6cb to your computer and use it in GitHub Desktop.
Save weisk/961ea998262181587be2cc8d995af6cb to your computer and use it in GitHub Desktop.
Babel node starter 2018
(async () => {
console.log('hi!');
})()
require("@babel/register");
require("@babel/polyfill");
require('./src/index.js');
{
"name": "babel-node-starter",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "nodemon main.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@babel/core": "^7.1.2",
"@babel/polyfill": "^7.0.0",
"@babel/register": "^7.0.0",
"nodemon": "^1.18.4"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment