Created
December 18, 2018 17:14
-
-
Save ilio/042cb4ed43b7a868a7b43330cef43737 to your computer and use it in GitHub Desktop.
use babel with node v10, all config in package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
} | |
} | |
] | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
source files in /src folder, output in /bin