1.1.3 • Published 7 years ago

grunt-textr v1.1.3

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

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

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

8 years ago

1.0.0

8 years ago

0.1.0

9 years ago