Commit c80877af authored by Rolf Forst's avatar Rolf Forst
Browse files

Refactoring

parent 986cd734
......@@ -2,21 +2,21 @@
'use strict';
var chalk = require('chalk');
let chalk = require('chalk');
var currentNodeVersion = process.versions.node,
currentVersion = currentNodeVersion.split('.'),
currentMajorVersion = currentVersion[0],
minAllowedMajorVersion = 13;
let currentNodeVersion = process.versions.node,
currentVersion = currentNodeVersion.split('.'),
currentMajorVersion = currentVersion[0],
minAllowedMajorVersion = 13;
if (currentMajorVersion < minAllowedMajorVersion) {
console.error(
chalk.red(
'Auf dem PC läuft Node Version ' + currentNodeVersion + '.\n' +
'Create-WP benötigt mindestens Node Version ' + minAllowedMajorVersion + ' oder höher.'
'Auf dem PC läuft Node Version ' + currentNodeVersion + '.\n' +
'Create-WP benötigt mindestens Node Version ' + minAllowedMajorVersion + '.'
)
);
process.exit(1);
}
require('./generator');
require('./generator');
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment