-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.js
63 lines (58 loc) · 1.73 KB
/
build.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
const chalk = require('chalk')
const boxen = require('boxen')
const fs = require('fs')
const path = require('path')
const options = {
padding: 1,
margin: 1,
borderStyle: 'round'
}
const data = {
name: chalk.white(' Shaurya Vardhan Singh'),
handle: chalk.white.bold('wulfor'),
twitter: chalk.gray('https://twitter.com/') + chalk.red('wulforr'),
github: chalk.gray('https://github.com/') + chalk.green('wulforr'),
linkedin:
chalk.gray('https://linkedin.com/in/') +
chalk.blue('shaurya-vardhan-singh'),
labelTwitter: chalk.white.bold(' Twitter:'),
labelGitHub: chalk.white.bold(' GitHub:'),
labelLinkedIn: chalk.white.bold(' LinkedIn:'),
descriptionLine1: chalk.white(
'Hi, I am Shaurya a Software Developer with a knack for building things.'
),
descriptionLine2: chalk.white(
' I created this tool for introducing myself in a fun way'
),
descriptionLine3: chalk.white(
' Below are some links to get in touch with me'
)
}
const newline = '\n'
const heading = `${data.name} / ${data.handle}`
const twittering = `${data.labelTwitter} ${data.twitter}`
const githubing = `${data.labelGitHub} ${data.github}`
const linkedining = `${data.labelLinkedIn} ${data.linkedin}`
const descriptioningLine1 = `${data.descriptionLine1}`
const descriptioningLine2 = `${data.descriptionLine2}`
const descriptioningLine3 = `${data.descriptionLine3}`
const output =
heading +
newline +
newline +
descriptioningLine1 +
newline +
descriptioningLine2 +
newline +
descriptioningLine3 +
newline +
newline +
twittering +
newline +
githubing +
newline +
linkedining
fs.writeFileSync(
path.join(__dirname, 'bin/output'),
chalk.yellowBright(boxen(output, options))
)