google / google/jsonnet

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

Open
#1,044 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Jsonnet
Stars
7.6k
Forks
475
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.