Still new to grunt, so sorry if this is ridiculous. I'm trying to convert some YAML files to json. Here's my task:
convert: {
yaml2json : {
files : [
{
expand: true,
cwd: '_data',
src: ['*.yml'],
dest: 'json/',
ext: '.json'
}
]
}
},
From what I can tell, that should take any YAML files in my _data directory and put them in a json directory with json extensions. So far so good. I run grunt convert --verbose and get:
Running "convert:yaml2json" (convert) task
Verifying property convert.yaml2json exists in config...OK
Files: _data/staff.yml -> json/staff.json
Files: _data/teachers.yml -> json/teachers.json
Files: _data/workshops.yml -> json/workshops.json
Options: pretty, mergeAttrs, inline=8, indent=2, csv={"columns":true,"delimiter":","}
Options: pretty, mergeAttrs, inline=8, indent=2, csv={"columns":true,"delimiter":","}
Reading _data/staff.yml...OK
Done, without errors.
It found the three files I wanted to convert, and knew where I wanted to put them. It reads in the first one, but then finishes. No JSON files were written. Anybody who could let me know what I missed, it'd be greatly appreciated.
Using versions:
grunt: 0.4.5
grunt-convert: 0.1.12
node: 4.1.1
Still new to grunt, so sorry if this is ridiculous. I'm trying to convert some YAML files to json. Here's my task:
From what I can tell, that should take any YAML files in my
_datadirectory and put them in ajsondirectory with json extensions. So far so good. I rungrunt convert --verboseand get:It found the three files I wanted to convert, and knew where I wanted to put them. It reads in the first one, but then finishes. No JSON files were written. Anybody who could let me know what I missed, it'd be greatly appreciated.
Using versions: