Here's a quick tip to start writing your gulpfiles in ES2015 with Babel 6.0.
mv gulpfile.js gulpfile.babel.jsnpm install --save-dev babel-core babel-preset-es2015Create the .babelrc file in your project root.
touch .babelrcNext, open the file in your editor of choice and add the ES2015 preset to the file and save it.
{
"presets": ["es2015"]
}
With those items resolved, you can now write your gulpfile in ES2015. Enjoy!