Last active
March 15, 2018 12:20
-
-
Save innerdaze/80e82cd7f951b9d598ca1696ea771e31 to your computer and use it in GitHub Desktop.
Simple build system for babel
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
{ | |
"main": "dist/index.js", | |
"scripts": { | |
"transpile": "babel src/index.js", | |
"prebuild": "shx mkdir -p dist", | |
"build": "npm run transpile -- -o dist/index.js", | |
"start:dev": "babel-node src/index.js", | |
"watch": "nodemon -w src/* -x \"npm run build &> /dev/null && node .\"" | |
}, | |
"devDependencies": { | |
"@babel/cli": "^7.0.0-beta.41", | |
"@babel/core": "^7.0.0-beta.41", | |
"@babel/preset-env": "^7.0.0-beta.41", | |
"@babel/preset-stage-0": "^7.0.0-beta.41", | |
"shx": "^0.2.2" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment