packages/liferay-theme-tasks/lib/checkNodeVersion.js
/**
 * Rather than checking for a specific version of NodeJS, we check for features
 * that we expect to be present.
 */
Rather than checking for a specific version of NodeJS, we check for features
that we expect to be present.
Rather than checking for a specific version of NodeJS we check for features that we expect to be present .
function checkNodeVersion() {
	const REQUIREMENTS = [
		() => !!Object.values,
	];
	if (!REQUIREMENTS.every(Boolean)) {
		console.log(
			'warning: liferay-theme-tasks requires a more recent version ' +
				'of NodeJS - please consider upgrading: ' +
				'https://nodejs.org/en/about/releases/'
		);
	}
}
function checkNodeVersion ( ) { const REQUIREMENTS = [ ( ) => ! ! Object . values , ] ; if ( ! REQUIREMENTS . every ( Boolean ) ) { console . log ( 'warning: liferay-theme-tasks requires a more recent version ' + 'of NodeJS - please consider upgrading: ' + 'https://nodejs.org/en/about/releases/' ) ; } }
Rather than checking for a specific version of NodeJS, we check for features
 that we expect to be present.
Rather than checking for a specific version of NodeJS we check for features that we expect to be present .
// Added to NodeJS v7: https://nodejs.org/fa/blog/release/v7.0.0/ // eslint-disable-next-line no-console