grunt-textr
v1.1.3
Published
Grunt plugin for Textr
Downloads
4
Maintainers
Readme
grunt-textr
Grunt plugin for Textr — framework for compose text transformation functions
Install
You may install this plugin with this command:
npm install grunt-textr --save-dev
Usage
Use this plugin like this:
require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks
grunt.initConfig({
textr: {
options: {
locale: 'en-us',
plugins: [
require('typographic-quotes'),
require('typographic-ellipses'),
require('typographic-single-spaces')
]
},
files: {
'dist/foo.md': 'src/bar.md'
}
}
});
grunt.registerTask('default', ['textr']);
Options
options
Type: Object
Default value: {}
All passed options, except options.plugins
, will be used for creating new transform stream (see textr
defaults)
options.plugins
Type: Array
Default value: []
Array of transform functions.