0.17.0 • Published 8 years ago

grunt-cson v0.17.0

Weekly downloads
26
License
MIT
Repository
github
Last release
8 years ago

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.

0.17.0

8 years ago

0.16.0

9 years ago

0.15.0

9 years ago

0.14.0

9 years ago

0.13.0

9 years ago

0.12.0

9 years ago

0.11.0

9 years ago

0.10.0

10 years ago

0.9.0

10 years ago

0.8.0

10 years ago

0.7.0

10 years ago

0.6.0

10 years ago

0.5.0

11 years ago

0.4.0

11 years ago

0.3.0

11 years ago

0.2.0

11 years ago

0.1.0

11 years ago