@liferay/generator-js
Version:
Yeoman generators for Liferay DXP and Portal CE JavaScript projects.
35 lines (34 loc) • 923 B
TypeScript
/**
* SPDX-FileCopyrightText: © 2017 Liferay, Inc. <https://liferay.com>
* SPDX-License-Identifier: LGPL-3.0-or-later
*/
import Generator from 'yeoman-generator';
interface TargetDescription {
category: string;
name: string;
priority: number;
}
/**
* Default main generator that makes the user choose between available targets.
*/
export default class extends Generator {
/**
* Standard Yeoman initialization function
*/
initializing(): Promise<void>;
/**
* Find existing target generators and return them as a prompt choices
* object.
* @return {Array} a prompt choices object
*/
_findTargets(): {
line: string;
type: string;
}[];
/**
* Get target categories based on their descriptions.
* @return {Array} an array containing the categories
*/
_getTargetCategories(tds: TargetDescription[]): string[];
}
export {};