Skip to content

Commit

Permalink
Merge pull request #6 from ShiftLeftSecurity/max/infoForNpmYarn
Browse files Browse the repository at this point in the history
Info logging for long npm/yarn install
  • Loading branch information
max-leuthaeuser authored Sep 1, 2021
2 parents 07d137e + 3a10919 commit 02c8874
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 02c8874

Please sign in to comment.