GitXplorerGitXplorer
k

grunt-cson

public
8 stars
5 forks
0 issues

Commits

List of commits on branch master.
Unverified
ee84a1033d19e6c5627fc484483a02e2c6fa6f4e

Use location variable

kkevinsawicki committed 10 years ago
Unverified
38f3e0dc75399144f7e0e5c909b33276f0824d80

:lipstick:

kkevinsawicki committed 10 years ago
Unverified
413ec4713274d9d2a099c1b3668acbceed5cc5c9

0.9.0

kkevinsawicki committed 10 years ago
Unverified
9f76eacdb5e17951d368442614f58fa0e1384cae

Assert that the cache directory is not empty

kkevinsawicki committed 10 years ago
Unverified
3347dd04039a49cb23816d600ed2409e42e3f8fd

Email on Travis failures

kkevinsawicki committed 10 years ago
Unverified
aa6d18257b38945cc9480ed9ba8eec6e4c86ab06

Use SVG Travis badge

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.