source: Dev/trunk/node_modules/grunt-curl/package.json @ 531

Last change on this file since 531 was 484, checked in by hendrikvanantwerpen, 11 years ago

Commit node_modules, to make checkouts and builds more deterministic.

File size: 4.1 KB
RevLine 
[484]1{
2  "name": "grunt-curl",
3  "description": "Download files from the internet via grunt.",
4  "version": "1.1.1",
5  "homepage": "https://github.com/twolfson/grunt-curl",
6  "author": {
7    "name": "Todd Wolfson",
8    "email": "todd@twolfson.com",
9    "url": "http://twolfson.com/"
10  },
11  "repository": {
12    "type": "git",
13    "url": "git://github.com/twolfson/grunt-curl.git"
14  },
15  "bugs": {
16    "url": "https://github.com/twolfson/grunt-curl/issues"
17  },
18  "licenses": [
19    {
20      "type": "MIT",
21      "url": "https://github.com/twolfson/grunt-curl/blob/master/LICENSE-MIT"
22    }
23  ],
24  "main": "grunt.js",
25  "bin": {
26    "grunt-curl": "bin/grunt-curl"
27  },
28  "engines": {
29    "node": "*"
30  },
31  "scripts": {
32    "test": "doubleshot"
33  },
34  "dependencies": {
35    "request": "~2.21.0",
36    "grunt-retro": "~0.6.0"
37  },
38  "_devDependencies": {
39    "grunt": "~0.3.17",
40    "doubleshot": "~1.0.1",
41    "chai": "~1.5.0",
42    "grunt-contrib-clean": "~0.3.2"
43  },
44  "devDependencies": {
45    "grunt": "~0.4.0",
46    "doubleshot": "~1.0.1",
47    "chai": "~1.5.0",
48    "grunt-contrib-clean": "~0.4.1"
49  },
50  "keywords": [
51    "gruntplugin",
52    "grunt",
53    "curl",
54    "download",
55    "request",
56    "file",
57    "url",
58    "uri"
59  ],
60  "readme": "# grunt-curl [![Donate on Gittip](http://badgr.co/gittip/twolfson.png)](https://www.gittip.com/twolfson/)\n\nDownload files from the internet via grunt.\n\n## Getting Started\nInstall this grunt plugin next to your project's [grunt.js gruntfile][getting_started] with: `npm install grunt-curl`\n\nThen add this line to your project's `grunt.js` gruntfile:\n\n```javascript\ngrunt.loadNpmTasks('grunt-curl');\n```\n\n[grunt]: http://gruntjs.com/\n[getting_started]: https://github.com/gruntjs/grunt/blob/master/docs/getting_started.md\n\n## Documentation\n`grunt-curl` retrieves data via [request][request]'s GET method and writes it to file.\n\nWe register two grunt tasks\n```js\ngrunt.initConfig({\n  // Grab single files\n  curl: {\n    // Short format (dest: src)\n    'location/to/download/file.js': 'http://files.com/path/to/file.js',\n\n    // Long format\n    long: {\n      src: 'http://files.com/path/to/file.js',\n      dest: 'location/to/download/file.js'\n    }\n  },\n  // Grab multiple files\n  'curl-dir': {\n    // Short format (dest folder: [src1, src2])\n    // These will be saved as 'location/to/save/files/file1.js'\n    //    and 'location/to/save/files/file2.js'\n    'location/to/save/files': [\n      'http://files.com/path/to/file1.js',\n      'http://generic.com/scripts/file2.js'\n    ],\n\n    // Long format\n    long: {\n      src: [\n        'http://files.com/path/to/file1.js',\n        'http://files.com/path/to/file2.js'\n      ],\n      dest: 'location/to/save/files'\n    },\n\n    // src files will expand to same file1.js and file2.js as long format\n    braceExpansion: {\n      src: ['http://files.com/path/to/{file1,file2}.js'],\n      dest: 'location/to/save/files'\n    },\n\n    // Custom filepaths\n    // This will save file1.js to location/to/save/files/path/to/file1.js\n    //    and file2.js to location/to/save/files/scripts/file2.js\n    customFilepaths: {\n      src: [\n        'http://files.com/path/to/file1.js',\n        'http://generic.com/scripts/file2.js'\n      ],\n      router: function (url) {\n        return url.replace('http://files.com/', '').replace('http://generic.com/', '');\n      },\n      dest: 'location/to/save/files'\n    }\n  }\n}):\n```\n\nand a grunt helper\n```js\ngrunt.helper('curl', url, function handleData (err, content) {\n  // Handle error and use content\n});\n```\n\n[request]: https://github.com/mikeal/request\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint your code using [grunt][grunt] and test via `npm test`.\n\n## License\nCopyright (c) 2013 Todd Wolfson\nLicensed under the MIT license.\n",
61  "readmeFilename": "README.md",
62  "_id": "grunt-curl@1.1.1",
63  "dist": {
64    "shasum": "b5f96d3caafa990205bce9a9d1e7bb612f08ddcd"
65  },
66  "_from": "grunt-curl@~1.1.0",
67  "_resolved": "https://registry.npmjs.org/grunt-curl/-/grunt-curl-1.1.1.tgz"
68}
Note: See TracBrowser for help on using the repository browser.