npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

generator-liferay-theme

v10.2.1

Published

Yeoman generator for creating Liferay themes

Downloads

902

Readme

Liferay Theme Generator Build Status Coverage Status

Note: the Liferay theme generator is still in development and is not guaranteed to work on all platforms/environments.

Liferay theme generator allows you to generate new themes to be used with Liferay Portal, and supplies you with the necessary tools to deploy and make quick modifications to your theme.

Dependencies

  1. Install Node.JS, if you don't have it yet.
  2. Run <sudo> npm install -g yo to install global dependencies.

Generator use

  1. Install generator: <sudo> npm install -g generator-liferay-theme
  2. Run yo liferay-theme to start theme generator and follow prompts to name and configure your theme.

Note: the generator will create a new folder in your current directory that will house your theme.

Usage on Windows

Some additional steps may be required when using the generator on Windows. We use node-sass, which requires node-gyp to run, and node-gyp requires Python to be installed. You can read more at the following link: node-gyp Installation

Generators

Available generators:

Create

yo liferay-theme

The default liferay-theme generator creates a new theme that inherits styles from liferay-theme-styled or liferay-theme-unstyled.

Layout

yo liferay-theme:layout

The liferay-theme:layout generator creates a layout template.

If you run the generator from the root directory of a theme (created with yo liferay-theme) it will add the layout template as a part of the theme in src/layouttpl.

Themelet

yo liferay-theme:themelet

The liferay-theme:themelet generator enables you to create theme fragments called themelets.

The advantage of themelets is that reused code/components that often exist in multiple themes can be abstracted and easily reused in all of your themes.

Gulp tasks

Once the generator is done creating your theme, there are multiple gulp tasks available to expedite theme development. See liferay-theme-tasks for more detail.

Development

To test an unpublished change to the generator:

# Test the main theme generator:
yo ./packages/generator-liferay-theme

# Test the layout generator:
yo ./packages/generator-liferay-theme/generators/layout/index.js

# Test the themelet generator:
yo ./packages/generator-liferay-theme/generators/themelet/index.js

MIT