{"id":13774888,"url":"https://github.com/paulmelnikow/rollup-plugin-cpy","last_synced_at":"2025-09-05T02:32:52.573Z","repository":{"id":34995909,"uuid":"194886594","full_name":"paulmelnikow/rollup-plugin-cpy","owner":"paulmelnikow","description":"Rollup plugin to easily copy files and folders","archived":false,"fork":false,"pushed_at":"2022-12-04T01:38:25.000Z","size":384,"stargazers_count":7,"open_issues_count":18,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-14T15:44:38.574Z","etag":null,"topics":["copy-file","copy-files","rollup","rollup-plugin"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paulmelnikow.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-02T15:07:56.000Z","updated_at":"2022-06-10T21:40:51.000Z","dependencies_parsed_at":"2023-01-15T11:42:02.584Z","dependency_job_id":null,"html_url":"https://github.com/paulmelnikow/rollup-plugin-cpy","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulmelnikow%2Frollup-plugin-cpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulmelnikow%2Frollup-plugin-cpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulmelnikow%2Frollup-plugin-cpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulmelnikow%2Frollup-plugin-cpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paulmelnikow","download_url":"https://codeload.github.com/paulmelnikow/rollup-plugin-cpy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232020698,"owners_count":18461396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["copy-file","copy-files","rollup","rollup-plugin"],"created_at":"2024-08-03T17:01:31.400Z","updated_at":"2024-12-31T18:52:50.977Z","avatar_url":"https://github.com/paulmelnikow.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Output"],"readme":"# rollup-plugin-cpy\n\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg?style=flat-square)](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/paulmelnikow/rollup-plugin-cpy/blob/master/LICENSE)\n[![npm version](https://img.shields.io/npm/v/rollup-plugin-cpy.svg?style=flat-square)](https://npmjs.com/package/rollup-plugin-cpy)\n\nRollup 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\u003cstring \u0026 glob\u003e\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\n## License\n\nThis project is licensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulmelnikow%2Frollup-plugin-cpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaulmelnikow%2Frollup-plugin-cpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulmelnikow%2Frollup-plugin-cpy/lists"}