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
I'm using mason to ship templates with my cli. The APIs I'm using in the cli are MasonBundle.fromJson, MasonGenerator.fromBundle and MasonGenerator.generate.
There are dependencies in the current mason package that might cause unnecessary conflicts. Unnecessary because they aren't required for mason to generate templates, but only for the cli part of the package:
I agree it would make sense to decouple the CLI from the generator (similar to #91). My only comments are:
universal_io would still be a dependency for the generator because of the I/O and logging (stdout, stderr)
I'm still not sure if it'd be better to rename mason to mason_cli and keep mason as the generator or whether to keep mason as the cli and create mason_core/mason_generator/mason_engine to contain the generator.
I'm using mason to ship templates with my cli. The APIs I'm using in the cli are
MasonBundle.fromJson
,MasonGenerator.fromBundle
andMasonGenerator.generate
.There are dependencies in the current
mason
package that might cause unnecessary conflicts. Unnecessary because they aren't required for mason to generate templates, but only for the cli part of the package:mason
should be split into two packages:/bin
directory)This split allows the CLI to use and ship the latest dependencies while allowing wide dependency ranges for packages which use
mason
as dependency.While it sounds like a duplicate of #91, I think this split alone is easier to achieve and it fixes a realworld problem.
The text was updated successfully, but these errors were encountered: