2.4.3 • Published 7 years ago

grunt-hjson v2.4.3

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

grunt-hjson

Build Status NPM version

Hjson plugin for grunt, converts from and to JSON.

Hjson, the Human JSON. A configuration file format for humans. Relaxed syntax, fewer mistakes, more comments.

For details and syntax see hjson.org.

Usage

First, install grunt-hjson as a development dependency:

npm install --save-dev grunt-hjson

Then, add it to your gruntfile.js:

module.exports = function(grunt) {

  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    hjson: {
      cvt: {
        files: [
          {
            expand: true,
            cwd: 'src/',
            src: ['*.hjson'],
            dest: 'dist/',
            ext: '.json',
          },
        ],
      }
    }
  });

  grunt.loadNpmTasks('grunt-hjson');

  grunt.registerTask('default', ['hjson']);
};

To convert to Hjson specify the .hjson extension in ext.

2.4.3

7 years ago

2.0.3

8 years ago

1.8.0

8 years ago

1.7.4

9 years ago

1.7.3

9 years ago

1.6.2

9 years ago

1.6.1

9 years ago

1.5.0

9 years ago

1.4.0

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago