Skip to content

Commit fa674df

Browse files
btnwtnfeiqitian
authored andcommitted
Improve the output of scripts/init.js (facebook#629)
* Improve the output of scripts/init.js * Add semi-colons;
1 parent 6e6cacd commit fa674df

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

scripts/init.js

+14-5
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,24 @@ module.exports = function(appPath, appName, verbose, originalDirectory) {
9696
console.log('Success! Created ' + appName + ' at ' + appPath + '.');
9797
console.log('Inside that directory, you can run several commands:');
9898
console.log();
99-
console.log(' * npm start: Starts the development server.');
100-
console.log(' * npm test: Starts the test runner.');
101-
console.log(' * npm run build: Bundles the app into static files for production.');
102-
console.log(' * npm run eject: Removes this tool. If you do this, you can’t go back!');
99+
console.log(chalk.cyan('npm start'));
100+
console.log(' Starts the development server.');
101+
console.log();
102+
console.log(chalk.cyan('npm test'));
103+
console.log(' Starts the test runner.');
104+
console.log();
105+
console.log(chalk.cyan('npm run build'));
106+
console.log(' Bundles the app into static files for production.');
107+
console.log();
108+
console.log(chalk.cyan('npm run eject'));
109+
console.log(' Removes this tool and copies build dependencies, configs,');
110+
console.log(' and scripts into the app directory.');
111+
console.log(' If you do this, you can’t go back!');
103112
console.log();
104113
console.log('We suggest that you begin by typing:');
105114
console.log();
106115
console.log(' cd', cdpath);
107-
console.log(' npm start');
116+
console.log(' ' + chalk.cyan('npm start'));
108117
if (readmeExists) {
109118
console.log();
110119
console.log(chalk.yellow('You had a `README.md` file, we renamed it to `README.old.md`'));

0 commit comments

Comments
 (0)