GitXplorerGitXplorer
k

grunt-cson

public
8 stars
5 forks
0 issues

Commits

List of commits on branch master.
Unverified
fc88337efbe6d3fbcd70fc0c8e5e94c923b7acfc

0.17.0

kkevinsawicki committed 9 years ago
Unverified
9a17f47c1bd0d5d82be59621cbb6f0b0deadc777

Merge pull request #7 from gruntjs-updater/peerDep

kkevinsawicki committed 9 years ago
Unverified
6cebf649814c7dbd7d715926d90a606b73096fd1

Update peerDependencies to support Grunt 1.0

committed 9 years ago
Unverified
930c7366e53fe1ca9368f66ef44c496379e80590

0.16.0

kkevinsawicki committed 9 years ago
Unverified
8621125246c6e65e5c21b67969f8f1f57e9b30bb

licenses -> license

kkevinsawicki committed 9 years ago
Unverified
d5d927de06e4202939015bc1ee29e2b920e64f98

Merge pull request #6 from haaja/dependency_rename

kkevinsawicki committed 9 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.