Skip to content

Commit

Permalink
Info logging for long npm/yarn install
Browse files Browse the repository at this point in the history
  • Loading branch information
max-leuthaeuser authored Aug 31, 2021
1 parent 07d137e commit 3a10919
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class TranspilerGroup(override val config: Config,
"@babel/plugin-transform-property-mutators"

private def isYarnAvailable: Boolean = {
logger.debug(s"\t+ Checking yarn ...")
logger.debug("\t+ Checking yarn ...")
ExternalCommand.run("yarn -v", projectPath.toString) match {
case Success(result) =>
logger.debug(s"\t+ yarn is available: $result")
Expand All @@ -46,10 +46,11 @@ class TranspilerGroup(override val config: Config,
} else {
s"npm install --save-dev $BABEL_PLUGINS && ${NpmEnvironment.NPM_INSTALL}"
}
logger.debug(s"\t+ Installing plugins ...")
logger.info("Installing project dependencies and plugins. This might take a while.")
logger.debug("\t+ Installing plugins ...")
ExternalCommand.run(command, projectPath.toString) match {
case Success(_) =>
logger.debug(s"\t+ Plugins installed")
logger.debug("\t+ Plugins installed")
true
case Failure(exception) =>
logger.debug(s"\t- Failed to install plugins: ${exception.getMessage}")
Expand Down

0 comments on commit 3a10919

Please sign in to comment.