{"_id":"grunt-copy","_rev":"10-58c9f435bbbcf83820f344b0306d3dcc","name":"grunt-copy","description":"The best Grunt plugin ever.","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"grunt-copy","description":"The best Grunt plugin ever.","version":"0.1.0","homepage":"https://github.com/xudafeng/grunt-copy","author":{"name":"xudafeng","email":"xudafeng@126.com","url":"http://xdf.me/"},"repository":{"type":"git","url":"https://github.com/xudafeng/grunt-copy.git"},"bugs":{"url":"https://github.com/xudafeng/grunt-copy/issues"},"licenses":[{"type":"MIT","url":"https://github.com/xudafeng/grunt-copy/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.6.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.2"},"peerDependencies":{"grunt":"~0.4.2"},"keywords":["gruntplugin"],"readme":"# grunt-copy\n\n> The best Grunt plugin ever.\n\n## Getting Started\nThis plugin requires Grunt `~0.4.2`\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-copy --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-copy');\n```\n\n## The \"copy\" task\n\n### Overview\nIn your project's Gruntfile, add a section named `copy` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  copy: {\n    options: {\n      // Task-specific options go here.\n    },\n    your_target: {\n      // Target-specific file lists and/or options go here.\n    },\n  },\n});\n```\n\n### Options\n\n#### options.separator\nType: `String`\nDefault value: `',  '`\n\nA string value that is used to do something with whatever.\n\n#### options.punctuation\nType: `String`\nDefault value: `'.'`\n\nA string value that is used to do something else with whatever else.\n\n### Usage Examples\n\n#### Default Options\nIn this example, the default options are used to do something with whatever. So if the `testing` file has the content `Testing` and the `123` file had the content `1 2 3`, the generated result would be `Testing, 1 2 3.`\n\n```js\ngrunt.initConfig({\n  copy: {\n    options: {},\n    files: {\n      'dest/default_options': ['src/testing', 'src/123'],\n    },\n  },\n});\n```\n\n#### Custom Options\nIn this example, custom options are used to do something else with whatever else. So if the `testing` file has the content `Testing` and the `123` file had the content `1 2 3`, the generated result in this case would be `Testing: 1 2 3 !!!`\n\n```js\ngrunt.initConfig({\n  copy: {\n    options: {\n      separator: ': ',\n      punctuation: ' !!!',\n    },\n    files: {\n      'dest/default_options': ['src/testing', 'src/123'],\n    },\n  },\n});\n```\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 and test your code using [Grunt](http://gruntjs.com/).\n\n## Release History\n_(Nothing yet)_\n","readmeFilename":"README.md","_id":"grunt-copy@0.1.0","dist":{"shasum":"5166fff1d19fcff8a02c75b9663e7331e236406d","tarball":"https://registry.npmjs.org/grunt-copy/-/grunt-copy-0.1.0.tgz","integrity":"sha512-2+b8Me5kCBtOwLjxy88qLpuMTo+GqU8HYxyGK2mLkJHVbe2oDgufuL/AipjnpyWphn2Y5fKPFkk+mlEKa37Ytg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJ5CkEZTXVlAd1m9iD/wpeqNrYr8j8QDTlZlxBU5NGLAIgTW4SPFKvNa/DnqC2hLwiskDjDZTLwlh3sS76c7Z1stc="}]},"_from":".","_npmVersion":"1.3.22","_npmUser":{"name":"xudafeng","email":"xudafeng@126.com"},"maintainers":[{"name":"xudafeng","email":"xudafeng@126.com"}],"directories":{}}},"readme":"# grunt-copy\n\n> The best Grunt plugin ever.\n\n## Getting Started\nThis plugin requires Grunt `~0.4.2`\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-copy --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-copy');\n```\n\n## The \"copy\" task\n\n### Overview\nIn your project's Gruntfile, add a section named `copy` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  copy: {\n    options: {\n      // Task-specific options go here.\n    },\n    your_target: {\n      // Target-specific file lists and/or options go here.\n    },\n  },\n});\n```\n\n### Options\n\n#### options.separator\nType: `String`\nDefault value: `',  '`\n\nA string value that is used to do something with whatever.\n\n#### options.punctuation\nType: `String`\nDefault value: `'.'`\n\nA string value that is used to do something else with whatever else.\n\n### Usage Examples\n\n#### Default Options\nIn this example, the default options are used to do something with whatever. So if the `testing` file has the content `Testing` and the `123` file had the content `1 2 3`, the generated result would be `Testing, 1 2 3.`\n\n```js\ngrunt.initConfig({\n  copy: {\n    options: {},\n    files: {\n      'dest/default_options': ['src/testing', 'src/123'],\n    },\n  },\n});\n```\n\n#### Custom Options\nIn this example, custom options are used to do something else with whatever else. So if the `testing` file has the content `Testing` and the `123` file had the content `1 2 3`, the generated result in this case would be `Testing: 1 2 3 !!!`\n\n```js\ngrunt.initConfig({\n  copy: {\n    options: {\n      separator: ': ',\n      punctuation: ' !!!',\n    },\n    files: {\n      'dest/default_options': ['src/testing', 'src/123'],\n    },\n  },\n});\n```\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 and test your code using [Grunt](http://gruntjs.com/).\n\n## Release History\n_(Nothing yet)_\n","maintainers":[{"name":"xudafeng","email":"xudafeng@126.com"}],"time":{"modified":"2022-06-18T14:45:04.353Z","created":"2014-01-02T02:20:20.579Z","0.1.0":"2014-01-02T02:20:20.579Z"},"users":{"xueboren":true,"tdmalone":true,"shahyar":true}}