How to use the liferay-theme-tasks/lib/devDependencies.default function in liferay-theme-tasks

To help you get started, we’ve selected a few liferay-theme-tasks examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github liferay / liferay-js-themes-toolkit / packages / generator-liferay-theme / generators / app / index.js View on Github external
_promptCallback(props) {
		const liferayVersion = props.liferayVersion;

		this.appname = props.themeId;
		this.fontAwesome = props.fontAwesome;

		const devDependenciesToInsert = devDependencies.default;

		if (liferayVersion !== '*') {
			if (this.fontAwesome) {
				const fontAwesomeVersion =
					devDependencies.optional['liferay-font-awesome'];
				devDependenciesToInsert[
					'liferay-font-awesome'
				] = fontAwesomeVersion;
			}

			this.devDependencies = JSON.stringify(
				devDependenciesToInsert,
				null,
				2
			)
				.split(/\n\s*/)
github liferay / liferay-js-themes-toolkit / packages / generator-liferay-theme / generators / layout / index.js View on Github external
_promptCallback(props) {
		const layoutId = props.layoutId;
		const liferayVersion = props.liferayVersion;

		this.layoutId = layoutId;
		this.layoutName = props.layoutName;
		this.liferayVersion = liferayVersion;
		this.tasksVersion = devDependencies.default['liferay-theme-tasks'];
		this.templateFilename = snakeCase(layoutId) + '.ftl';
		this.themeLayout = false;
		this.thumbnailFilename = snakeCase(layoutId) + '.png';

		this._setPackageVersion(this.liferayVersion);
	}

liferay-theme-tasks

A set of tasks for building and deploying Liferay Portal themes.

MIT
Latest version published 8 months ago

Package Health Score

74 / 100
Full package analysis