Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beaufity output of eject.js script #769

Merged
merged 18 commits into from
Sep 30, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update console log output for Jest, Babel, ESLint update and group th…
…em under one statement
  • Loading branch information
azakordonets committed Sep 30, 2016
commit 2e208c9180a5acd33a605f65789b73f7595b01a1
10 changes: 5 additions & 5 deletions packages/react-scripts/scripts/eject.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,22 +104,22 @@ prompt(
});

console.log();
console.log(cyan('Adding configuration to ') + 'package.json' + cyan('...'));
// Add Jest config
console.log(cyan('Updating Jest config...'))
console.log(' Adding ' + cyan('Jest') + ' configuration')
appPackage.jest = createJestConfig(
filePath => path.join('<rootDir>', filePath),
null,
true
);

// Add Babel config
console.log();
console.log(cyan('Updating Babel config...'));

console.log(' Adding ' + cyan('Babel') + ' preset');
appPackage.babel = babelConfig;

// Add ESlint config
console.log();
console.log(cyan('Updating ESLint config...'));
console.log(' Adding ' + cyan('ESLint') +' configuration');
appPackage.eslintConfig = eslintConfig;

fs.writeFileSync(
Expand Down