UNPKG

jquery-word-and-character-counter-plugin

Version:

This word and character counter plugin allows you to count characters or words, up or down. You can set a minimum or maximum goal for the counter to reach. And sweet, sweet options.

30 lines (25 loc) 717 B
module.exports = function (grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), // Lint definitions jscs: { main: "jquery.word-and-character-counter.js", options: { config: ".jscsrc" } }, uglify: { options: { banner: '/*! <%= pkg.name %> <%= pkg.version %> <%= pkg.repository.url %> <%= grunt.template.today("dd-mm-yyyy") %> */\n' }, dist: { files: { 'jquery.word-and-character-counter.min.js': ['jquery.word-and-character-counter.js'] } } } }); grunt.loadNpmTasks("grunt-jscs"); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.registerTask('default', ['jscs', 'uglify']); };