nunta/node_modules/grunt-contrib-copy/package.json
David Miller 0025e7e961 setting up Gruntfile and dist folder
index.html, mail/, bootstrap and jquery bower components will build to
the dist folder when running grunt
2014-08-12 21:01:38 -04:00

51 lines
8.1 KiB
JSON
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"name": "grunt-contrib-copy",
"description": "Copy files and folders.",
"version": "0.5.0",
"homepage": "https://github.com/gruntjs/grunt-contrib-copy",
"author": {
"name": "Grunt Team",
"url": "http://gruntjs.com/"
},
"repository": {
"type": "git",
"url": "git://github.com/gruntjs/grunt-contrib-copy.git"
},
"bugs": {
"url": "https://github.com/gruntjs/grunt-contrib-copy/issues"
},
"licenses": [
{
"type": "MIT",
"url": "https://github.com/gruntjs/grunt-contrib-copy/blob/master/LICENSE-MIT"
}
],
"engines": {
"node": ">= 0.8.0"
},
"scripts": {
"test": "grunt test"
},
"devDependencies": {
"grunt-contrib-jshint": "~0.6.2",
"grunt-contrib-nodeunit": "~0.2.0",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-internal": "~0.4.5",
"grunt": "~0.4.0"
},
"peerDependencies": {
"grunt": "~0.4.0"
},
"keywords": [
"gruntplugin"
],
"files": [
"tasks",
"LICENSE-MIT"
],
"readme": "# grunt-contrib-copy v0.5.0 [![Build Status](https://travis-ci.org/gruntjs/grunt-contrib-copy.png?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-copy)\n\n> Copy files and folders.\n\n\n\n## Getting Started\nThis plugin requires Grunt `~0.4.0`\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-contrib-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-contrib-copy');\n```\n\n*This plugin was designed to work with Grunt 0.4.x. If you're still using grunt v0.3.x it's strongly recommended that [you upgrade](http://gruntjs.com/upgrading-from-0.3-to-0.4), but in case you can't please use [v0.3.2](https://github.com/gruntjs/grunt-contrib-copy/tree/grunt-0.3-stable).*\n\n\n\n## Copy task\n_Run this task with the `grunt copy` command._\n\nTask targets, files and options may be specified according to the grunt [Configuring tasks](http://gruntjs.com/configuring-tasks) guide.\n### Options\n\n#### process\nType: `Function(content, srcpath)`\n\nThis option is passed to `grunt.file.copy` as an advanced way to control the file contents that are copied.\n\n*`processContent` has been renamed to `process` and the option name will be removed in the future.*\n\n#### noProcess\nType: `String`\n\nThis option is passed to `grunt.file.copy` as an advanced way to control which file contents are processed.\n\n*`processContentExclude` has been renamed to `noProcess` and the option name will be removed in the future.*\n\n#### encoding\nType: `String` \nDefault: `grunt.file.defaultEncoding`\n\nThe file encoding to copy files with.\n\n#### mode\nType: `Boolean` or `Number` \nDefault: `false`\n\nWhether to copy or set the existing file permissions. Set to `true` to copy the existing file permissions. Or set to the mode, i.e.: `0644`, that copied files will be set to.\n\n### Usage Examples\n\n```js\ncopy: {\n main: {\n files: [\n // includes files within path\n {expand: true, src: ['path/*'], dest: 'dest/', filter: 'isFile'},\n\n // includes files within path and its sub-directories\n {expand: true, src: ['path/**'], dest: 'dest/'},\n\n // makes all src relative to cwd\n {expand: true, cwd: 'path/', src: ['**'], dest: 'dest/'},\n\n // flattens results to a single level\n {expand: true, flatten: true, src: ['path/**'], dest: 'dest/', filter: 'isFile'}\n ]\n }\n}\n```\n\nThis task supports all the file mapping format Grunt supports. Please read [Globbing patterns](http://gruntjs.com/configuring-tasks#globbing-patterns) and [Building the files object dynamically](http://gruntjs.com/configuring-tasks#building-the-files-object-dynamically) for additional details.\n\nHere are some additional examples, given the following file tree:\n```shell\n$ tree -I node_modules\n.\n├── Gruntfile.js\n└── src\n ├── a\n └── subdir\n └── b\n\n2 directories, 3 files\n```\n\n**Copy a single file tree:**\n```js\ncopy: {\n main: {\n src: 'src/*',\n dest: 'dest/',\n },\n},\n```\n\n```shell\n$ grunt copy\nRunning \"copy:main\" (copy) task\nCreated 1 directories, copied 1 files\n\nDone, without errors.\n$ tree -I node_modules\n.\n├── Gruntfile.js\n├── dest\n│   └── src\n│   ├── a\n│   └── subdir\n└── src\n ├── a\n └── subdir\n └── b\n\n5 directories, 4 files\n```\n\n**Flattening the filepath output:**\n\n```js\ncopy: {\n main: {\n expand: true,\n cwd: 'src/',\n src: '**',\n dest: 'dest/',\n flatten: true,\n filter: 'isFile',\n },\n},\n```\n\n```shell\n$ grunt copy\nRunning \"copy:main\" (copy) task\nCopied 2 files\n\nDone, without errors.\n$ tree -I node_modules\n.\n├── Gruntfile.js\n├── dest\n│   ├── a\n│   └── b\n└── src\n ├── a\n └── subdir\n └── b\n\n3 directories, 5 files\n```\n\n\n**Copy and modify a file:**\n\nTo change the contents of a file as it is copied, set an `options.process` function as follows:\n\n```js\ncopy: {\n main: {\n src: 'src/a',\n dest: 'src/a.bak',\n options: {\n process: function (content, srcpath) {\n return content.replace(/[sad ]/g,\"_\");\n }\n }\n },\n},\n```\n\nHere all occurences of the letters \"s\", \"a\" and \"d\", as well as all spaces, will be changed to underlines in \"a.bak\". Of course, you are not limited to just using regex replacements.\n\nTo process all files in a directory, the `process` function is used in exactly the same way.\n\nNOTE: If `process` is not working, be aware it was called `processContent` in v0.4.1 and earlier.\n\n\n##### Troubleshooting\n\nBy default, if a file or directory is not found it is quietly ignored. If the file should exist, and non-existence generate an error, then add `nonull:true`. For instance, this Gruntfile.js entry:\n\n```js\ncopy: {\n main: {\n nonull: true,\n src: 'not-there',\n dest: 'create-me',\n },\n},\n```\n\ngives this output:\n\n```shell\n$ grunt copy\nRunning \"copy:main\" (copy) task\nWarning: Unable to read \"not-there\" file (Error code: ENOENT). Use --force to continue.\n\nAborted due to warnings.\n```\n\n\n\n## Release History\n\n * 2013-12-23v0.5.0If an encoding is specified, overwrite grunt.file.defaultEncoding. Rename processContent/processContentExclude to process/noProcess to match Grunt API. mode option to copy existing or set file permissions.\n * 2013-03-26v0.4.1Output summary by default (\"Copied N files, created M folders\"). Individual transaction output available via `--verbose`.\n * 2013-02-15v0.4.0First official release for Grunt 0.4.0.\n * 2013-01-23v0.4.0rc7Updating grunt/gruntplugin dependencies to rc7. Changing in-development grunt/gruntplugin dependency versions from tilde version ranges to specific versions.\n * 2013-01-14v0.4.0rc5Updating to work with grunt v0.4.0rc5. Conversion to grunt v0.4 conventions. Replace basePath with cwd. Empty directory support.\n * 2012-10-18v0.3.2Pass copyOptions on single file copy.\n * 2012-10-12v0.3.1Rename grunt-contrib-lib dep to grunt-lib-contrib.\n * 2012-09-24v0.3.0General cleanup and consolidation. Global options depreciated.\n * 2012-09-18v0.2.4No valid source check.\n * 2012-09-17v0.2.3Path.sep fallback for node <= 0.7.9.\n * 2012-09-17v0.2.2Single file copy support. Test refactoring.\n * 2012-09-07v0.2.0Refactored from grunt-contrib into individual repo.\n\n---\n\nTask submitted by [Chris Talkington](http://christalkington.com/)\n\n*This file was generated on Mon Dec 23 2013 20:21:57.*\n",
"readmeFilename": "README.md",
"_id": "grunt-contrib-copy@0.5.0",
"_from": "grunt-contrib-copy@"
}