Closed bartlangelaan closed 1 year ago
Hi @bartlangelaan
The plugin, via Composer, accepts different level of verbosity.
With composer compile-assets -v
you get enough infomration, very similar to what you ask.
If you want to also know the reason wht NPM/Yarn failed you've to use composer compile-assets -vvv
.
In our CI we indeed always use the -v
flag, which is a good indication of that being a good default.
But if the current output using the -v
flag becomes the default, the -v
flag output has to change, and that would affect a lot of existing CI pipelines. So I think it is something to consider for next major release.
Hey @gmazzap,
We are very happy with the auto-run option of the plugin, so it gets executed every time a composer install happens. To see more output however, the whole composer install command needs the -v
flag, which is way too verbose for everyting happening in Composer.
Maybe it is possible to not add any extra information when -v
is added, but just also show that information without -v
? It is always possible to use --quiet
if you don't want any output, right?
I understand @bartlangelaan
One of the reason in out workflow we turned of autorun was to be able to control verbosity separately from Composer.
I'll see if I can improve the default verbosity output.
Is your feature request related to a problem? Please describe. First of all, thanks for this plugin. It really helps with the JS in Composer problem!
One of the great things about this plugin, is that it automatically does a lot automatically without any developer needing to know the ins-and-outs. However, by default it is hard to see what is happening - which is somethimes frustrating when a package is installing/building slow or if something is failing.
For example, this is how a project I'm working in looks with this plugin:
The Composer Assets Compiler part really looks off, compared to other plugins (composer patches & drupal-scaffold).
And if something fails, the 'done' part just changes to 'failed.' - which is not very helpful.
Describe the solution you'd like I think it would be totally possible to improve the output a bit, so it looks more consistent with other Composer plugins, and gives a bit more output without being too verbose.
I believe that it is possible for multiple installs/builds to occur concurrently, right? In that case, I can imagine that something like this would be great:
Output like this is not too verbose, because it just generates 3 lines per package that is being compiled, or 1 line for packages that were already compiled. At the same time, it gives a great impression of what is happening (package manager used, actions currently running, error output). It also looks more consistent with other plugins, without the Inpsyde banner.
Describe alternatives you've considered
I did think about always enabling verbose mode, which gives more output. However, I just want this plugin to show more output, I don't need full verbosity output whenever an npm build is failing.