Last change
on this file since 532 was
516,
checked in by hendrikvanantwerpen, 11 years ago
|
Enable deployment with Grunt.
|
File size:
3.2 KB
|
Line | |
---|
1 | { |
---|
2 | "name": "grunt-amd-check", |
---|
3 | "title": "grunt-amd-check", |
---|
4 | "description": "Grunt task to check for broken AMD dependencies", |
---|
5 | "version": "0.5.2", |
---|
6 | "homepage": "https://github.com/zship/grunt-amd-check", |
---|
7 | "author": { |
---|
8 | "name": "Zach Shipley", |
---|
9 | "email": "zach@zachshipley.com" |
---|
10 | }, |
---|
11 | "repository": { |
---|
12 | "type": "git", |
---|
13 | "url": "https://github.com/zship/grunt-amd-check" |
---|
14 | }, |
---|
15 | "license": "MIT", |
---|
16 | "dependencies": { |
---|
17 | "grunt": "0.4.x", |
---|
18 | "grunt-lib-amd": "0.1.x", |
---|
19 | "underscore": "1.4.x" |
---|
20 | }, |
---|
21 | "keywords": [ |
---|
22 | "gruntplugin", |
---|
23 | "amd" |
---|
24 | ], |
---|
25 | "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", |
---|
26 | "readmeFilename": "README.md", |
---|
27 | "bugs": { |
---|
28 | "url": "https://github.com/zship/grunt-amd-check/issues" |
---|
29 | }, |
---|
30 | "_id": "grunt-amd-check@0.5.2", |
---|
31 | "dist": { |
---|
32 | "shasum": "9e7d0e7715eb6df16b2a075e09017d2eca565a62" |
---|
33 | }, |
---|
34 | "_from": "grunt-amd-check@", |
---|
35 | "_resolved": "https://registry.npmjs.org/grunt-amd-check/-/grunt-amd-check-0.5.2.tgz", |
---|
36 | "devDependencies": { |
---|
37 | "underscore": "^1.4.4", |
---|
38 | "grunt": "^0.4.4" |
---|
39 | } |
---|
40 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.