1.0.4 • Published 1 year ago

@mauriziocarella/copy-files v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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"
      ]
    }
  ],
  ...
}
1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago