Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider adding a "minifier"/"compiler"-like option to libjsonnet #1044

Open
mikehoyle-google opened this issue Jan 6, 2023 · 1 comment

Comments

@mikehoyle-google
Copy link

I have a usecase in which I would love to have an equivalent to a javascript "minifier".

That is, a tool which reads a jsonnet file, resolves imports, performs static analysis etc, but instead of then evaluating the jsonnet, it simply returns a string of text that contains all the jsonnet input, in a single file (optionally without comments, and other configuration).

I don't see a way of currently doing this with the existing tooling, but it seems like it should be relatively accomplishable given what's already present.

@sbarzowski
Copy link
Collaborator

This could be implemented as a separate tool, either included in the repo or a completely separate one. Probably best to base it on go-jsonnet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants