How to use the globby.gitignore function in globby

To help you get started, we’ve selected a few globby 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 transloadit / uppy / bin / after-version-bump.js View on Github external
'examples/**/*.html',
    'packages/*/README.md',
    'packages/@uppy/*/README.md',
    'website/src/docs/**',
    'website/src/examples/**',
    'website/themes/uppy/layout/**',
    '!**/node_modules/**'
  ])

  await updateVersions(files, 'uppy')
  await updateVersions(files, '@uppy/robodog')
  await updateVersions(files, '@uppy/locales')

  // gitignored files were updated for the npm package, but can't be updated
  // on git.
  const isIgnored = await globby.gitignore()
  await gitAdd(files.filter((filename) => !isIgnored(filename)))

  await npmRunBuild()
}

globby

User-friendly glob matching

MIT
Latest version published 5 months ago

Package Health Score

81 / 100
Full package analysis