How to use copyfiles - 2 common examples

To help you get started, we’ve selected a few copyfiles examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github slicknode / slicknode / test / plugins / workspace-command.ts View on Github external
await new Promise((resolve) => {
        mkdirpSync(workspace);
        copyfiles([
          path.join(sourcePath, '.slicknode', '**', '*'),
          path.join(sourcePath, '**', '*'),
          path.join(sourcePath, '.*'),
          workspace,
        ], {up: sourcePath.split('/').length}, resolve);
      });
github adonisjs / adonis-cli / src / Services / Compiler.ts View on Github external
return new Promise((resolve, reject) => {
      fancyLogs.info({
        message: `copy ${files.join(',')}`,
        suffix: `to ${relative(this.projectRoot, dest)}`,
      })

      copyfiles(files.concat(dest), {}, (error: Error) => {
        if (error) {
          reject(error)
        } else {
          resolve()
        }
      })
    })
  }

copyfiles

copy some files

MIT
Latest version published 2 years ago

Package Health Score

72 / 100
Full package analysis

Popular copyfiles functions

Similar packages