summaryrefslogtreecommitdiffstats
path: root/node_modules/copy-webpack-plugin/dist/options.json
blob: 76d620b521ea9190a50d32c76e4fd9ad4e86aeaa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
{
  "definitions": {
    "ObjectPattern": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "from": {
          "type": "string",
          "minLength": 1
        },
        "to": {
          "type": "string"
        },
        "context": {
          "type": "string"
        },
        "globOptions": {
          "type": "object"
        },
        "filter": {
          "instanceof": "Function"
        },
        "toType": {
          "enum": ["dir", "file", "template"]
        },
        "force": {
          "type": "boolean"
        },
        "flatten": {
          "type": "boolean"
        },
        "transform": {
          "instanceof": "Function"
        },
        "cacheTransform": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "string"
            },
            {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "directory": {
                  "type": "string",
                  "absolutePath": true
                },
                "keys": {
                  "anyOf": [
                    {
                      "type": "object",
                      "additionalProperties": true
                    },
                    {
                      "instanceof": "Function"
                    }
                  ]
                }
              }
            }
          ]
        },
        "transformPath": {
          "instanceof": "Function"
        },
        "noErrorOnMissing": {
          "type": "boolean"
        }
      },
      "required": ["from"]
    },
    "StringPattern": {
      "type": "string",
      "minLength": 1
    }
  },
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "patterns": {
      "type": "array",
      "minItems": 1,
      "items": {
        "anyOf": [
          {
            "$ref": "#/definitions/StringPattern"
          },
          {
            "$ref": "#/definitions/ObjectPattern"
          }
        ]
      }
    },
    "options": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "concurrency": {
          "type": "number"
        }
      }
    }
  },
  "required": ["patterns"]
}