mysticatea / cpx

A cli tool to watch and copy file globs.
MIT License
524 stars 36 forks source link

Using this awesome tool with jsonnet CLI #23

Open dewdad opened 7 years ago

dewdad commented 7 years ago

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 -\"",
}