Skip to content

Instantly share code, notes, and snippets.

@innerdaze
Last active March 15, 2018 12:20
Show Gist options
  • Save innerdaze/80e82cd7f951b9d598ca1696ea771e31 to your computer and use it in GitHub Desktop.
Save innerdaze/80e82cd7f951b9d598ca1696ea771e31 to your computer and use it in GitHub Desktop.
Simple build system for babel
{
"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