-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.js
28 lines (24 loc) · 861 Bytes
/
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
#!/usr/bin/env node
const chalk = require("chalk");
const boxen = require("boxen");
const options = {
padding: 0,
margin: 1,
borderStyle: "round",
borderColor: "cyan"
};
const fs = require("fs");
const path = require("path");
let output = `
${chalk.cyan.bold("Benoît Berthoud")}
---------------------------------------
React Redux developer
https://${chalk.green("github")}.com/${chalk.cyan("bn4z")}
https://${chalk.green("lepogona")}.com (personal project)
https://${chalk.green("linkedin")}.com/in/${chalk.cyan("benoit-berthoud")}
---------------------------------------
${chalk.cyan("benoit@8vectors.com")}`;
const [, ...trimmed] = output.split("\n");
const card = chalk.white(boxen(trimmed.join("\n"), options));
fs.writeFileSync(path.join(__dirname, "bin/output"), card);
console.log(card);