{"name":"grunt-gjslint","description":"Validate files with Google Closure Linter.","version":"0.1.4","homepage":"https://github.com/jmendiara/grunt-gjslint","author":{"name":"Javier Mendiara Cañardo","email":"jmendiara@gmail.com"},"contributors":[{"name":"Denis Ciccale","email":"dciccale@gmail.com"},{"name":"David Cantelar"},{"name":"Jaime Pastor Pueyo","email":"jppueyo@tid.es"}],"repository":{"type":"git","url":"https://github.com/jmendiara/grunt-gjslint.git"},"bugs":{"url":"https://github.com/jmendiara/grunt-gjslint/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jmendiara/grunt-gjslint/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.19"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.5.4","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.1","grunt-release":"~0.3.3"},"peerDependencies":{"closure-linter-wrapper":"~0.2.0","grunt":"~0.4.1"},"keywords":["gjslint","closure","linter","closure-linter","gruntplugin","closure-linter-wrapper"],"_id":"grunt-gjslint@0.1.4","dist":{"shasum":"5eab2ad3230e7b8b4b4890d20fec43ce2d46da53","tarball":"http://registry-npm.ywwl.com/grunt-gjslint/download/grunt-gjslint-0.1.4.tgz","integrity":"sha512-TFDLcN0Wq3Yvhqd3DaqGA+PRza1TMEbtkA6AlEJWULRxqwW9S90LrtNM9M54wJA6m35wGQbWMUInLYv1duRizQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGnQLkccPlbKytGL5Dpfe96bcz83LSdSihmsZJtXf0FMAiEArz1Sb6L1iZ85V+y3RYuaMK2jYiOR1Eg2cmKAGgdfNaA="}],"size":9894,"noattachment":false,"key":"/grunt-gjslint/-/grunt-gjslint-0.1.4.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"jmendiara","email":"jmendiara@gmail.com"},"maintainers":[{"name":"jmendiara","email":"jmendiara@gmail.com"}],"directories":{},"readme":"# grunt-gjslint\n\n> Validate files with Google Linter.\n\n## Getting Started\nThis plugin requires Node `~0.8.19` (for managing [peerDependencies](http://blog.nodejs.org/2013/02/07/peer-dependencies/)), Grunt `~0.4.1` and *just* python2 installed.\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-gjslint --save-dev\n```\n\nOne the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-gjslint');\n```\n\n## The `gjslint` and `fixjsstyle` tasks\nRun this tasks with the `grunt gjslint` or `grunt fixjsstyle` commands.\n\n### Overview\nIn your project's Gruntfile, add sections named `gjslint` and `fixjsstyle` to the data object passed into `grunt.initConfig()`. Some of the flags passed to gjslint don't work with fixjsstyle.\n\n```js\ngrunt.initConfig({\n  gjslint: {\n    options: {\n      flags: [\n        '--disable 220', //ignore error code 220 from gjslint,\n        '--flagfile .gjslintrc' //use flag file\n      ],\n      reporter: {\n        name: 'console' //report to console\n      },\n      force: false, //don't fail if python is not installed on the computer. Default: `true` \n      pythonPath: '/your/path/to/python2' //closure-linter only works with python2. Specify the path to it. Default: `python` \n    },\n    lib: {  //specify your targets, grunt style.\n      src: ['lib/module/**/*.js', 'lib/foo.js'],\n    },\n    test: {\n      src: '<%= jshint.test %>',\n    }\n  },\n  fixjsstyle: {\n    options: {\n      flags: [\n        '--disable 220' //ignore error code 220 from gjslint\n      ],\n      reporter: {\n        name: 'console'\n      }\n    },\n    all: {\n      src: '<%= jshint.all %>'\n    }\n  }\n})\n```\n\nAs this is a Multitask, you can specify several targets to be called sharing the same root options\n\n### Documentation\ngrunt-gjslint uses [node-closure-linter-wrapper](https://github.com/jmendiara/node-closure-linter-wrapper)\nto lint files\n\nPlease, refer to [node-closure-linter-wrapper documentation](https://github.com/jmendiara/node-closure-linter-wrapper)\nfor `flags`, `reporter` and `pythonPath` reference.\n\n`options.force` flag is a custom option that when disabled, will not fail the grunt task when python is not installed on\nthe computer. It defaults to `true`\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Lint and test your code using [Grunt](http://gruntjs.com/).\n\n## Release History\n* v0.1.6: Huge amount of files in windows support. @ganxiyun \n* v0.1.5: added fixjsstyle task\n* v0.1.4: bug fixing in filenames with whitespaces. Thanks to @moelders\n* v0.1.3: bug fixing. Thanks to @dcantelar\n* v0.1.0: First version\n\n","publish_time":1389715221741,"_cnpm_publish_time":1389715221741,"dist-tags":{"latest":"0.2.1"}}