{"id":19450940,"url":"https://github.com/rixo/rollup-plugin-copy-watch","last_synced_at":"2025-04-25T04:30:20.361Z","repository":{"id":37930701,"uuid":"264429340","full_name":"rixo/rollup-plugin-copy-watch","owner":"rixo","description":"A fork of rollup-plugin-copy that can watch other directories","archived":false,"fork":false,"pushed_at":"2023-01-05T11:23:00.000Z","size":409,"stargazers_count":11,"open_issues_count":10,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-21T18:46:13.433Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rixo.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-16T12:13:46.000Z","updated_at":"2023-09-01T01:20:57.000Z","dependencies_parsed_at":"2023-02-04T03:04:20.537Z","dependency_job_id":null,"html_url":"https://github.com/rixo/rollup-plugin-copy-watch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rixo%2Frollup-plugin-copy-watch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rixo%2Frollup-plugin-copy-watch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rixo%2Frollup-plugin-copy-watch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rixo%2Frollup-plugin-copy-watch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rixo","download_url":"https://codeload.github.com/rixo/rollup-plugin-copy-watch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250754495,"owners_count":21481822,"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":[],"created_at":"2024-11-10T16:39:39.878Z","updated_at":"2025-04-25T04:30:19.946Z","avatar_url":"https://github.com/rixo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rollup-plugin-copy-watch\n\nA fork of [rollup-plugin-copy](https://github.com/vladshcherbin/rollup-plugin-copy) with an additional `watch` to watch other sources than just Rollup's bundle content (e.g. your static assets directory).\n\n[![Build Status](https://travis-ci.org/vladshcherbin/rollup-plugin-copy.svg?branch=master)](https://travis-ci.org/vladshcherbin/rollup-plugin-copy)\n[![Codecov](https://codecov.io/gh/vladshcherbin/rollup-plugin-copy/branch/master/graph/badge.svg)](https://codecov.io/gh/vladshcherbin/rollup-plugin-copy)\n\nCopy files and folders, with glob support.\n\n## Installation\n\n```bash\n# yarn\nyarn add rollup-plugin-copy-watch -D\n\n# npm\nnpm install rollup-plugin-copy-watch -D\n```\n\n## Usage\n\n```js\n// rollup.config.js\nimport copy from 'rollup-plugin-copy-watch'\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    file: 'dist/app.js',\n    format: 'cjs'\n  },\n  plugins: [\n    copy({\n      // the watch option is passed directly to Chokidar, so it can be a file,\n      // dir, array or glob(s)\n      watch: 'static',\n\n      targets: [\n        { src: 'src/index.html', dest: 'dist/public' },\n        { src: ['assets/fonts/arial.woff', 'assets/fonts/arial.woff2'], dest: 'dist/public/fonts' },\n        { src: 'assets/images/**/*', dest: 'dist/public/images' }\n      ]\n    })\n  ]\n}\n```\n\n### Configuration\n\nThe configuration is exactly the same as [rollup-plugin-copy](https://github.com/vladshcherbin/rollup-plugin-copy#configuration), with just one option added. Refer to the original plugin for all other options.\n\n#### watch\n\nType: `string|string[]` Default: `null`\n\nPaths to files, dirs to be watched recursively, or glob patterns.\n\nThis is passed directly to [`chokidar.watch`](https://github.com/paulmillr/chokidar#api).\n\n## Original Author\n\n`rollup-plugin-copy`: [Cédric Meuter](https://github.com/meuter)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frixo%2Frollup-plugin-copy-watch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frixo%2Frollup-plugin-copy-watch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frixo%2Frollup-plugin-copy-watch/lists"}