Changeset 28812
- Timestamp:
- 06/24/2014 12:07:00 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Gruntfile.js
r28799 r28812 282 282 '!**/*.min.js' 283 283 ], 284 // Limit JSHint's run to a single specified plugin folder:284 // Limit JSHint's run to a single specified plugin directory: 285 285 // 286 // grunt jshint:plugins -- folder=foldername286 // grunt jshint:plugins --dir=foldername 287 287 // 288 filter: function( folderpath ) {289 var index, folder = grunt.option( 'folder' );288 filter: function( dirpath ) { 289 var index, dir = grunt.option( 'dir' ); 290 290 291 291 // Don't filter when no target folder is specified 292 if ( ! folder ) {292 if ( ! dir ) { 293 293 return true; 294 294 } 295 295 296 folderpath = folderpath.replace( /\\/g, '/' );297 index = folderpath.lastIndexOf( '/' + folder );296 dirpath = dirpath.replace( /\\/g, '/' ); 297 index = dirpath.lastIndexOf( '/' + dir ); 298 298 299 299 // Match only the folder name passed from cli
Note: See TracChangeset
for help on using the changeset viewer.