Grunt task for compiling CSON files to JSON

CSON Grunt plugin

Grunt plugin to compile CSON files to JSON.

npm install grunt-cson
  • Clone the repository
  • Run npm install
  • Run grunt to compile the CoffeeScript code
  • Run grunt test to run the specs

Add the following to your

      expand: true
      src: ['src/**/*.cson' ]
      dest: 'lib'
      ext: '.json'

Then run grunt cson to compile all the .cson files under src/ to .json files under lib/.

The following are options are supported when configuring the task.

    rootObject: true | false

Setting this to true will verify that each file parsed contains a single root object (such as in package.json). This option defaults to false.