GitXplorerGitXplorer
a

globby-cp

public
0 stars
1 forks
6 issues

Commits

List of commits on branch master.
Unverified
f605757c32773d4c45220c186eef06c7d3783ae2

chore(release): 1.3.0 [skip ci]

aantongolub committed a year ago
Unverified
72f65cd54ce3ba15a51d52b62140363d4c69ec41

feat: enable console.debug if env.DEBUG set

aantongolub committed a year ago
Unverified
1ef16cf4b2462cf71eb054e45221c0a96e5e80fb

chore(release): 1.2.0 [skip ci]

aantongolub committed a year ago
Unverified
cde901dc7313d16a1154fc960d54112cb420de61

chore: minor code imprs

aantongolub committed a year ago
Unverified
89102fbc2cab19558717fcec4d0e8294658c0ebf

fix(types): let `ignoreFiles` be string[]

aantongolub committed a year ago
Unverified
1d9f01a8dfc2e1a7642bb123bfc53985abda5f12

chore: up deps

aantongolub committed a year ago

README

The README file for this repository.

globby-cp

globby-boosted file copying util

Release Maintainability Test Coverage

Install

yarn add globby-cp

Usage

CLI

globby-cp src/*.js dist/
npx globby-cp ./* ./foo/bar --ignore-files .gitignore
Option Description Default
--base-from Base dir for from pattern process.cwd()
--base-to Base dir for to argument process.cwd()
--ignore-files, -i Path to ignoreFile (like .gitignore or .npmignore)
--version -v Print version
--help -h Show help

JS API

import {copy} from 'globby-cp'

await copy({
  from:       'src/**/*.js',
  to:         'dist/',
  baseFrom,   // process.cwd()
  baseTo,     // process.cwd(),
  debug,      // () => {}
  ignoreFiles // undefined
})

globby-cp + git

https://github.com/antongolub/git-glob-cp

License

MIT