grunt-closure-linter
Advanced tools
Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "grunt-closure-linter", | ||
"description": "Google closure linting", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"homepage": "https://github.com/wzr1337/grunt-closure-linter", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -25,2 +25,4 @@ # grunt-closure-linter | ||
Use the command attribute to point to a specific command if yours has not the default name. | ||
```js | ||
@@ -31,2 +33,3 @@ grunt.initConfig({ | ||
closureLinterPath : '/path/to/closure_linter/folder', | ||
command: 'gjslint', | ||
src: [ 'app/scripts/controllers/**', | ||
@@ -44,2 +47,3 @@ 'app/scripts/services/**', | ||
closureLinterPath : '/path/to/closure_linter/folder', | ||
command: 'fixjsstyle', | ||
src: [ 'app/scripts/controllers/**', | ||
@@ -46,0 +50,0 @@ 'app/scripts/services/**', |
@@ -6,3 +6,3 @@ /** | ||
* @license MIT | ||
* | ||
* | ||
* @module tasks/grunt-closure-linter | ||
@@ -20,5 +20,5 @@ */ | ||
var ctools = require('./lib/ctools'); | ||
var ctools = require('./lib/ctools'); | ||
grunt.registerMultiTask('closureLint', 'Apply closure linting', | ||
function() {ctools.registerTool(this, 'gjslint.py');}); | ||
}; |
@@ -13,3 +13,3 @@ /** | ||
files = [], | ||
closureLinterPath = task.data.closureLinterPath, | ||
closureLinterPath = task.data.closureLinterPath || '/usr/local/bin', | ||
options = grunt.task.current.options( | ||
@@ -22,2 +22,6 @@ { | ||
}); | ||
// Toolname in options | ||
toolname = task.data.command || toolname; | ||
// Iterate over all src-dest file pairs. | ||
@@ -24,0 +28,0 @@ task.files.forEach(function(f) { |
13594
277
97