/grunt-typograf

Prepare texts with Typograf using Grunt

Primary LanguageJavaScriptMIT LicenseMIT

grunt-typograf

NPM version NPM downloads Dependency Status devDependency Status Build Status

Prepare texts with Typograf for Grunt.

Install

npm install grunt-typograf --save-dev

Usage

Gruntfile.js

module.exports = function (grunt) {
  grunt.initConfig({
    typograf: {
      compile: {
        options: {
          lang   : 'ru',
          mode   : 'digit',           // Entities as digits
          disable: ['ru/optalign/*'], // Disable rules
          enable : ['ru/money/ruble'] // Enable rules
        },

        files: {
          'hello.txt': ['header.txt', 'footer.txt']
        }
      }
    }
  });

  grunt.loadNpmTasks('grunt-typograf');
  grunt.registerTask('default', ['typograf']);
};

The MIT License.