mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-28 01:50:12 -04:00
Merge pull request #3501 from alphagov/add-leaflet-js
Add Leaflet.js for rendering slippy maps
This commit is contained in:
15
gulpfile.js
15
gulpfile.js
@@ -95,6 +95,12 @@ const copy = {
|
||||
)
|
||||
});
|
||||
}
|
||||
},
|
||||
leaflet: {
|
||||
js: () => {
|
||||
return src(paths.npm + 'leaflet/dist/leaflet.js')
|
||||
.pipe(dest(paths.dist + 'javascripts/'))
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -182,7 +188,11 @@ const javascripts = () => {
|
||||
|
||||
|
||||
const sass = () => {
|
||||
return src([paths.src + '/stylesheets/main*.scss', paths.src + '/stylesheets/print.scss'])
|
||||
return src([
|
||||
paths.src + '/stylesheets/main*.scss',
|
||||
paths.src + '/stylesheets/print.scss',
|
||||
paths.npm + '/leaflet/dist/leaflet.css'
|
||||
])
|
||||
.pipe(plugins.prettyerror())
|
||||
.pipe(plugins.sass({
|
||||
outputStyle: 'nested',
|
||||
@@ -264,7 +274,8 @@ const defaultTask = parallel(
|
||||
parallel(
|
||||
copy.govuk_frontend.fonts,
|
||||
copy.govuk_frontend.templates,
|
||||
images
|
||||
images,
|
||||
copy.leaflet.js
|
||||
),
|
||||
series(
|
||||
copy.error_pages,
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
"gulp-uglify": "3.0.2",
|
||||
"hogan": "1.0.2",
|
||||
"jquery": "3.5.0",
|
||||
"leaflet": "1.6.0",
|
||||
"query-command-supported": "1.0.0",
|
||||
"rollup": "1.23.1",
|
||||
"streamqueue": "1.1.2",
|
||||
|
||||
Reference in New Issue
Block a user