Using gulp to help streamline the Skinning process
Warning
This is experimental and not fully flushed out
In an attempt to make the skinning process more streamlined and to lessen the need to continuously do deployments to compile the .less files, I have created a gulp file that will assist in automating the .less compilations and deploy the files to Tomcat.
Overview
The general workflow is as follows:
Fire up gulp
Make your change to the skin .less file
Save your changes
gulp detects the change and fires off a task to compile the .less
Once the gulp Less task is complete, it copies the generated .css to the Tomcat uPortal instance
Switch to browser and hit refresh to see your changes
Requirements
node.js - Refer to http://nodejs.org/ for instructions for installing node.js
Installing gulp
It is highly recommended that you install gulp globally, since you may want to use with the following command
npm install -g gulpThat is it!
Using gulp with uPortal
Common Issues
Not seeing changes
Is there a gulp error?
is the skin correct?
is the destination path correct?
Getting gulp errors