cpx icon indicating copy to clipboard operation
cpx copied to clipboard

Using this awesome tool with jsonnet CLI

Open dewdad opened this issue 8 years ago • 0 comments

I'm trying with no luck to transpile my "jsonnet" files with cpx and the jsonnet command line tool.

These work:

jsonnet.exe - < config.jsonnet echo {a:'b', b:self.a} | jsonnet.exe -

How can I use the jsonnet CLI transpiler employing the --command option?

I tried this in an npm script:

"scripts": {
  "build:json": "cpx \"./**/*.jsonnet\" build -c \"jsonnet.exe -\"",
}

dewdad avatar Dec 13 '16 11:12 dewdad