npm init -y
npm install --save-dev babel babel-core babel-loader babel-preset-latest-node6 json-loader webpack
The webpack.config.js is in this same gist.
The first code block in that file is to list node_modules that have to be ignored.
mkdir src build
touch src/index.js