-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
executable file
·46 lines (36 loc) · 783 Bytes
/
Copy pathindex.js
File metadata and controls
executable file
·46 lines (36 loc) · 783 Bytes
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
#! /usr/bin/env node
const program = require('commander');
const {
startProject,
renameProject,
defaultPrompter
} = require('./helpers');
const CFonts = require('cfonts');
CFonts.say('FE Bootup!', {
font: 'block',
align: 'left',
colors: ['blue'],
background: 'Black',
letterSpacing: 0.3,
lineHeight: 1,
space: true,
maxLength: '0'
});
if (process.argv.length < 3) {
defaultPrompter();
} else {
program
.version('0.0.1')
.description('Frontend Bootstrap!');
program
.command('new <name>')
.alias('-n')
.description('Start a new project')
.action(startProject);
program
.command('rename <name>')
.alias('-r')
.description('Renames current project')
.action(renameProject);
program.parse(process.argv);
}