forked from pinittome/pinitto.me
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
32 lines (29 loc) · 1.12 KB
/
index.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
require('colors')
var readJson = require('read-package-json')
environment = process.env.NODE_ENV || 'production'
var helloWorld = ["",
" Welcome to...".green,
" ___ _ _ __ __".red,
" / _ \\(_) ___ (_)/ /_ / /_ ___ __ _ ___".red,
" / ___// // _ \\ / // __// __// _ \\ _ / ' \\/ -_)".red,
" /_/ /_//_//_//_/ \\__/ \\__/ \\___/(_)/_/_/_/\\__/".red,
" ".red,
"The open source, infinte-scrolling, realtime virtual corkboard".green,
"",
" Created by: ".cyan,
" - Lloyd Watkin (@lloydwatkin)".cyan,
" - Jonny Heavey (@jonnyheavey)".cyan,
"",
" www.pinitto.me ::: github.com/pinittome ::: @pinittome".green,
""].join('\n')
console.log(helloWorld)
readJson('./package.json', function (error, data) {
if (error) {
console.error("There was an error reading package.json, quitting...".red)
process.exit()
}
config = require('./src/config')(data)
require('./src/build')
httpServer = require('./src/server')
require('./src/io')
})