Skip to content

Instantly share code, notes, and snippets.

@ilio
Created December 18, 2018 17:14
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 ilio/042cb4ed43b7a868a7b43330cef43737 to your computer and use it in GitHub Desktop.
Save ilio/042cb4ed43b7a868a7b43330cef43737 to your computer and use it in GitHub Desktop.
use babel with node v10, all config in package.json
{
"scripts": {
"build": "babel src/ -d bin",
"build watch": "babel src/ -d bin --watch"
},
"devDependencies": {
"@babel/preset-env": "^7.2.0",
"@babel/cli": "^7.2.0",
"@babel/core": "^7.2.0"
},
"babel": {
"sourceMaps": "inline",
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "v10.0.0"
}
}
]
]
}
}
@ilio
Copy link
Author

ilio commented Dec 18, 2018

source files in /src folder, output in /bin

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