move and organize additional imports
This commit is contained in:
parent
c0b1ea5f4c
commit
9087736835
24
server.js
24
server.js
|
@ -11,25 +11,28 @@ const readline = require('readline');
|
||||||
const { TextEncoder, TextDecoder } = require('util');
|
const { TextEncoder, TextDecoder } = require('util');
|
||||||
|
|
||||||
// cli/fs related library imports
|
// cli/fs related library imports
|
||||||
const yargs = require('yargs/yargs');
|
const commandExistsSync = require('command-exists').sync;
|
||||||
const { hideBin } = require('yargs/helpers');
|
const sanitize = require('sanitize-filename');
|
||||||
const simpleGit = require('simple-git');
|
const simpleGit = require('simple-git');
|
||||||
const writeFileAtomicSync = require('write-file-atomic').sync;
|
const writeFileAtomicSync = require('write-file-atomic').sync;
|
||||||
const sanitize = require('sanitize-filename');
|
const yargs = require('yargs/yargs');
|
||||||
|
const { hideBin } = require('yargs/helpers');
|
||||||
|
|
||||||
// express related library imports
|
// express/net related library imports
|
||||||
const express = require('express');
|
const express = require('express');
|
||||||
const compression = require('compression');
|
const compression = require('compression');
|
||||||
const responseTime = require('response-time');
|
const cookieParser = require('cookie-parser');
|
||||||
const multer = require("multer");
|
const multer = require("multer");
|
||||||
|
const responseTime = require('response-time');
|
||||||
|
const DeviceDetector = require("device-detector-js");
|
||||||
|
|
||||||
// image processing related library imports
|
// image processing related library imports
|
||||||
const extract = require('png-chunks-extract');
|
const exif = require('piexifjs');
|
||||||
const encode = require('png-chunks-encode');
|
const encode = require('png-chunks-encode');
|
||||||
const PNGtext = require('png-chunk-text');
|
const extract = require('png-chunks-extract');
|
||||||
const jimp = require('jimp');
|
const jimp = require('jimp');
|
||||||
const mime = require('mime-types');
|
const mime = require('mime-types');
|
||||||
const exif = require('piexifjs');
|
const PNGtext = require('png-chunk-text');
|
||||||
const webp = require('webp-converter');
|
const webp = require('webp-converter');
|
||||||
|
|
||||||
createDefaultFiles();
|
createDefaultFiles();
|
||||||
|
@ -93,14 +96,13 @@ const open = require('open');
|
||||||
const basicAuthMiddleware = require('./src/middleware/basicAuthMiddleware');
|
const basicAuthMiddleware = require('./src/middleware/basicAuthMiddleware');
|
||||||
const contentManager = require('./src/content-manager');
|
const contentManager = require('./src/content-manager');
|
||||||
|
|
||||||
const cookieParser = require('cookie-parser');
|
|
||||||
const ipaddr = require('ipaddr.js');
|
const ipaddr = require('ipaddr.js');
|
||||||
const json5 = require('json5');
|
const json5 = require('json5');
|
||||||
|
|
||||||
const DeviceDetector = require("device-detector-js");
|
|
||||||
|
|
||||||
const utf8Encode = new TextEncoder();
|
const utf8Encode = new TextEncoder();
|
||||||
const commandExistsSync = require('command-exists').sync;
|
|
||||||
|
|
||||||
// impoort from statsHelpers.js
|
// impoort from statsHelpers.js
|
||||||
const statsHelpers = require('./statsHelpers.js');
|
const statsHelpers = require('./statsHelpers.js');
|
||||||
|
|
Loading…
Reference in New Issue