glob.js 825 B

1234567891011121314151617181920212223
  1. "use strict";
  2. /*
  3. Copyright 2019 Google LLC
  4. Use of this source code is governed by an MIT-style
  5. license that can be found in the LICENSE file or at
  6. https://opensource.org/licenses/MIT.
  7. */
  8. const joi = require('@hapi/joi');
  9. const defaults = require('../defaults');
  10. module.exports = {
  11. globDirectory: joi.string(),
  12. globFollow: joi.boolean().default(defaults.globFollow),
  13. globIgnores: joi.array().items(joi.string()).default(defaults.globIgnores),
  14. globPatterns: joi.array().items(joi.string()).default(defaults.globPatterns),
  15. globStrict: joi.boolean().default(defaults.globStrict),
  16. // templatedURLs is an object where any property name is valid, and the values
  17. // can be either a string or an array of strings.
  18. templatedURLs: joi.object().pattern(/./, [joi.string(), joi.array().items(joi.string())])
  19. };