bevry / cson

CoffeeScript-Object-Notation. Same as JSON but for CoffeeScript objects.
Other
1.34k stars 56 forks source link

How to use in VS Code task runner? #80

Closed Geri-Borbas closed 7 years ago

Geri-Borbas commented 7 years ago

I have it setup and it is working fine, if I only use the cson as the only argument.

{
    "version": "0.1.0",
    "command": "./node_modules/.bin/cson2json",
    "isShellCommand": true,
    "showOutput": "always",
    "suppressTaskName": true,
    "echoCommand": true,
    "tasks": [
        {
            "taskName": "build",
            "args": [
                "./syntaxes/csharp.tmLanguage.cson"
                ]
        }
    ]
}

Outputs the resulting JSON to the console. But when I add arguments suggested from the docs, it always spits back the help only.

{
    "version": "0.1.0",
    "command": "./node_modules/.bin/cson2json",
    "isShellCommand": true,
    "showOutput": "always",
    "suppressTaskName": true,
    "echoCommand": true,
    "tasks": [
        {
            "taskName": "build",
            "args": [
                "./syntaxes/csharp.tmLanguage.cson",
                ">",
                "./syntaxes/csharp.tmLanguage.json"
                ]
        }
    ]
}

Why is that?

balupton commented 7 years ago

I would have no idea. I'd suggest asking on Stack Overflow.

balupton commented 7 years ago

Closing in accordance with https://github.com/bevry/cson/blob/f9a383c8ea7bd3f563dc8e86a87b2d3ff2785b07/CONTRIBUTING.md#support