grunt-typograf
Prepare texts with Typograf for Grunt.
npm install grunt-typograf --save-dev
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.