Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/TrickyPi/rollup-copy-smartly
a rollup copy plugin
https://github.com/TrickyPi/rollup-copy-smartly
Last synced: 25 days ago
JSON representation
a rollup copy plugin
- Host: GitHub
- URL: https://github.com/TrickyPi/rollup-copy-smartly
- Owner: TrickyPi
- Created: 2022-02-12T12:46:56.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-18T08:08:59.000Z (over 1 year ago)
- Last Synced: 2024-03-15T06:25:06.256Z (9 months ago)
- Language: TypeScript
- Size: 45.9 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome - copy-smartly - Smartly copy files if they are changed, created or deleted. (Plugins / Output)
README
# rollup-copy-smartly
## Features
Smartly copy files if they are changed, created or deleted.
## Getting Started
```console
npm install --save-dev rollup-copy-smartly
```or
```console
yarn add -D rollup-copy-smartly
```or
```console
pnpm add -D rollup-copy-smartly
```## Use
**rollup.config.js**
```js
import copy from "rollup-copy-smartly";
export default {
...
plugins: [
copy({
src: "src/",
pattern: /.html$/,
dest: "dist/",
}),
],
};
```## Options
| option | type | description |
| ------- | ------------------- | ------------------------------------------------------------------------------------ |
| src | string | Path to dir which will be watching, it could be absolute path or relative path |
| pattern | RegExp or RegExp[ ] | Filter specific files |
| dest | string or string[ ] | Paths to dir which are output directorys, it could be absolute path or relative path |