mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-25 08:54:10 +00:00
chore(cloudcmd) lint
This commit is contained in:
parent
81e76857da
commit
ef10ebe97c
40 changed files with 137 additions and 134 deletions
|
|
@ -12,25 +12,25 @@ const wraptile = require('wraptile');
|
|||
const compression = require('compression');
|
||||
const threadIt = require('thread-it');
|
||||
|
||||
const two = currify((f, a, b) => f(a, b));
|
||||
const exit = require(DIR_SERVER + 'exit');
|
||||
const opn = require('open');
|
||||
|
||||
const express = require('express');
|
||||
const io = require('socket.io');
|
||||
const tryRequire = require('tryrequire');
|
||||
|
||||
const exitPort = two(exit, 'cloudcmd --port: %s');
|
||||
const bind = (f, self) => f.bind(self);
|
||||
const promisifySelf = squad(promisify, bind);
|
||||
|
||||
const two = currify((f, a, b) => f(a, b));
|
||||
const shutdown = wraptile(async (promises) => {
|
||||
console.log('closing cloudcmd...');
|
||||
await Promise.all(promises);
|
||||
threadIt.terminate();
|
||||
process.exit(0);
|
||||
});
|
||||
const promisifySelf = squad(promisify, bind);
|
||||
|
||||
const opn = require('open');
|
||||
const express = require('express');
|
||||
const io = require('socket.io');
|
||||
|
||||
const tryRequire = require('tryrequire');
|
||||
const exitPort = two(exit, 'cloudcmd --port: %s');
|
||||
const logger = tryRequire('morgan');
|
||||
|
||||
module.exports = async (options, config) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue