Fórum

Slow gulp watch at themes for liferay 7

thumbnail
Marco Endres, modificado 7 Anos atrás.

Slow gulp watch at themes for liferay 7

Regular Member Postagens: 112 Data de Entrada: 22/08/12 Postagens Recentes
Hello guys,

When i use the 'gulp watch' as explained in the presentation from the liferay themes then it is way slower than in the presentation. In the presentation there is a deploy:fast and it directly starts with the watch tasks. In my case he deploys it everytime. On the server he has to unzip it also everytime.
In the serverconfig I set the developer mode and i use the standard sass-compiler.

Here is the log from the 'gulp watch':

[08:15:15] Starting 'build'...
[08:15:15] Starting 'build:clean'...
[08:15:15] Finished 'build:clean' after 354 ms
[08:15:15] Starting 'build:base'...
[08:15:18] Finished 'build:base' after 2.19 s
[08:15:18] Starting 'build:src'...
[08:15:18] Finished 'build:src' after 441 ms
[08:15:18] Starting 'build:web-inf'...
[08:15:18] Finished 'build:web-inf' after 7.41 ms
[08:15:18] Starting 'build:liferay-look-and-feel'...
[08:15:18] Finished 'build:liferay-look-and-feel' after 13 ms
[08:15:18] Starting 'build:hook'...
[08:15:18] Finished 'build:hook' after 7.22 ms
[08:15:18] Starting 'build:themelets'...
[08:15:18] Starting 'build:themelet-css'...
[08:15:18] Finished 'build:themelet-css' after 101 µs
[08:15:18] Starting 'build:themelet-images'...
[08:15:18] Finished 'build:themelet-images' after 228 µs
[08:15:18] Starting 'build:themelet-js'...
[08:15:18] Finished 'build:themelet-js' after 116 µs
[08:15:18] Starting 'build:themelet-templates'...
[08:15:18] Finished 'build:themelet-templates' after 148 µs
[08:15:18] Starting 'build:themelet-css-inject'...
[08:15:18] Starting 'build:themelet-js-inject'...
[08:15:18] gulp-inject Nothing to inject into _custom.scss.
[08:15:18] gulp-inject Nothing to inject into portal_normal.ftl.
[08:15:18] Finished 'build:themelet-css-inject' after 28 ms
[08:15:18] Finished 'build:themelet-js-inject' after 23 ms
[08:15:18] Finished 'build:themelets' after 80 ms
[08:15:18] Starting 'build:rename-css-dir'...
[08:15:18] Finished 'build:rename-css-dir' after 17 ms
[08:15:18] Starting 'build:prep-css'...
[08:15:18] Finished 'build:prep-css' after 23 µs
[08:15:18] Starting 'build:compile-css'...
[08:15:18] Starting 'build:compile-lib-sass'...
[08:15:19] Finished 'build:compile-lib-sass' after 1.05 s
[08:15:19] Finished 'build:compile-css' after 1.05 s
[08:15:19] Starting 'build:fix-url-functions'...
[08:15:19] Finished 'build:fix-url-functions' after 51 ms
[08:15:19] Starting 'build:move-compiled-css'...
[08:15:20] Finished 'build:move-compiled-css' after 885 ms
[08:15:20] Starting 'build:remove-old-css-dir'...
[08:15:20] Finished 'build:remove-old-css-dir' after 118 ms
[08:15:20] Starting 'build:fix-at-directives'...
[08:15:20] Finished 'build:fix-at-directives' after 55 ms
[08:15:20] Starting 'build:r2'...
[08:15:21] Finished 'build:r2' after 143 ms
[08:15:21] Starting 'plugin:war'...
[08:15:22] Finished 'plugin:war' after 1.15 s
[08:15:22] Starting 'build:war'...
[08:15:22] Finished 'build:war' after 11 µs
[08:15:22] Finished 'build' after 6.65 s
[08:15:22] Starting 'plugin:deploy'...
[08:15:22] Deploying to C:\DEV\server\sandbox\liferay-portal-7.0-ce-ga1\deploy
[08:15:22] Finished 'plugin:deploy' after 19 ms
[08:15:22] Starting 'deploy:war'...
[08:15:22] Finished 'deploy:war' after 20 µs
[08:15:22] Starting 'watch:teardown'...
[08:15:24] Starting 'watch:clean'...
[08:15:25] Finished 'watch:clean' after 477 ms
[08:15:25] Finished 'watch:teardown' after 2.95 s
[08:15:25] Finished 'deploy' after 9.64 s



Do you have any ideas where the problem is?

Marco
thumbnail
Marco Endres, modificado 7 Anos atrás.

RE: Slow gulp watch at themes for liferay 7

Regular Member Postagens: 112 Data de Entrada: 22/08/12 Postagens Recentes
A friend of mine tested it on a mac. There it was really fast.

Is it possible to make it as fast as it is on the mac/linux on windows?
thumbnail
Eric COQUELIN, modificado 7 Anos atrás.

RE: Slow gulp watch at themes for liferay 7

Expert Postagens: 254 Data de Entrada: 03/11/13 Postagens Recentes
I've got the same issue.

It deploys the war i/o only the modified files. As a result it takes as long as a new deployment.

And from a development perspective, it is not acceptable. emoticon
thumbnail
Marco Endres, modificado 7 Anos atrás.

RE: Slow gulp watch at themes for liferay 7 (Resposta)

Regular Member Postagens: 112 Data de Entrada: 22/08/12 Postagens Recentes
There was a update for the 'liferay-theme-tasks' and it looks like it works fine now. The only thing you have to do is:

npm update liferay-theme-tasks


The current version is: 1.2.3
Before it was: 1.2.0

Hope it helps

Marco