fix: gulp don't pass compile2 pattern
add IGulpPlugin and fix tests
Merge pull request #2882 from progre/feature/gulp-fix

fix gulp typings and tests