1.0.1 • Published 11 years ago

grunt-hanson-plugin v1.0.1

Weekly downloads
1
License
-
Repository
github
Last release
11 years ago

Hanson Grunt-Plugin

A Grunt plugin to convert HanSON files to JSON.

Getting Started

Installing the plugin in your Grunt environment:

npm install grunt-hanson-plugin --save-dev

Load the plugin in your Gruntfile:

grunt.loadNpmTasks('grunt-hanson-plugin');

The "hanson" task

Overview

In your project's Gruntfile, add a section named hanson to the data object passed into grunt.initConfig().

grunt.initConfig({
  hanson_plugin: {
    your_target: {
        options: {
        	keepLineNumbers: false
        },
        files: {
          'converted-file.json': 'input-file.hson',
        },
    },
  },
})

Options

options.keepLineNumbers

Type: Boolean Default value: false

If true, the HanSON processor will insert newlines so line numbers in output file and input file match.

1.0.1

11 years ago

1.0.0

11 years ago

0.1.0

11 years ago