https://github.com/savoirfairelinux/lightweight-liferay-theme
An example of a lightweight liferay theme
https://github.com/savoirfairelinux/lightweight-liferay-theme
Last synced: 4 months ago
JSON representation
An example of a lightweight liferay theme
- Host: GitHub
- URL: https://github.com/savoirfairelinux/lightweight-liferay-theme
- Owner: savoirfairelinux
- License: gpl-3.0
- Created: 2017-12-04T19:37:22.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-04T19:47:00.000Z (over 7 years ago)
- Last Synced: 2024-12-26T18:22:42.024Z (6 months ago)
- Language: FreeMarker
- Size: 175 KB
- Stars: 2
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Lightweight Liferay Theme

## Instalation
### Configure
The actual repo architecture is for a maven project, but you can easily change that.
An important conf, on the gulpfile:
```js
var CONFIG = {
url: 'lightweight.vm',
outputFolder: './src/main/webapp/',
distFolder: './target/',
installedFolder: '/mnt/deploy-themes/',
localDeployPath: '../vagrant/deploy-themes/', // If your liferay server is on your machine (not on a VM), should be same as CONFIG.installedFolder
themeName: 'lightweight-theme'
```This config exemple is for a liferay instance on a virtual machine, but you can edit this to use your localhost liferay server.
* **Url**: The url of your liferay instance (localhost, app.dev, etc...)
* **outputFolder**: The folder of the "pré-compiled" theme, that will be transform to a .war file
* **distFolder**: The path where the the war file is created
* **installedFolder**: A path to let liferay (Osgi) find the theme.
* **localDeployPath**: A path for you local machine (can be same as **installedFolder** if your using on a localhost liferay)
* **themeName**: Your theme name### Requierments:
* NodeJs, version **6.9.1** (v6 minimum).
* **Tips:** use **nvm** (node verison manager)
* yarn **>=0.17.10** (`npm install -g yarn`)### Install:
Install dependencies:
```sh
yarn install
```## Develop
Build the theme:
```sh
gulp build
```Deploy for your local environement
```sh
gulp deployLocal
```Auto-compile and sync files on your local environement (only after a gulp deployLocal)
```sh
gulp watch
```## Liferay layout exemples
* **IMPORTANT** Layout should have the "main-content" id
```html
$processor.processColumn("column-1", "portlet-column-content portlet-column-content-only")
```