gruntjs - Can I have multiple jsHint task configured in a single Grunt file? -


i have grunt file configured 2 different modules. in single task can give multiple sources , works fine. requirement give different options both modules - want different jshint rules both modules , want both projects have separate minified files , common minified file.

gruntfile.js ->

jshint: {

  ac:{       options: {            laxcomma: true, // maybe should turn on? why have these            curly: true,           eqeqeq: true,           immed: true,           latedef: true,           onevar: true       },       source: {           src: ['module1/*.js']       }   },   lib:{       options: {           laxcomma: true, // maybe should turn on? why have these            curly: true,           eqeqeq: true,           immed: true,           latedef: true       },       source: {           src: ['module2/*.js']       }   } 

}

i saw of stack overflow question, find grunt-hub option need create 2 separate files , grunt hub file. dont want that, please guide me how proceed?

use targets: http://gruntjs.com/configuring-tasks#task-configuration-and-targets

grunt.initconfig({   jshint: {     one: {       src: ['files/*'],       options: { /* ... */ }     },     two: {       src: ['files2/*'],       options: { /* ... */ }     }   } }); 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -