-
Notifications
You must be signed in to change notification settings - Fork 4
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
5 changed files
with
186 additions
and
34 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"validate": "./pattern-schema.json", | ||
"ignore": ["pattern-schema.json"] | ||
} |
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,121 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"title": "pattern manifest", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"required": [ | ||
"name", | ||
"version" | ||
], | ||
"properties": { | ||
"id": { | ||
"description": "Unique id of this pattern", | ||
"type": "string", | ||
"minLength": 1 | ||
}, | ||
"name": { | ||
"description": "Machine readable name of the pattern", | ||
"type": "string", | ||
"minLength": 1, | ||
"pattern": "^[[a-z]*[-]?[a-z]*]*$" | ||
}, | ||
"displayName": { | ||
"description": "Human readable name of the pattern", | ||
"type": "string", | ||
"minLength": 1 | ||
}, | ||
"version": { | ||
"description": "Semantic version of the pattern", | ||
"type": "string", | ||
"pattern": "^\\d\\.\\d\\.\\d(-[a-z]*){0,1}$" | ||
}, | ||
"versions": { | ||
"description": "Available semantic versions of the pattern", | ||
"type": "array", | ||
"minItems": 1, | ||
"items": { | ||
"description": "Semantic version of the pattern", | ||
"type": "string", | ||
"pattern": "^\\d\\.\\d\\.\\d(-[a-z]*){0,1}$" | ||
} | ||
}, | ||
"flag": { | ||
"description": "Stability flag of the pattern", | ||
"type": "string", | ||
"pattern": "^alpha|beta|rc|stable$" | ||
}, | ||
"tags": { | ||
"description": "Array of tags describing the pattern", | ||
"type": "array", | ||
"minItems": 1, | ||
"items": { | ||
"description": "Tag describing the pattern", | ||
"type": "string", | ||
"minLength": 1 | ||
}, | ||
"uniqueItems": true | ||
}, | ||
"data": { | ||
"description": "Custom data object supplied by user", | ||
"type": "object", | ||
"minProperties": 1 | ||
}, | ||
"meta": { | ||
"description": "Custom meta data object supplied by user", | ||
"type": "object", | ||
"minProperties": 1 | ||
}, | ||
"options": { | ||
"description": "Custom options object supplied by user", | ||
"type": "object", | ||
"minProperties": 1 | ||
}, | ||
"patterns": { | ||
"description": "Dependencies of the pattern", | ||
"type": "object", | ||
"minProperties": 1, | ||
"patternProperties": { | ||
"^.+$": { | ||
"type": "string", | ||
"pattern": "^(/)?([^/\u0000]+(/)?)+$" | ||
} | ||
} | ||
}, | ||
"demoPatterns": { | ||
"description": "Dependencies of the pattern used for demo purposes", | ||
"minProperties": 1, | ||
"patternProperties": { | ||
"^.+$": { | ||
"type": "string", | ||
"pattern": "^(/)?([^/\u0000]+(/)?)+$" | ||
} | ||
} | ||
}, | ||
"overrides": { | ||
"description": "Options for overriding of core pattern behaviour", | ||
"type": "object", | ||
"minProperties": 1, | ||
"properties": { | ||
"files": { | ||
"description": "Custom mapping between patternplate files and paths to use in exchange for this pattern", | ||
"type": "object", | ||
"minProperties": 1, | ||
"patternProperties": { | ||
"^.+$": { | ||
"type": "string", | ||
"pattern": "^(/)?([^/\u0000]+(/)?)+$" | ||
} | ||
} | ||
}, | ||
"demo": { | ||
"description": "Custom url to use as demo for this pattern", | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"_patternplate": { | ||
"description": "Technical values saved by patternplate core", | ||
"type": "object" | ||
} | ||
} | ||
} |
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,4 @@ | ||
{ | ||
"name": "pattern", | ||
"version": "0.1.0" | ||
} |