UNPKG

711 BMarkdownView Raw
1# Copy Pack
2
3> Simply copy files.
4
5## Setup
6
7```bash
8npm install --save-dev @packmule/copy-pack
9```
10
11## API
12
13```ts
14CopyPack()
15 .include(glob: string)
16 .to(path: string)
17```
18
19## Hints
20
21- **hash** - _Configures whether file name hashing is enabled or not._
22
23## Usage
24
25**Example**
26
27Copy JSON files.
28
29```ts
30import Packmule from '@packmule/core';
31import CopyPack from '@packmule/copy-pack';
32
33const packmule = new Packmule();
34packmule.register(new CopyPack().include('**/data/*.json').to('data/'));
35return packmule.generate();
36```
37
38## License
39
40[MIT](https://choosealicense.com/licenses/mit/)
41
42---
43
44[<img src="https://www.pixelart.at/fileadmin/images/logo-new/logo.svg" width="150">](https://www.pixelart.at/)