Skip to content

add consoleLog function #1

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

Open
wants to merge 1 commit into
base: react-ats-version
Choose a base branch
from
Open
Changes from all commits
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
6 changes: 6 additions & 0 deletions packages/react-scripts/scripts/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ const path = require('path');
const chalk = require('chalk');
const spawn = require('react-dev-utils/crossSpawn');

const consoleLog = (info) => {
console.log(info);
Copy link
Collaborator

@CampbellGit CampbellGit Sep 7, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je suis désolé, mais je ne comprends pas trop, ta méthode fait juste un console.log.
J'imagine que c'est lié à autre chose, du coup, est-ce qu'il y aurait moyen de mettre un commentaire ou déplacer ce code dans une prochaine PR ?

}

module.exports = function(
appPath,
appName,
Expand Down Expand Up @@ -269,6 +273,8 @@ module.exports = function(
}
console.log();
console.log('Happy hacking!');

consoleLog(appPackage);
};

function isReactInstalled(appPackage) {
Expand Down