0.0.4 • Published 9 years ago

grunt-line-length-check v0.0.4

Weekly downloads
1
License
CC0
Repository
-
Last release
9 years ago

grunt-line-length-check

checking max line length of a file.

Getting Started

This plugin requires Grunt ~0.4.5

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-line-length-check --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-line-length-check');

task

Run this task with the grunt line-length-check command.

Options

basePath

Type: String

encoding

Type: String
Default: utf8

excludePatterns

Type: Array

lengthUnit

Type: String
Default: character

character or byte.

limitLength

Type: Number

verbose

Type: Boolean

Example config

grunt.initConfig({
  'line-length-check': {               // Task
    basePath: 'src',
    encoding: 'utf8',
    excludePatterns: [ 'images', 'favicon.ico' ],
    lengthUnit: 'character',
    limitLength: 8 * 1024 * 0.98,
    verbose: false
  }
});

grunt.loadNpmTasks('grunt-line-length-check');
grunt.registerTask('default', ['grunt-line-length-check']);
0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago