Skip to content

Commit

Permalink
chore(mapbox): fix mapbox module
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbeau committed Nov 26, 2019
1 parent dfe58b8 commit 938e2de
Show file tree
Hide file tree
Showing 3 changed files with 2,322 additions and 97 deletions.
20 changes: 20 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/*jshint esversion: 6 */
const gulp = require('gulp');
const del = require('del');
const babel = require('gulp-babel');
const exec = require('gulp-exec');
const merge = require('gulp-merge-json');
const jeditor = require('gulp-json-editor');
Expand Down Expand Up @@ -385,6 +386,25 @@ gulp.task('geo:fixOL', done => {
done();
});

gulp.task('geo:fixMapbox', done => {
gulp
.src(
[
'./node_modules/@mapbox/mapbox-gl-style-spec/deref.js',
'./node_modules/ol-mapbox-style/stylefunction.js'
],
{ base: './' }
)
.pipe(
babel({
presets: ['@babel/env']
})
)
.pipe(gulp.dest('.'));

done();
});

// ==========================================================

gulp.task(
Expand Down
Loading

0 comments on commit 938e2de

Please sign in to comment.