mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
NodeVersion.js: do not use callbacks, simplify calling style in server.js
This commit is contained in:
parent
36addd2205
commit
9d9b7c9faf
2 changed files with 16 additions and 18 deletions
|
@ -28,6 +28,17 @@ var log4js = require('log4js')
|
|||
|
||||
log4js.replaceConsole();
|
||||
|
||||
/*
|
||||
* early check for version compatibility before calling
|
||||
* any modules that require newer versions of NodeJS
|
||||
*/
|
||||
NodeVersion.enforceMinNodeVersion('6.9.0');
|
||||
|
||||
/*
|
||||
* Since Etherpad 1.8.0, at least NodeJS 8.9.0 will be required
|
||||
*/
|
||||
NodeVersion.checkDeprecationStatus('8.9.0', '1.8.0');
|
||||
|
||||
/*
|
||||
* start up stats counting system
|
||||
*/
|
||||
|
@ -43,16 +54,6 @@ var settings
|
|||
var npm = require("npm/lib/npm.js");
|
||||
|
||||
async.waterfall([
|
||||
function(callback)
|
||||
{
|
||||
NodeVersion.enforceMinNodeVersion('6.9.0', callback);
|
||||
},
|
||||
|
||||
function(callback)
|
||||
{
|
||||
NodeVersion.checkDeprecationStatus('8.9.0', '1.8.0', callback);
|
||||
},
|
||||
|
||||
// load npm
|
||||
function(callback) {
|
||||
npm.load({}, function(er) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue