{"id":21989344,"url":"https://github.com/jvidalv/parcel-reporter-multiple-static-file-copier","last_synced_at":"2025-04-30T11:33:32.893Z","repository":{"id":38617384,"uuid":"356928520","full_name":"jvidalv/parcel-reporter-multiple-static-file-copier","owner":"jvidalv","description":"Parcel v2 plugin. Copies multiple specified files and folders into specified folders once build finishes successfully.","archived":false,"fork":false,"pushed_at":"2021-04-13T19:34:47.000Z","size":42,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-21T10:54:18.955Z","etag":null,"topics":["copier","files","node","parcel","plugin","reporter","static"],"latest_commit_sha":null,"homepage":"","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/jvidalv.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":"2021-04-11T17:05:37.000Z","updated_at":"2023-03-10T12:08:58.000Z","dependencies_parsed_at":"2022-08-25T20:41:21.437Z","dependency_job_id":null,"html_url":"https://github.com/jvidalv/parcel-reporter-multiple-static-file-copier","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jvidalv%2Fparcel-reporter-multiple-static-file-copier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jvidalv%2Fparcel-reporter-multiple-static-file-copier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jvidalv%2Fparcel-reporter-multiple-static-file-copier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jvidalv%2Fparcel-reporter-multiple-static-file-copier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jvidalv","download_url":"https://codeload.github.com/jvidalv/parcel-reporter-multiple-static-file-copier/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251691654,"owners_count":21628365,"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":["copier","files","node","parcel","plugin","reporter","static"],"created_at":"2024-11-29T19:29:07.826Z","updated_at":"2025-04-30T11:33:32.863Z","avatar_url":"https://github.com/jvidalv.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# parcel-reporter-multiple-static-file-copier\n[![npm version](https://img.shields.io/npm/v/parcel-reporter-multiple-static-file-copier.svg?style=flat)](https://www.npmjs.com/package/parcel-reporter-multiple-static-file-copier)\n\nThis is a plugin for [Parcel v2](https://v2.parceljs.org) that **copies multiple specified files and folders into specified folders** once build finishes **successfully** (Event: buildSuccess).\n\nInspired by [this plugin](https://github.com/elwin013/parcel-plugin-static-files-copy).\n\n## Install\n\nYarn\n```bash\n$ yarn add -D parcel-reporter-multiple-static-file-copier\n```\n\nNPM\n```bash\n$ npm install parcel-reporter-multiple-static-file-copier --save-dev\n```\n\n## Usage\n\nConfiguration is set under `multipleStaticFileCopier` in `package.json`. It must be an array of objects containing `origin` and `destination` props:\n\n| Property  | Path |\n| ------------- | ------------- |\n| origin  | Example: _node_modules/@package/public_  |\n| destination  | Example: _dist/public_  |\n\n\n\nYou **⚠️  must extend** Parcel configuration with the plugin name in `.parcelrc`:\n\n```json\n{\n  \"reporters\": [\n    \"...\",\n    \"parcel-reporter-multiple-static-file-copier\"\n  ]\n}\n```\n_*Note that the \"...\" notation is used to keep the default report plugins loaded by Parcel._\n\n## Example\nThis example will copy the contents of the folder _public_ into the folder _dist/public_.\n_(Note that both are in the project root)_\n\n`package.json`\n```json\n{\n  \"multipleStaticFileCopier\": [\n    {\n      \"origin\": \"public\",\n      \"destination\": \"dist/public/\"\n    }\n  ]\n}\n```\n\n## Todo\n\n- [ ] Add event type prop in configuration.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjvidalv%2Fparcel-reporter-multiple-static-file-copier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjvidalv%2Fparcel-reporter-multiple-static-file-copier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjvidalv%2Fparcel-reporter-multiple-static-file-copier/lists"}