File tree Expand file tree Collapse file tree 2 files changed +3
-24
lines changed Expand file tree Collapse file tree 2 files changed +3
-24
lines changed Original file line number Diff line number Diff line change 48
48
"eslint-plugin-react" : " 7.11.1" ,
49
49
"file-loader" : " 2.0.0" ,
50
50
"fork-ts-checker-webpack-plugin-alt" : " 0.4.14" ,
51
+ "fs-cli-goodies" : " github:fs-webdev/fs-cli-goodies" ,
51
52
"fs-extra" : " 7.0.0" ,
52
53
"html-webpack-plugin" : " 4.0.0-alpha.2" ,
53
54
"identity-obj-proxy" : " 3.0.0" ,
Original file line number Diff line number Diff line change 3
3
const fs = require ( 'fs-extra' ) ;
4
4
const os = require ( 'os' ) ;
5
5
const path = require ( 'path' ) ;
6
- const chalk = require ( 'chalk ' ) ;
6
+ const fsCli = require ( 'fs-cli-goodies ' ) ;
7
7
const inquirer = require ( 'inquirer' ) ;
8
8
const osUtils = require ( './osUtils' ) ;
9
9
@@ -14,30 +14,8 @@ module.exports = {
14
14
cleanupFrontierCode,
15
15
} ;
16
16
17
- function help ( ) {
18
- const g = chalk . green ;
19
- const y = chalk . gray ;
20
- const b = chalk . yellow ;
21
-
22
- const TITLE = chalk . bold . underline ( 'Frontier React Scripts' ) ;
23
- const DESC = 'The Coolest React-Scripterizer You Ever Seen.' ;
24
-
25
- return `
26
- ${ g ( '┏━━┓' ) }
27
- ${ y ( '┏━┓' ) } ${ g ( '┗━━┛' ) } ${ y ( '┏━━━━┓' ) } ${ TITLE }
28
- ${ y ( '┗━┛' ) } ${ b ( '┏━━┓' ) } ${ y ( '┃ ┃' ) }
29
- ${ g ( '┏━━━━┓' ) } ${ b ( '┗━━┛' ) } ${ y ( '┗━━━━┛' ) } ${ DESC }
30
- ${ g ( '┃ ┃' ) } ${ b ( '//' ) } ${ y ( '┏━━━━┓' ) } ${ g ( '⏠' ) }
31
- ${ g ( '┗━━━━┛' ) } ${ b ( '/ /' ) } ${ y ( '┃ ┃' ) } ${ g ( '⏡' ) }
32
- ${ b ( '\\\\ │ │' ) } ${ y ( '┗━━━━┛' ) }
33
- ${ b ( '\\ \\ //' ) }
34
- ${ b ( '\\ \\' ) }
35
- ${ b ( '\\ \\' ) }
36
- ` ;
37
- }
38
-
39
17
async function promptForConfig ( ) {
40
- console . log ( help ( ) ) ;
18
+ console . log ( fsCli . fsLogo ( 'Frontier React Scripts' ) ) ;
41
19
const questions = [
42
20
{
43
21
type : 'checkbox' ,
You can’t perform that action at this time.
0 commit comments