Created by: ChALkeR
Refs: https://github.com/gulpjs/gulp/issues/1640#issuecomment-240683358
This is unfinished POC, it lacks the documentation and perhaps the tests.
It works though, and successfully unbreaks gulp@3 with Node.js 6+ if gulp was required using require('gulp/compat')
.
This is a pure opt-in, it does not change anything unless the user specifically enables it (except for installing one extra unused package).
If gulp is already loaded at the time of the opt-in, then it throws an error — so that deps won't misuse it and change the behaviour of everything, — this makes this option available only to the top-level gulpfile itself.
If this would be accepted, I will gladly move vinyl-fs-03-compat to gulpjs both on GitHub and npm.
/cc @phated, @contra, @TheAlphaNerd, @jasnell
Thoughts?