Merge pull request #1715 from thelounge/astorije/deprecate-node-v4
Deprecate support of Node v4 in preparation of The Lounge v3
This commit is contained in:
commit
f2d9ef62cf
@ -7,13 +7,18 @@ const colors = require("colors/safe");
|
|||||||
const Helper = require("../helper");
|
const Helper = require("../helper");
|
||||||
const Utils = require("./utils");
|
const Utils = require("./utils");
|
||||||
|
|
||||||
|
if (require("semver").lt(process.version, "6.0.0")) {
|
||||||
|
log.warn(`Support of Node.js v4 is ${colors.bold("deprecated")} and will be removed in The Lounge v3.`);
|
||||||
|
log.warn("Please upgrade to Node.js v6 or more recent.");
|
||||||
|
}
|
||||||
|
|
||||||
program.version(Helper.getVersion(), "-v, --version")
|
program.version(Helper.getVersion(), "-v, --version")
|
||||||
.option("--home <path>", `${colors.bold("[DEPRECATED]")} Use the ${colors.green("LOUNGE_HOME")} environment variable instead.`)
|
.option("--home <path>", `${colors.bold("[DEPRECATED]")} Use the ${colors.green("LOUNGE_HOME")} environment variable instead.`)
|
||||||
.on("--help", Utils.extraHelp)
|
.on("--help", Utils.extraHelp)
|
||||||
.parseOptions(process.argv);
|
.parseOptions(process.argv);
|
||||||
|
|
||||||
if (program.home) {
|
if (program.home) {
|
||||||
log.warn(`${colors.green("--home")} is ${colors.bold("deprecated")} and will be removed in a future version.`);
|
log.warn(`${colors.green("--home")} is ${colors.bold("deprecated")} and will be removed in The Lounge v3.`);
|
||||||
log.warn(`Use the ${colors.green("LOUNGE_HOME")} environment variable instead.`);
|
log.warn(`Use the ${colors.green("LOUNGE_HOME")} environment variable instead.`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ var manager = null;
|
|||||||
|
|
||||||
module.exports = function() {
|
module.exports = function() {
|
||||||
log.info(`The Lounge ${colors.green(Helper.getVersion())} \
|
log.info(`The Lounge ${colors.green(Helper.getVersion())} \
|
||||||
(node ${colors.green(process.versions.node)} on ${colors.green(process.platform)} ${process.arch})`);
|
(Node.js ${colors.green(process.versions.node)} on ${colors.green(process.platform)} ${process.arch})`);
|
||||||
log.info(`Configuration file: ${colors.green(Helper.CONFIG_PATH)}`);
|
log.info(`Configuration file: ${colors.green(Helper.CONFIG_PATH)}`);
|
||||||
|
|
||||||
if (!fs.existsSync("public/js/bundle.js")) {
|
if (!fs.existsSync("public/js/bundle.js")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user