Skip to content

Commit 7136459

Browse files
committed
moving the fs-logo to its own module
1 parent 5479a68 commit 7136459

File tree

2 files changed

+3
-24
lines changed

2 files changed

+3
-24
lines changed

packages/react-scripts/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"eslint-plugin-react": "7.11.1",
4949
"file-loader": "2.0.0",
5050
"fork-ts-checker-webpack-plugin-alt": "0.4.14",
51+
"fs-cli-goodies": "github:fs-webdev/fs-cli-goodies",
5152
"fs-extra": "7.0.0",
5253
"html-webpack-plugin": "4.0.0-alpha.2",
5354
"identity-obj-proxy": "3.0.0",

packages/react-scripts/scripts/utils/frontierInit.js

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const fs = require('fs-extra');
44
const os = require('os');
55
const path = require('path');
6-
const chalk = require('chalk');
6+
const fsCli = require('fs-cli-goodies');
77
const inquirer = require('inquirer');
88
const osUtils = require('./osUtils');
99

@@ -14,30 +14,8 @@ module.exports = {
1414
cleanupFrontierCode,
1515
};
1616

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-
3917
async function promptForConfig() {
40-
console.log(help());
18+
console.log(fsCli.fsLogo('Frontier React Scripts'));
4119
const questions = [
4220
{
4321
type: 'checkbox',

0 commit comments

Comments
 (0)