Check out gulp-sourcemaps for detailed instructions on working with source maps enabled plugins in Gulp.
gulp-wrap-js as a development dependency:
npm install --save-dev gulp-wrap-js
Then, add it to your
var sourcemaps = ;var wrapJS = ;gulp;
Template you wish to wrap your code with. Check out estemplate docs for all the possible substitution markers.
Note that in
gulp-wrap-js you have only
body array of statements passed to template as data.