{"_id":"@alloc/rollup-plugin-cpy","_rev":"1-4d7ceb36f10057dd9c262652cc355c2b","name":"@alloc/rollup-plugin-cpy","dist-tags":{"latest":"1.1.1"},"versions":{"1.1.1":{"name":"@alloc/rollup-plugin-cpy","version":"1.1.1","description":"rollup plugin to easily copy files and folders.","main":"dist/rollup-plugin-cpy.cjs.js","module":"dist/rollup-plugin-cpy.es.js","jsnext:main":"dist/rollup-plugin-cpy.es.js","keywords":["rollup copy","rollup plugin copy"],"repository":{"type":"git","url":"git+https://github.com/shrynx/rollup-plugin-cpy.git"},"bugs":{"url":"https://github.com/shrynx/rollup-plugin-cpy/issues"},"homepage":"https://github.com/shrynx/rollup-plugin-cpy#readme","author":{"name":"Shriyans Bhatnagar","email":"shriyansbhatnagar@gmail.com"},"license":"MIT","scripts":{"lint":"eslint 'src/**/*.js'","format":"prettier-eslint --write 'src/**/*.js' '*.md'","commit":"git-cz","commit:retry":"git-cz --retry","commitmsg":"commitlint -e","clean":"rimraf dist","build":"npm run clean && rollup -c","prepublishOnly":"npm run build"},"lint-staged":{"src/**/*.js":["eslint","prettier-eslint --write","git add"],"*.md":["prettier-eslint --write","git add"]},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"husky":{"hooks":{"pre-commit":"lint-staged"}},"devDependencies":{"@commitlint/cli":"^6.1.3","@commitlint/config-conventional":"^6.1.3","commitizen":"^2.9.6","cz-conventional-changelog":"^2.1.0","eslint":"^4.18.2","eslint-config-prettier":"^2.9.0","eslint-config-standard":"^11.0.0","eslint-plugin-import":"^2.9.0","eslint-plugin-node":"^6.0.1","eslint-plugin-prettier":"^2.6.0","eslint-plugin-promise":"^3.6.0","eslint-plugin-standard":"^3.0.1","husky":"^0.15.0-rc.8","lint-staged":"^7.0.0","prettier":"^1.11.1","prettier-eslint-cli":"^4.7.1","rimraf":"^2.6.2","rollup":"^0.57.1","rollup-plugin-buble":"^0.19.2","rollup-plugin-commonjs":"^9.1.0","rollup-plugin-json":"^2.3.0"},"dependencies":{"chalk":"^2.3.2","cpy":"^7.0.1","lodash.isobject":"^3.0.2","mkdirp":"^0.5.1"},"gitHead":"3bd4616c5fc10db7ad4f50f6dd846a1e749a01f4","_id":"@alloc/rollup-plugin-cpy@1.1.1","_nodeVersion":"11.10.1","_npmVersion":"6.9.0","dist":{"integrity":"sha512-GlaXP+6UlqKfMjoeiQFAIx4/f3aHM2OTwqgsDAFYLIlyoCkBQ5SeW0qH+gwqdDZbfhGYxfQjg/HUsfIE/u1cKA==","shasum":"1fc445c6d09ca6d97ac7e555535fb6c2e9caa238","tarball":"https://registry.npmjs.org/@alloc/rollup-plugin-cpy/-/rollup-plugin-cpy-1.1.1.tgz","fileCount":5,"unpackedSize":8792,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc8FAvCRA9TVsSAnZWagAAzoIP/1neq3le/bfPXIj4uPed\n/ra/PhAN9KEsKvCgYRmO5tRBBEc8R4w2mozkhikkc7tT5AwiiJF2gAgGN6tc\n1jf1bwUmytmsh00C/sR4E1kUGhTWdSLaTu0kLdICDcdpb+CLfxO8X2O3aQp8\nAu6I/ouQ1PfgxBqnJfUanfxE7PZW714My+ZfOTOsMNM8wnGAp/cjDPEioOWl\nt3GQiPDtjPxsywHesOqpBexUpfeK9hYLpV+yjV2pY+uwe+qDYZxFWjxyoyYl\nJhUmSnCvW11g1odbrGAhOf9unGwTc3l/YrDolzPpPJYl13GPTe7CZo3Kgm6n\nnSvRvecYe09oiuZHnjccB2vA1TUGV3it9fpwRuAzg0y+egb1JS/7lgDlJpxA\n/DtHpmvGnl0wYc+tYtTagS+nrAVxfaJbaYp9hlu63l6kYsf3XoF23FljBhve\nhfk3EFLMZ9f3GiuNLANrZljBLHpqyT55wImNHRYo60EjhPf7YrDMw3AHUhu+\n7lED4EUhsB+YLMkHUJPp+DtM1Z/TSoAfr8fNZS74VF0ddWhK0Ay/H6CkLrAp\n4JDFSLNCR2WS/sNWOMK7XR10gHNrrc0SBpdeQB7PT6XyHKBKMwillidv2Odb\n6Li6mymEc7H0twy3TYv2I5EVn0SazZjcIg4b9W8uSfRpk8Hz8RsyHGW/KmaG\n6DQg\r\n=ktk9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEC9M0dQ231dHzkYiw5pZjj2VnOqEQwMv3OhH/eIs/o/AiEAtvvZHtpcu7i/82Zdp12CDMyXnXysGY0UNBr81EOayr4="}]},"maintainers":[{"name":"aleclarson","email":"alec.stanford.larson@gmail.com"}],"_npmUser":{"name":"aleclarson","email":"alec.stanford.larson@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-cpy_1.1.1_1559253038803_0.8680593838108936"},"_hasShrinkwrap":false}},"time":{"created":"2019-05-30T21:50:38.603Z","1.1.1":"2019-05-30T21:50:38.948Z","modified":"2022-04-04T13:33:43.119Z"},"maintainers":[{"name":"aleclarson","email":"alec.stanford.larson@gmail.com"}],"description":"rollup plugin to easily copy files and folders.","homepage":"https://github.com/shrynx/rollup-plugin-cpy#readme","keywords":["rollup copy","rollup plugin copy"],"repository":{"type":"git","url":"git+https://github.com/shrynx/rollup-plugin-cpy.git"},"author":{"name":"Shriyans Bhatnagar","email":"shriyansbhatnagar@gmail.com"},"bugs":{"url":"https://github.com/shrynx/rollup-plugin-cpy/issues"},"license":"MIT","readme":"# rollup-plugin-cpy\n\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n[![MIT License](https://img.shields.io/npm/l/rollup-plugin-cpy.svg?style=flat-square)](https://github.com/shrynx/rollup-plugin-cpy/blob/master/LICENSE)\n![rollup-plugin-cpy-status](https://david-dm.org/shrynx/rollup-plugin-cpy.svg?path=packages/rollup-plugin-cpy)\n[![npm version](https://badge.fury.io/js/rollup-plugin-cpy.svg)](https://badge.fury.io/js/rollup-plugin-cpy)\n\n> rollup plugin to easily copy files and folders.\n\n## Installation\n\n* yarn\n\n```sh\nyarn add -D rollup-plugin-cpy\n```\n\n* npm\n\n```sh\nnpm i -D rollup-plugin-cpy\n```\n\n## Usage\n\nThis plugin uses [cpy](https://github.com/sindresorhus/cpy) by [@sindresorhus](https://github.com/sindresorhus).\n\nAll the options map to the `cpy` package apart from `verbose`.\n\nIt takes a config object\n\n```js\n{\n  files: string | glob | Array<string & glob>\n  dest: string,\n  options: {\n    verbose: boolean,\n    ...restOptions\n  }\n}\n```\n\nThe verbose option if set to true print out each file copying log on console.\n\n`restOptions` are same as [options passed to cpy](https://github.com/sindresorhus/cpy#options)\n\n```js\nimport copy from 'rollup-plugin-cpy'\n\n...\n\nplugins: [\n  ...\n  copy({\n    files: ['src/*.png', '!src/goat.png'],\n    dest: 'dist',\n    options: {\n      verbose: true,\n      ...\n    }\n  })\n]\n\n...\n```\n\nIt can also take an array of [above mentioned config object](#usage)\n\n```js\nimport copy from 'rollup-plugin-cpy'\n\n...\n\nplugins: [\n  ...\n  copy([\n        { files: 'src/**/*.png', dest: './dist/images' },\n        { files: 'src/**/*.mp3', dest: './dist/audio' },\n        { files: 'src/**/*.webm', dest: './dist/video' },\n      ]),\n]\n\n...\n```\n","readmeFilename":"README.md"}