GitXplorerGitXplorer
k

grunt-cson

public
8 stars
5 forks
0 issues

Commits

List of commits on branch master.
Unverified
3ba9f995a1c5c66db4b5a85c0045c1bfbad8d1b0

Dependency cson-safe was renamed to cson-parser

hhaaja committed 9 years ago
Unverified
874493a390d289e4f9a5d8e1b745a17558b67fbe

0.15.0

kkevinsawicki committed 10 years ago
Unverified
2f12f2ac14fcd3f56d2dd78cd81fda53e6638e42

Log created path only in verbose mode

kkevinsawicki committed 10 years ago
Unverified
d442df61c70b89e386a97767b16719185f59b4b6

0.14.0

kkevinsawicki committed 10 years ago
Unverified
c21a8a6bde648a575b8ff373ff7bc64dd41aa504

Track failure explicitly

kkevinsawicki committed 10 years ago
Unverified
8e38159a313f825969d69fc2507e6a9bf22585b9

0.13.0

kkevinsawicki committed 10 years ago

README

The README file for this repository.

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.