@mauriziocarella/copy-files

1.0.4 • Public • Published

copy-files

Simple helper to copy files, taking configuration from package.json.

Install

npx @mauriziocarella/copy-files

or

npm install -D @mauriziocarella/copy-files

or

yarn add -D @mauriziocarella/copy-files

Can also be run by npx with npx @mauriziocarella/copy-files

Usage

Add the copy-files configuration to your package.json and run npx @mauriziocarell/copy-files.

The src field supports glob patterns.

Example configuration in package.json:

{
  ...
  "copy-files": [
    {
      "dest": "build/data",
      "src": "src/data/**"
    },
    {
      "dest": "build/data",
      "src": [
        "src/file-1.txt",
        "src/file-2.txt"
      ]
    }
  ],
  ...
}

Package Sidebar

Install

npm i @mauriziocarella/copy-files

Weekly Downloads

2

Version

1.0.4

License

MIT

Unpacked Size

4.85 kB

Total Files

3

Last publish

Collaborators

  • mauriziocarella