# esbuild-plugin-copy-watch

> Esbuild plugin to copy and watch for files

Latest version **2.3.1** (published 2024-06-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install esbuild-plugin-copy-watch
pnpm add esbuild-plugin-copy-watch
yarn add esbuild-plugin-copy-watch
bun add esbuild-plugin-copy-watch
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.3.1 |
| Published | 2024-06-18 |
| First published | 2022-04-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 6 |
| Unpacked size | 22.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Author | Martín Acosta |
| Maintainers | tinchoz49 |
| Keywords | esbuild, plugin, copy, watch |

## Links

- npm: https://www.npmjs.com/package/esbuild-plugin-copy-watch
- Repository: https://github.com/tinchoz49/esbuild-plugin-copy-watch
- Homepage: https://github.com/tinchoz49/esbuild-plugin-copy-watch#readme
- Issues: https://github.com/tinchoz49/esbuild-plugin-copy-watch/issues
- npm.io page: https://npm.io/package/esbuild-plugin-copy-watch

## Dependencies (6)

- [is-glob](https://npm.io/package/is-glob.md) ^4.0.3
- [anymatch](https://npm.io/package/anymatch.md) ^3.1.3
- [chokidar](https://npm.io/package/chokidar.md) ^3.6.0
- [fs-extra](https://npm.io/package/fs-extra.md) ^11.2.0
- [@types/node](https://npm.io/package/@types/node.md) ^20.14.2
- [glob-parent](https://npm.io/package/glob-parent.md) ^6.0.2

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 2.3.1 (latest) — 2024-06-18
- 2.3.0 — 2024-06-17
- 2.2.0 — 2024-06-17
- 2.1.0 — 2024-01-09
- 2.0.2 — 2023-07-08
- 2.0.1 — 2023-07-08
- 2.0.0 — 2023-05-31
- 1.0.0 — 2023-04-03
- 0.0.7 — 2022-04-07
- 0.0.6 — 2022-04-07
- 0.0.5 — 2022-04-07
- 0.0.4 — 2022-04-07
- 0.0.3 — 2022-04-05
- 0.0.2 — 2022-04-05
- 0.0.1 — 2022-04-05

## README

# esbuild-plugin-copy-watch
Esbuild plugin to copy and watch for files

![Test Status](https://github.com/tinchoz49/esbuild-plugin-copy-watch/actions/workflows/test.yml/badge.svg)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard--ext-gren.svg)](https://github.com/tinchoz49/eslint-config-standard-ext)
[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)

## Install

```bash
$ npm install esbuild-plugin-copy-watch
```

## Usage

```javascript
import esbuild from 'esbuild'
import copy from 'esbuild-plugin-copy-watch'

await esbuild.build({
  entryPoints: ['src/index.js'],
  bundle: true,
  outfile: 'dest/build.js',
  write: false,
  plugins: [
    copy({
      paths: [
        { from: 'static/**', to: 'static' }, // will copy into dest/static
        { from: ['config/*.js', '!config/private.js'], to: 'config' } // will copy config files into dest/config and ignore the private.js
      ],
      forceCopyOnRebuild: false // force to copy the files in every rebuild
    })
  ]
})
```

## Issues

:bug: If you found an issue we encourage you to report it on [github](https://github.com/tinchoz49/esbuild-plugin-copy-watch/issues). Please specify your OS and the actions to reproduce it.

## Contributing

:busts_in_silhouette: Ideas and contributions to the project are welcome. You must follow this [guideline](https://github.com/tinchoz49/esbuild-plugin-copy-watch/blob/main/CONTRIBUTING.md).

## License

MIT

---
_Source: https://npm.io/package/esbuild-plugin-copy-watch · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
