npm.io
0.2.2 • Published 6 years agoCLI

@znemz/js-common-cpy-cli

Licence
MIT
Version
0.2.2
Deps
7
Size
6 kB
Vulns
0
Weekly
0
Stars
2

cpy-cli

Cli generator to access sindresorhus/cpy for various projects to clone boilerplate files.

How to use

Main intent is to use this pragmatically via the js api, otherwise just use the simpler cpy cli instead.

JS API Example:

#!/usr/bin/env node
import path from 'path';
import { cliGen } from '@znemz/js-common-cpy-cli';

cliGen({ src: path.resolve(__dirname, '..', 'tsconfig.json') });

However if you're so inclined to use the js-common-cpy-cli.

Example Cli:

❯ node_modules/.bin/js-common-cpy-cli --help
Usage: js-common-cpy-cli [options]

Options:
  -V, --version   output the version number
  -d, --dest <d>  dest path
  -s, --src <s>   source glob
  -h, --help      output usage information
js-common-cpy-cli -s src/**.*.js -d ./dist