-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathglobals.js
33 lines (33 loc) · 1.32 KB
/
globals.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
const History = require('./lib/History'),
PianobarConfig = require('./pianobarConfig'),
globals = {
ipc: require('node-ipc'),
Spawner: require('./spawnPianobar'),
logger: { log: console.log.bind(console), error: console.error.bind(console) },
log: console.log.bind(console),
History,
io: require('socket.io'),
response: require('./response'),
currentTime: new History(20, { key: 'now' }), //apply something so it only updates when time.now is different
current: new History(120, { key: 'coverArt' }),
pastSongs: new History(50, { key: 'coverArt' }),
isPlaying: new History(1),
pianobarLog: new History(200),
http: require('http'),
port: 8081,
url: require('url'),
fs: require('fs'),
path: require('path'),
ipcResponse: require('./ipcResponse'),
notifier: require('./lib/Notifier'),
shortcuts: require('./lib/Shortcuts'),
localtunnel: require('localtunnel'),
opn: require('opn'),
config: require('./config'),
nodeCleanup: require('node-cleanup'),
express: require('express'),
pianobarConfig: new PianobarConfig({}),
chalk: require('chalk'),
ServerCommands: require('./serverCommands'),
}
module.exports = globals