Skip to content

Commit

Permalink
chore: Use empty console.log calls instead of newline character
Browse files Browse the repository at this point in the history
  • Loading branch information
halfzebra committed Oct 11, 2018
1 parent 588fe31 commit f456bcb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
13 changes: 8 additions & 5 deletions bin/elm-app-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,15 @@ switch (script) {
* @return {undefined}
*/
function help(version) {
console.log('\nUsage: elm-app <command>\n');
console.log();
console.log('Usage: elm-app <command>');
console.log();
console.log('where <command> is one of:');
console.log(
' build, start, test, eject, ' + elmCommands.join(', ') + '\n'
);
console.log('\nElm ' + elmVersion + '\n');
console.log(' build, start, test, eject, ' + elmCommands.join(', '));
console.log();
console.log();
console.log('Elm ' + elmVersion);
console.log();
console.log(
'create-elm-app@' + version + ' ' + path.resolve(__dirname, '..')
);
Expand Down
6 changes: 4 additions & 2 deletions scripts/eject.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,14 @@ function performEject(pkg) {
// Update or create new package.json
fs.writeFileSync('package.json', JSON.stringify(pkg, null, 2));

console.log('\nPlease wait for npm to install all required dependencies...');
console.log();
console.log('Please wait for npm to install all required dependencies...');

// Install npm packages
spawn.sync('npm', ['install'], { stdio: 'inherit' });

console.log(chalk.green('\nEjected successfully!'));
console.log();
console.log(chalk.green('Ejected successfully!'));
}

// The following dependencies will be removed:
Expand Down

0 comments on commit f456bcb

Please sign in to comment.