Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Cesium
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
Cesium-grp
Cesium
Commits
dc44b4dc
Commit
dc44b4dc
authored
May 5, 2020
by
Benoit Lavenier
Browse files
Options
Downloads
Patches
Plain Diff
[fix] Fix build web extension : do not forget to copy leaflet css and images.
parent
1f26dee8
No related branches found
No related tags found
No related merge requests found
Pipeline
#8973
failed
May 5, 2020
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
gulpfile.js
+27
-10
27 additions, 10 deletions
gulpfile.js
with
27 additions
and
10 deletions
gulpfile.js
+
27
−
10
View file @
dc44b4dc
...
...
@@ -231,6 +231,18 @@ function pluginNgTranslate() {
.
pipe
(
gulp
.
dest
(
'
www/dist/dist_js/plugins
'
));
}
function
pluginLeafletImages
(
dest
)
{
dest
=
dest
||
'
./www/img/
'
;
// Leaflet images
return
gulp
.
src
([
'
scss/leaflet/images/*.*
'
,
'
www/lib/leaflet/dist/images/*.*
'
,
'
www/lib/leaflet-search/images/*.*
'
,
'
!www/lib/leaflet-search/images/back.png
'
,
'
!www/lib/leaflet-search/images/leaflet-search.jpg
'
,
'
www/lib/leaflet.awesome-markers/dist/images/*.*
'
])
.
pipe
(
gulp
.
dest
(
dest
));
}
function
pluginSass
()
{
log
(
colors
.
green
(
'
Building Plugins Sass...
'
));
...
...
@@ -241,13 +253,7 @@ function pluginSass() {
.
pipe
(
gulp
.
dest
(
'
www/dist/dist_css/plugins
'
)),
// Leaflet images
gulp
.
src
([
'
scss/leaflet/images/*.*
'
,
'
www/lib/leaflet/dist/images/*.*
'
,
'
www/lib/leaflet-search/images/*.*
'
,
'
!www/lib/leaflet-search/images/back.png
'
,
'
!www/lib/leaflet-search/images/leaflet-search.jpg
'
,
'
www/lib/leaflet.awesome-markers/dist/images/*.*
'
])
.
pipe
(
gulp
.
dest
(
'
./www/img/
'
)),
pluginLeafletImages
(
'
./www/img/
'
),
// Leaflet App style
gulp
.
src
(
'
./scss/leaflet.app.scss
'
)
...
...
@@ -385,7 +391,7 @@ function webAppNgAnnotate() {
}
function
webPluginCopyFiles
()
{
var
tmpPath
=
'
./dist/web/www
'
;
const
tmpPath
=
'
./dist/web/www
'
;
return
merge
(
// Copy Js (and remove unused code)
gulp
.
src
(
'
./www/plugins/**/*.js
'
)
...
...
@@ -409,9 +415,17 @@ function webPluginCopyFiles() {
.
pipe
(
ngTranslate
({
standalone
:
true
,
module
:
'
cesium.plugins.translations
'
}))
.
pipe
(
gulp
.
dest
(
tmpPath
+
'
/dist/dist_js/plugins
'
)),
// Copy CSS
// Copy
plugin
CSS
gulp
.
src
(
paths
.
css_plugin
)
.
pipe
(
gulp
.
dest
(
tmpPath
+
'
/dist/dist_css/plugins
'
))
.
pipe
(
gulp
.
dest
(
tmpPath
+
'
/dist/dist_css/plugins
'
)),
// Copy Leaflet images
pluginLeafletImages
(
tmpPath
+
'
/img
'
),
// Copy Leaflet CSS
gulp
.
src
(
'
./www/css/**/leaflet.*
'
)
.
pipe
(
gulp
.
dest
(
tmpPath
+
'
/css
'
))
);
}
...
...
@@ -809,11 +823,14 @@ exports.annotate = appNgAnnotate;
exports
.
watch
=
appAndPluginWatch
;
exports
.
build
=
build
;
exports
.
webCompile
=
webCompile
;
exports
.
webBuild
=
webBuild
;
exports
[
'
build:web
'
]
=
exports
.
webBuild
;
// Alias
exports
.
webExtClean
=
webExtClean
;
exports
.
webExtCompile
=
webExtCompile
;
exports
.
webExtBuild
=
webExtBuild
;
exports
.
webExtCopyFiles
=
webExtCopyFiles
;
exports
[
'
build:webExt
'
]
=
exports
.
webBuild
;
// Alias
exports
.
default
=
gulp
.
series
(
appConfig
,
build
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment