Last change
on this file since 529 was
484,
checked in by hendrikvanantwerpen, 11 years ago
|
Commit node_modules, to make checkouts and builds more deterministic.
|
File size:
3.2 KB
|
Rev | Line | |
---|
[484] | 1 | { |
---|
| 2 | "name": "grunt-htmlhint", |
---|
| 3 | "description": "Validate html files with htmlhint.", |
---|
| 4 | "version": "0.4.0", |
---|
| 5 | "homepage": "https://github.com/yaniswang/grunt-htmlhint", |
---|
| 6 | "author": { |
---|
| 7 | "name": "Yanis Wang", |
---|
| 8 | "email": "yanis.wang@gmail.com", |
---|
| 9 | "url": "http://yaniswang.com/" |
---|
| 10 | }, |
---|
| 11 | "repository": { |
---|
| 12 | "type": "git", |
---|
| 13 | "url": "git@github.com:yaniswang/grunt-htmlhint.git" |
---|
| 14 | }, |
---|
| 15 | "bugs": { |
---|
| 16 | "url": "https://github.com/yaniswang/grunt-htmlhint/issues" |
---|
| 17 | }, |
---|
| 18 | "licenses": [ |
---|
| 19 | { |
---|
| 20 | "type": "MIT", |
---|
| 21 | "url": "https://github.com/yaniswang/grunt-htmlhint/blob/master/LICENSE-MIT" |
---|
| 22 | } |
---|
| 23 | ], |
---|
| 24 | "main": "Gruntfile.js", |
---|
| 25 | "engines": { |
---|
| 26 | "node": ">= 0.8.0" |
---|
| 27 | }, |
---|
| 28 | "scripts": { |
---|
| 29 | "test": "grunt test --force" |
---|
| 30 | }, |
---|
| 31 | "devDependencies": { |
---|
| 32 | "grunt-contrib-jshint": "~0.1.1", |
---|
| 33 | "grunt": "~0.4.1" |
---|
| 34 | }, |
---|
| 35 | "peerDependencies": { |
---|
| 36 | "grunt": "~0.4.1" |
---|
| 37 | }, |
---|
| 38 | "keywords": [ |
---|
| 39 | "gruntplugin" |
---|
| 40 | ], |
---|
| 41 | "dependencies": { |
---|
| 42 | "htmlhint": "~0.9.2" |
---|
| 43 | }, |
---|
| 44 | "readme": "# grunt-htmlhint\r\n\r\n> Validate html files with htmlhint.\r\n\r\n## Getting Started\r\nThis plugin requires Grunt `~0.4.1`\r\n\r\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:\r\n\r\n```shell\r\nnpm install grunt-htmlhint --save-dev\r\n```\r\n\r\nOne the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\r\n\r\n```js\r\ngrunt.loadNpmTasks('grunt-htmlhint');\r\n```\r\n\r\n## The \"htmlhint\" task\r\n\r\n### Overview\r\nIn your project's Gruntfile, add a section named `htmlhint` to the data object passed into `grunt.initConfig()`.\r\n\r\n### Options\r\n\r\nSee all rules here: [https://github.com/yaniswang/HTMLHint/wiki/Rules](https://github.com/yaniswang/HTMLHint/wiki/Rules)\r\n\r\nIf options is empty, task will scan nothing.\r\n\r\n#### options.htmlhintrc\r\nType: `String`\r\nDefault value: `null`\r\n\r\nIf this filename is specified, options and globals defined therein will be used. Task and target options override the options within the `htmlhintrc` file. The `htmlhintrc` file must be valid JSON and looks something like this:\r\n\r\n```json\r\n{\r\n \"tag-pair\": true,\r\n}\r\n```\r\n\r\n#### options.force\r\nType: `Boolean`\r\nDefault value: `false`\r\n\r\nReport HTMLHint errors but dont fail the task\r\n\r\n### Usage Examples\r\n\r\n#### Direct options\r\n\r\n```js\r\nhtmlhint: {\r\n html1: {\r\n options: {\r\n 'tag-pair': true\r\n },\r\n src: ['path/to/**/*.html']\r\n },\r\n html2: {\r\n options: {\r\n 'tag-pair': true\r\n },\r\n src: ['path/to/**/*.html']\r\n }\r\n}\r\n```\r\n\r\n#### Config file\r\n\r\n```js\r\nhtmlhint: {\r\n options: {\r\n htmlhintrc: '.htmlhintrc'\r\n },\r\n html1: {\r\n src: ['path/to/**/*.html']\r\n },\r\n html2: {\r\n src: ['path/to/**/*.html']\r\n }\r\n}\r\n```\r\n\r\n## Release History\r\n\r\n * 2013-4-6âââv0.4.0âââFirst release", |
---|
| 45 | "readmeFilename": "README.md", |
---|
| 46 | "_id": "grunt-htmlhint@0.4.0", |
---|
| 47 | "_from": "grunt-htmlhint@~0.4.0" |
---|
| 48 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.