GitXplorerGitXplorer
k

grunt-cson

public
8 stars
5 forks
0 issues

Commits

List of commits on branch master.
Unverified
4e3cfe2cd374d3ba42d0b3d1d58441c27af66866

:lipstick:

kkevinsawicki committed 10 years ago
Unverified
2da2cf0e34b64e13421c05bbf8744014ca81932a

0.12.0

kkevinsawicki committed 10 years ago
Unverified
b8ce42fe95ca457b37a07b2b14d3515e0bee3532

Fail task when error count is non-zero

kkevinsawicki committed 10 years ago
Unverified
b4aba68bfd1998ae358a5f75ea4bc741f0891f87

0.11.0

kkevinsawicki committed 10 years ago
Unverified
17c287ee4c9a8aa98eb5d542fe19fa23fca920aa

:arrow_up: cson-safe@1.0.3

kkevinsawicki committed 10 years ago
Unverified
2bcbb68a1a8b1d1b277dc2cdc2a092dd6204e648

0.10.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.