Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
125 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,90 +1,33 @@ | ||
{ | ||
"definitions": { | ||
"ObjectPattern": { | ||
"type": "object", | ||
"properties": { | ||
"from": { | ||
"anyOf": [ | ||
{ | ||
"type": "string", | ||
"minLength": 1 | ||
}, | ||
{ | ||
"type": "object" | ||
} | ||
] | ||
}, | ||
"to": { | ||
"type": "string" | ||
}, | ||
"context": { | ||
"type": "string" | ||
}, | ||
"toType": { | ||
"enum": ["dir", "file", "template"] | ||
}, | ||
"test": { | ||
"anyOf": [ | ||
{ | ||
"type": "string" | ||
}, | ||
{ | ||
"instanceof": "RegExp" | ||
} | ||
] | ||
}, | ||
"force": { | ||
"type": "boolean" | ||
}, | ||
"ignore": { | ||
"type": "array", | ||
"items": { | ||
"anyOf": [ | ||
{ | ||
"type": "string" | ||
}, | ||
{ | ||
"type": "object" | ||
} | ||
] | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"logLevel": { | ||
"description": "Level of messages that the module will log", | ||
"enum": ["trace", "debug", "info", "warn", "error", "silent"] | ||
}, | ||
"ignore": { | ||
"description": "Array of globs to ignore (applied to `from`)", | ||
"type": "array", | ||
"items": { | ||
"anyOf": [ | ||
{ | ||
"type": "string" | ||
}, | ||
{ | ||
"type": "object" | ||
} | ||
}, | ||
"flatten": { | ||
"type": "boolean" | ||
}, | ||
"cache": { | ||
"anyOf": [ | ||
{ | ||
"type": "boolean" | ||
}, | ||
{ | ||
"type": "object" | ||
} | ||
] | ||
}, | ||
"transform": { | ||
"instanceof": "Function" | ||
}, | ||
"transformPath": { | ||
"instanceof": "Function" | ||
} | ||
}, | ||
"required": ["from"] | ||
] | ||
} | ||
}, | ||
"StringPattern": { | ||
"type": "string", | ||
"minLength": 1 | ||
"context": { | ||
"description": "A path that determines how to interpret the `from` path, shared for all patterns", | ||
"type": "string" | ||
}, | ||
"copyUnmodified": { | ||
"description": "Copies files, regardless of modification, when using watchers", | ||
"type": "boolean" | ||
} | ||
}, | ||
"type": "array", | ||
"items": { | ||
"anyOf": [ | ||
{ | ||
"$ref": "#/definitions/StringPattern" | ||
}, | ||
{ | ||
"$ref": "#/definitions/ObjectPattern" | ||
} | ||
] | ||
} | ||
"title": "Options" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
{ | ||
"definitions": { | ||
"ObjectPattern": { | ||
"type": "object", | ||
"properties": { | ||
"from": { | ||
"anyOf": [ | ||
{ | ||
"type": "string", | ||
"minLength": 1 | ||
}, | ||
{ | ||
"type": "object" | ||
} | ||
] | ||
}, | ||
"to": { | ||
"type": "string" | ||
}, | ||
"context": { | ||
"type": "string" | ||
}, | ||
"toType": { | ||
"enum": ["dir", "file", "template"] | ||
}, | ||
"test": { | ||
"anyOf": [ | ||
{ | ||
"type": "string" | ||
}, | ||
{ | ||
"instanceof": "RegExp" | ||
} | ||
] | ||
}, | ||
"force": { | ||
"type": "boolean" | ||
}, | ||
"ignore": { | ||
"type": "array", | ||
"items": { | ||
"anyOf": [ | ||
{ | ||
"type": "string" | ||
}, | ||
{ | ||
"type": "object" | ||
} | ||
] | ||
} | ||
}, | ||
"flatten": { | ||
"type": "boolean" | ||
}, | ||
"cache": { | ||
"anyOf": [ | ||
{ | ||
"type": "boolean" | ||
}, | ||
{ | ||
"type": "object" | ||
} | ||
] | ||
}, | ||
"transform": { | ||
"instanceof": "Function" | ||
}, | ||
"transformPath": { | ||
"instanceof": "Function" | ||
} | ||
}, | ||
"required": ["from"] | ||
}, | ||
"StringPattern": { | ||
"type": "string", | ||
"minLength": 1 | ||
} | ||
}, | ||
"type": "array", | ||
"items": { | ||
"anyOf": [ | ||
{ | ||
"$ref": "#/definitions/StringPattern" | ||
}, | ||
{ | ||
"$ref": "#/definitions/ObjectPattern" | ||
} | ||
] | ||
} | ||
} |