kevinsawicki/grunt-cson


Compile CSON files with Grunt

http://kevinsawicki.github.io/grunt-cson

Host: GitHub

License: MIT

Language: CoffeeScript


CSON Grunt plugin Build Status

Grunt plugin to compile CSON files to JSON.

Installing

npm install grunt-cson

Building

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

Configuring

Add the following to your Gruntfile.coffee:

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

grunt.loadNpmTasks('grunt-cson')

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

Options

The following are options are supported when configuring the task.

cson:
  options:
    rootObject: true | false

rootObject

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.

Project Statistics

Sourcerank 7
Repository Size 29.3 KB
Stars 9
Forks 2
Watchers 1
Open issues 0
Dependencies 11
Contributors 2
Tags 16
Created
Last updated
Last pushed

Top Contributors See all

Kevin Sawicki Janne Haapsaari

Packages Referencing this Repo

grunt-cson
Grunt task for compiling CSON files to JSON
Latest release 0.17.0 - Updated - 9 stars

Recent Tags See all

v0.17.0 May 18, 2016
v0.16.0 September 21, 2015
v0.15.0 May 20, 2015
v0.14.0 January 13, 2015
v0.13.0 January 13, 2015
v0.12.0 January 13, 2015
v0.11.0 January 10, 2015
v0.10.0 July 24, 2014
v0.9.0 July 24, 2014
v0.8.0 March 11, 2014
v0.7.0 February 19, 2014
v0.5.0 June 23, 2013
v0.4.0 June 23, 2013
v0.3.0 June 17, 2013
v0.2.0 June 16, 2013

Something wrong with this page? Make a suggestion

Last synced: 2016-05-18 15:34:12 UTC

Login to resync this repository