grunt-verifylowercase

2019-10-11 admin

grunt-verifylowercase是什么

什么是grunt-verifylowercase,Verifies that files have lowercase extensions.

grunt-verifylowercase使用教程帮助文档

Build Status

grunt-verifylowercase

Verifies that files have lowercase extensions. Starting with version 0.2.0, this plugin is compatible with both Grunt version 0.3 and 0.4.

Getting Started

Install this grunt plugin next to your project’s grunt.js gruntfile with: npm install grunt-verifylowercase

Then add this line to your project’s grunt.js gruntfile:

grunt.loadNpmTasks('grunt-verifylowercase');

Documentation

verifylowercase is a multitask. Inside your grunt.js add a section named verifylowercase containing the list of files that should be analyzed.

The grunt task will fail if a filename has an uppercase letter in it’s extension.

Config example

With Grunt 0.3, the format to be used is:

verifylowercase : {
   all : {
      files : ["src/**"]
   }
}

With Grunt 0.4 (on verifylowercase version 0.2.0 and above), verifylowercase uses the standard grunt configuration format for files. For example, using the compact format:

verifylowercase : {
   all : {
      src: ["src/**"]
   }
}

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.

License

Copyright © 2012 Aria Templates Licensed under the Apache 2.0 license.

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-77130.html

文章标题:grunt-verifylowercase

回到顶部