broccolijs / broccoli

Browser compilation library – an asset pipeline for applications that run in the browser
https://broccoli.build
MIT License
3.33k stars 216 forks source link

CLI improvements #331

Closed stefanpenner closed 6 years ago

stefanpenner commented 6 years ago

Guiding Ideas:

broccoli's cli should have:

Stuff

chrmod commented 6 years ago

@stefanpenner what --watch option should do for build command?

stefanpenner commented 6 years ago

@stefanpenner what --watch option should do for build command?

build --watch should be the same as serve but without HTTP server.

In theory we may just want to have a build that optionally:

chrmod commented 6 years ago

@stefanpenner any suggestions on how help should change its behavior? do we look for more informative descriptions or rather stylistic improvements like colors?

stefanpenner commented 6 years ago

@chrmod I believe help should enable discovery of functionality. For example help serve should inform us of the various options/arguments. If that is already addressed (i didn't think it was) I would be interested in hearing from you what you feel would improve the help UX.

chrmod commented 6 years ago

@stefanpenner

those are the outputs that commander.js currently generates:

I would say it is not bad, but in fact I do prefer how ember-cli does it, and it is:

AFAIK commander.js tries to stay away from stylistic sugar so if we want something colors, we would have to reimplement that part of commander (should not be much work, but still).

As of this moment broccoli has only two commands which share most options, so there is not much to work with really.

ro0gr commented 6 years ago

json output is one more cool feature from ember-cli.

stefanpenner commented 6 years ago

I think this issue can be closed now. I feel what we have is enough to warrant a release. We can explore some next steps, and open appropriate issues for those once decided.