Foren

Latest theme generator does not match docs

thumbnail
William Gosse, geändert vor 7 Jahren.

Latest theme generator does not match docs

Liferay Master Beiträge: 533 Beitrittsdatum: 04.07.10 Neueste Beiträge
I had originally posted a general them creation issue here: https://web.liferay.com/community/forums/-/message_boards/message/80103638

I read the generator documentation and it does not seem to jive with the current form of the generator I downloaded yesterday.

I followed the the instructions on https://github.com/liferay/generator-liferay-theme and not everything in its current state jives with whats on this page. For instance I'm suppose to get a prompt asking if I want Compass support. That never happens. When use gulp extends I'm suppose to be able to select unstyled or styled, never happens. Some of the gulp actions are throwing exceptions a baling.

C:\Dev2\workspace\themes\my-liferay-theme>gulp extend
[10:51:07] Using gulpfile C:\Dev2\workspace\themes\my-liferay-theme\gulpfile.js
[10:51:07] Starting 'extend'...
? What kind of theme asset would you like to extend? Base theme
? What base theme would you like to extend? Search globally installed npm modul
es (development purposes only)
[10:51:13] No globally installed theme found. Install some with "npm i -g
"
readline.js:930
throw err;
^

TypeError: Cannot read property 'realPath' of undefined

This is kind of frustrating. The SDK seems to be busted for themes and the new generator seems to be broken as well.

I have a hard time believing that this new generator is suppose be easier to setup and use than the SDK/IDE. I watched a video where one of the reason why they went to this tool was because ANT was to hard to install on Windows. But getting this new generator all setup correctly on Windows is easier?

Its definitely not easier to then the SDK/IDE theme development method. But it seems like Liferay is abandoning the SDK. Just Great.

This new generator tool is kind of immature for prime time.
thumbnail
Jack Bakker, geändert vor 7 Jahren.

RE: Latest theme generator does not match docs

Liferay Master Beiträge: 978 Beitrittsdatum: 03.01.10 Neueste Beiträge
Hey William, long time no chat.

I was an Eclipse user but now favor IntelliJ IDEA on Linux. I already prefer command line for git, maven (for 6.2) and many other. I have only recently started any hands-on dev for Liferay 7, and I kinda like this npm, yo, gulp approach for themes, layouts, themelets, ... , all from command line. In my case have a /home/jbakker/lr7/my72ce folder in which I run a 'blade init', and then create a ../lr7/themes/my-theme folder, and then in it from command line I do the "yo liferay-theme" and follow the instructions. I've been learning from the following: https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/themes-and-layout-templates.

Yep, some things are still in early evolution (there is a disclaimer currently up at the start of the theme generator tutorial "Note: The Liferay Themes Generator is still in development"), Perhaps JAVA developers familiar with Liferay IDE/Studio /w Eclipse find this approach for theme dev weird but I would imagine many front-end developers will be attracted to it.
thumbnail
William Gosse, geändert vor 7 Jahren.

RE: Latest theme generator does not match docs

Liferay Master Beiträge: 533 Beitrittsdatum: 04.07.10 Neueste Beiträge
I thought I had deleted this post. I did get the new theme generator working and I'm already using it to create a custom theme and layout.

Once I got the hang of it its working for me ok now. I can see the advantages this new tool can have.
thumbnail
Jack Bakker, geändert vor 7 Jahren.

RE: Latest theme generator does not match docs

Liferay Master Beiträge: 978 Beitrittsdatum: 03.01.10 Neueste Beiträge
devcon 2015 video useful too: https://www.youtube.com/watch?v=GtJoSOOJb8c