simonihmig / ember-cli-bundle-analyzer

Analyze the size and contents of your Ember app's bundles
MIT License
99 stars 2 forks source link

[QUEST] Initial implementation #4

Closed simonihmig closed 6 years ago

simonihmig commented 6 years ago

Overview

Remaining issues

To Do

simonihmig commented 6 years ago

@stefanpenner mind having another look if that makes sense so far? Any thoughts?

stefanpenner commented 6 years ago

we can bikeshed the name abit.

I would like to slot in more utilities at this namespace, utilities such as heimdall viz, and some tools merely an idea. So whatever we do, lets try to make it somewhat future friendly.

stefanpenner commented 6 years ago

but otherwise the above LGTM

simonihmig commented 6 years ago

IIUC the idea is to have different addons mount their middleware under a common namespace (that needs to be distinct from any user's routes, hence the underscore), like _build, right?

This sounds good. I just played a bit with the new vue-cli, they have put together quite a nice web UI layer... (see https://cli.vuejs.org/guide/cli-service.html#using-the-binary). Maybe ember could go into that direction somehow/sometime as well? Certainly out of scope for this discussion here, rather something for a bigger RFC. But assuming there is a future for something like this, I would guess this could integrate not only build tools. E.g. a way to run the given blueprints using a web UI. Or installing addons.

So I think I would prefer _ember, as that could map to known CLI commands (or at least be more "open-ended"):

BTW, I was thinking of renaming this addon to something like bundle-analyzer, as that is how these tools are known in the wider (webpack/react) ecosystem, and is more agnostic of the underlying implementation (concat)...

nightire commented 6 years ago

BTW, I was thinking of renaming this addon to something like bundle-analyzer, as that is how these tools are known in the wider (webpack/react) ecosystem, and is more agnostic of the underlying implementation (concat)...

I agree, concat-analyzer is the kind of name you often can't remember...