How to use liferay-theme-tasks - 5 common examples

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 / 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*/)
				.join('\n\t\t')
				.replace('\t\t}', '\t}');
		}
		this.liferayVersion = liferayVersion;
		this.themeName = props.themeName;
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);
	}
github liferay / liferay-js-themes-toolkit / packages / generator-liferay-theme / generators / app / index.js View on Github external
this.on('npmInstall:end', () => {
				const gulp = require('gulp');
				require('liferay-theme-tasks').registerTasks({gulp});
				gulp.start('init');
			});
github liferay / liferay-js-themes-toolkit / packages / generator-liferay-theme / generators / layout / index.js View on Github external
this.on('npmInstall:end', () => {
				const gulp = require('gulp');
				require('liferay-theme-tasks/plugin').registerTasks({
					gulp,
				});
				gulp.start('init');
			});

liferay-theme-tasks

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

MIT
Latest version published 10 days ago

Package Health Score

81 / 100
Full package analysis