grunt-textr

1.1.3 • Public • Published

grunt-textr Build Status

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.

License

MIT © Denys Dovhan

/grunt-textr/

    Package Sidebar

    Install

    npm i grunt-textr

    Weekly Downloads

    1

    Version

    1.1.3

    License

    MIT

    Last publish

    Collaborators

    • denysdovhan