0.1.4 • Published 9 years ago

grunt-jsontl v0.1.4

Weekly downloads
1
License
MIT
Repository
-
Last release
9 years ago

grunt-jsontl

Grunt task for performing jsontl transforms

Getting Started

This plugin requires Grunt >=0.4.0

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-jsontl --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-jsontl');

jsontl task

Run this task with the grunt jsontl command.

Task targets, files and options may be specified according to the grunt Configuring tasks guide, with one notable exception.

jsontl: {
	dev: {
		files: [{
			expand: true,
			src: ['*.json'],
			dest: 'my/dir',
			cwd: 'my/dir',
			ext: '.new.json'
		}],
		transform: 'my/dir/transform.jsontl',
		options: {
			prettyPrint: true
		}
	}
}

##Parameters ###transform The transform parameter is required, and must be a string referring to a valid .jsontl file.

##Options ###prettyPrint The prettyPrint option will format the JSON output with 4 space indentation.