0.1.1 • Published 5 years ago

copy-plus v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Light : Smaller than gulp

Compression : Can be configured for gzip or Brotli (node 11+)

Watching : Can be configured to watch directories

Getting Started

Install copy-plus using yarn:

yarn add --dev copy-plus

Usage

Configure your package.json

{
  "cppConfig": {
    "watch": [
      {
        "dirs": ["src/**", "test/**"],
        "ignore": "!**/*.ts",
        "dest": "dist",
        "keepPath": true,
        "ignoreWatchDir": true
      }
    ],
    "copy": [
      {
        "dirs": ["node_modules/muicss/dist/email/*.css"],
        "gz": true,
        "br": true,
        "dest": "dist/src/services/templates",
        "keepPath": false
      }
    ]
  }
}
  • keepPath: Ignores source directory structure when false
    • when true: dist/src/services/templates => dist/src/services/templates/node_modules/muicss/dist/email/*.css
    • when false: dist/src/services/templates => dist/src/services/templates/.css
  • gz: Prodce a DEST.gz file
    • ignored in watch configurations
  • br: Prodce a DEST.br file - only available on node 11.7+
    • ignored in watch configurations
  • dirs: Glob patterns to watch directories to
  • dest: directory to place items in
  • ignoreWatchDir: Don't use the root directory in output file structure
    • dir:["src/**"] => a/b/c.txt and would not give src/a/b/c.txt

Command line

Run

nfc

Help menu

Usage: index [options]

Options:
  -w, --watch  Watch items in the watch configuration
  -h, --help   output usage information

Behavior

  • By default items in your watch config will be copied at least once.
  • Items in your copy will only be copied once per run.
  • Items are only watched when using nfc -w

License

copy-plus is MIT licensed.

0.1.1

5 years ago

0.1.0

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago