Copy Pack
Simply copy files.
Overview
Setup
Copy Pack
is included in the complete
and default
editions.
Current Release
npm install --save-dev @packmule/copy-pack
Nightly Build
npm install --save-dev @packmule/copy-pack@nightly
API
CopyPack()
.include(glob: string)
.to(path: string)
Hints
- hash - Configures whether file name hashing is enabled or not.
Usage
Example
Copy JSON files.
import Packmule from '@packmule/core';
import CopyPack from '@packmule/copy-pack';
const packmule = new Packmule();
packmule.add(new CopyPack().include('**/data/*.json').to('data/'));
return packmule.generate();