Thursday 23 July 2020

Liferay theme creation basic commands/tools to setup or configuration


Install Node.js
1.    Find the node-[version]-[os] installer from node site.
2.    Run the installer for your operating system and follow the instructions.
3.    Open a Command Prompt/Terminal window.
4.    Run node -v in your command line to verify your installation once you have installed node.js and npm.
o    The node version should be 8.x.x
5.    Run npm -version to double-check the appropriate version is installed.
o    The npm version should be 6.x.x
You can also find the Node installers at https://nodejs.org.
Install Yeoman and Gulp Dependencies
1.    Open the command line.
2.    Type npm install -g yo gulp.
o    Note: Users on OSX or Linux will need administrative access to run this command. To do this, they may need to run sudo before the command.
3.    Press Enter.
This should have installed the Yeoman and gulp global dependencies. Now we can go ahead and install the Liferay Theme Generator. If you are running Windows, you should also install Windows Build Tools before Installing the Liferay Theme Generator. Let's do this next.

Install the Liferay Theme Generator
1.    Type npm install -g generator-liferay-theme in the Command Prompt/Terminal.
o    Note: Like before, Users on OSX or Linux may need to run sudo before the command.
2.    Press Enter.
3.    Type yo in the command line to see that the generator is installed.
4.    Press Enter.
5.    Type Y or N if an initial prompt asks to collect data.
6.    Press Enter.
7.    Choose Get me out of here!.
8.    Press Enter.

No comments:

Post a Comment