-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcli.js
executable file
·36 lines (30 loc) · 1.04 KB
/
cli.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
#!/usr/bin/env node
const vrs= '1.0.0'
const program= require('commander')
const cliFunctions= require('./src/cliFunctions')
// hardcoded project info
program
.version(vrs)
.description("commandline tool to create a boiler plate for node js and authentication on the top of passport JS, mongoose supported by default")
// commands
program
.command('run')
.alias('r')
.description("setup the complete boiler plate by answering a few questions")
.action(cliFunctions.runFunction)
program
.command('reactSetup')
.alias('rs')
.description("sets up versatile boiler plate for react")
.action(cliFunctions.reactFunction)
program
.command('reactFirebaseSetup')
.alias('rfs')
.description("sets up versatile boiler plate for react and firebase for serverless rendering")
.action(cliFunctions.reactFirebaseFunction)
// program
// .command('firebaseSetup')
// .alias('fs')
// .description("sets up simple firebase boiler plate")
// .action(cliFunctions.firebaseFunction)
program.parse(process.argv)