liferay / liferay-theme-tasks

A set of tasks for building and deploying Liferay Portal themes.
18 stars 24 forks source link

Gulp watch on ftl files #91

Closed mouzofabricio closed 6 years ago

mouzofabricio commented 6 years ago

I have a theme where i added some structures and templates.

For some reasons the scss changes work perfectly with gulp watch but when I make changes on a template it doesn't update on the liferay instance.

the last Message that I see in the gulp log is "Browsersync: reloading browsers" and it stays there.

I removed the template cache in liferay by setting it to 0.

Any ideas what could be happening ?

This is the complete log:

[10:17:36] Starting 'build:clean'...
[10:17:36] Finished 'build:clean' after 107 ms
[10:17:36] Starting 'build:src'...
[10:17:36] Finished 'build:src' after 15 ms
[10:17:36] Starting 'build:web-inf'...
[10:17:36] Finished 'build:web-inf' after 11 ms
[10:17:36] Starting 'deploy:folder'...
[10:17:36] gulp-debug: build/WEB-INF/classes
[10:17:36] gulp-debug: build/WEB-INF/liferay-look-and-feel.xml
[10:17:36] gulp-debug: build/WEB-INF/liferay-plugin-package.properties
[10:17:36] gulp-debug: build/WEB-INF/src
[10:17:36] gulp-debug: build/WEB-INF/classes/resources-importer
[10:17:36] gulp-debug: build/WEB-INF/src/resources-importer
[10:17:36] gulp-debug: build/WEB-INF/classes/resources-importer/document_library
[10:17:36] gulp-debug: build/WEB-INF/classes/resources-importer/journal
[10:17:36] gulp-debug: build/WEB-INF/classes/resources-importer/sitemap.json
[10:17:36] gulp-debug: build/WEB-INF/src/resources-importer/document_library
[10:17:36] gulp-debug: build/WEB-INF/src/resources-importer/journal
[10:17:36] gulp-debug: build/WEB-INF/src/resources-importer/sitemap.json
[10:17:36] gulp-debug: build/WEB-INF/classes/resources-importer/document_library/documents
[10:17:36] gulp-debug: build/WEB-INF/src/resources-importer/document_library/documents
[10:17:36] gulp-debug: build/WEB-INF/classes/resources-importer/journal/structures
[10:17:36] gulp-debug: build/WEB-INF/classes/resources-importer/journal/templates
[10:17:36] gulp-debug: build/WEB-INF/src/resources-importer/journal/structures
[10:17:36] gulp-debug: build/WEB-INF/src/resources-importer/journal/templates
[10:17:36] gulp-debug: build/WEB-INF/classes/resources-importer/document_library/documents/images
[10:17:36] gulp-debug: build/WEB-INF/src/resources-importer/document_library/documents/images
[10:17:36] gulp-debug: build/WEB-INF/classes/resources-importer/journal/structures/carousel.json
[10:17:36] gulp-debug: build/WEB-INF/classes/resources-importer/journal/structures/hero.json
[10:17:36] gulp-debug: build/WEB-INF/classes/resources-importer/journal/templates/carousel
[10:17:36] gulp-debug: build/WEB-INF/classes/resources-importer/journal/templates/hero
[10:17:36] gulp-debug: build/WEB-INF/src/resources-importer/journal/structures/carousel.json
[10:17:36] gulp-debug: build/WEB-INF/src/resources-importer/journal/structures/hero.json
[10:17:36] gulp-debug: build/WEB-INF/src/resources-importer/journal/templates/carousel
[10:17:36] gulp-debug: build/WEB-INF/src/resources-importer/journal/templates/hero
[10:17:36] gulp-debug: build/WEB-INF/classes/resources-importer/journal/templates/carousel/carousel-template-b.ftl
[10:17:36] gulp-debug: build/WEB-INF/classes/resources-importer/journal/templates/carousel/carousel-template.ftl
[10:17:36] gulp-debug: build/WEB-INF/classes/resources-importer/journal/templates/hero/hero-template.ftl
[10:17:36] gulp-debug: build/WEB-INF/src/resources-importer/journal/templates/carousel/carousel-template-b.ftl
[10:17:36] gulp-debug: build/WEB-INF/src/resources-importer/journal/templates/carousel/carousel-template.ftl
[10:17:36] gulp-debug: build/WEB-INF/src/resources-importer/journal/templates/hero/hero-template.ftl
[10:17:36] gulp-debug: 34 items
[10:17:36] Finished 'deploy:folder' after 37 ms
[Browsersync] Reloading Browsers...
mouzofabricio commented 6 years ago

Well I was able to narrow down the issue.

Apparently the portal_normal.ftl template is being updated correctly but the problem is with the resources-importer templates.

Any clue on how to solve this ?

jbalsas commented 6 years ago

Hey @mouzofabricio, sorry about this... I don't think it would be possible to solve this with the current watch infrastructure...

In any case, I've filed https://github.com/liferay/liferay-themes-sdk/issues/45 in the new repository location to keep track of this and see if we can give it some thought in the future.