{ "name": "grunt-amd-check", "title": "grunt-amd-check", "description": "Grunt task to check for broken AMD dependencies", "version": "0.5.2", "homepage": "https://github.com/zship/grunt-amd-check", "author": { "name": "Zach Shipley", "email": "zach@zachshipley.com" }, "repository": { "type": "git", "url": "https://github.com/zship/grunt-amd-check" }, "license": "MIT", "dependencies": { "grunt": "0.4.x", "grunt-lib-amd": "0.1.x", "underscore": "1.4.x" }, "keywords": [ "gruntplugin", "amd" ], "readme": "grunt-amd-check\n===============\n\ngrunt-amd-check is a [grunt](http://gruntjs.com/) multitask to check for\nbroken AMD dependencies in a project.\n\nThis plugin requires Grunt `~0.4.0`\n\n\nInstallation\n-------------\n\nFrom the same directory as your Gruntfile, run\n\n```\nnpm install grunt-amd-check\n```\n\nThen add the following line to your Gruntfile:\n\n```js\ngrunt.loadNpmTasks('grunt-amd-check');\n```\n\nYou can verify that the task is available by running `grunt --help` and\nchecking that \"amd-check\" is under \"Available tasks\".\n\n\nConfiguration\n-------------\n\ngrunt-amd-check reads two sections of your config: `amd-check` and\n`requirejs`. `amd-check` can contain these properties (example from\n[class.js](https://github.com/zship/class.js)):\n\n```js\n'amd-check': {\n\t//Grunt files configuration object for which to trace dependencies\n\t//(more: http://gruntjs.com/configuring-tasks)\n\tfiles: ['src/**/*.js', 'test/spec/**/*.js']\n},\n```\n\n`requirejs` is a standard [r.js configuration\nobject](https://github.com/jrburke/r.js/blob/master/build/example.build.js).\ngrunt-amd-check uses `basePath`, `paths`, and `packages` (all optional)\nto transform AMD module names to absolute file names. If the `mainConfigFile`\nproperty is given, the configuration in that file will be mixed-in to the\n`requirejs` property with a **lower** precedence (that is, in the case of a\nconflicting configuration property, `requirejs` will always \"win\" against\n`mainConfigFile`).\n\n\nTasks\n-----\n\n### amd-check\n\n`grunt amd-check` iterates through all files matched in the `files` option and\nreports any dependencies which cannot be resolved to absolute paths.\n\n### whatrequires\n\n`grunt whatrequires` accepts a single argument `searchFile` and iterates\nthrough all files matched in the `files` option, looking for modules which list\n`searchFile` as a dependency (in any valid RequireJS format). _Note: Grunt\ndenotes arguments using a \":\" character after the task name, followed by the\nargument._\n\nExample: `grunt whatrequires:src/js/BaseController.js` might report\n`src/js/HomeController.js` and `src/js/NavigationController.js` as dependents.\n\n\nLicense\n-------\n\nReleased under the [MIT\nLicense](http://www.opensource.org/licenses/mit-license.php).\n", "readmeFilename": "README.md", "bugs": { "url": "https://github.com/zship/grunt-amd-check/issues" }, "_id": "grunt-amd-check@0.5.2", "dist": { "shasum": "9e7d0e7715eb6df16b2a075e09017d2eca565a62" }, "_from": "grunt-amd-check@", "_resolved": "https://registry.npmjs.org/grunt-amd-check/-/grunt-amd-check-0.5.2.tgz", "devDependencies": { "underscore": "^1.4.4", "grunt": "^0.4.4" } }