You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey all! packwerk/packs and related tools are really great, thanks!
There is now a new way to specify public constants using the sigil # pack_public: true.
However this approach suffers a discoverability problem for devs looking at a pack to see what it exposes.
With the app/public directory it's straight forward to see what a pack exposes.
It is also pretty clear to see in the proposal in #36 with the public_constants: in package.yml.
However the sigil approach is a bit trickier.
Unless there is already a way to see this that I missed, it would be cool to have a command on packs (or extra output on packs get_info) that lists out the publicly exposed constants for a given pack.
(random extra thought, maybe get_info command could be renamed to just info)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hey all!
packwerk/packsand related tools are really great, thanks!There is now a new way to specify public constants using the sigil
# pack_public: true.However this approach suffers a discoverability problem for devs looking at a pack to see what it exposes.
With the
app/publicdirectory it's straight forward to see what a pack exposes.It is also pretty clear to see in the proposal in #36 with the
public_constants:inpackage.yml.However the sigil approach is a bit trickier.
Unless there is already a way to see this that I missed, it would be cool to have a command on
packs(or extra output onpacks get_info) that lists out the publicly exposed constants for a given pack.(random extra thought, maybe
get_infocommand could be renamed to justinfo)Beta Was this translation helpful? Give feedback.
All reactions