@servable/tools
Version:
Servable tools is a utility that builds a protocol's manifest and documents it.
542 lines • 15.1 kB
JSON
{
"id": "root",
"name": "protocol",
"description": "protocol",
"routes": [
{
"type": "folder",
"path": "",
"priority": 0,
"children": [
{
"id": "main",
"name": "Main",
"description": "Main entry",
"routes": [
{
"type": "file",
"path": "main",
"mimeTypes": [
"text/javascript"
]
}
]
},
{
"id": "index",
"name": "Index",
"description": "Index",
"routes": [
{
"type": "file",
"path": "index",
"mimeTypes": [
"application/json"
]
},
{
"type": "file",
"path": "manifest",
"mimeTypes": [
"application/json"
]
},
{
"type": "file",
"path": "module",
"mimeTypes": [
"application/json"
]
}
]
},
{
"id": "README",
"routes": [
{
"type": "file",
"mimeTypes": [
"text/markdown"
],
"path": "README"
}
]
},
{
"id": "assets",
"routes": [
{
"type": "folder",
"path": "assets",
"children": [
{
"id": "icon",
"routes": [
{
"type": "file",
"mimeTypes": [
"image/svg+xml",
"image/png",
"image/jpeg",
"image/gif",
"image/webp"
],
"path": "icon",
"variants": [
"@2x",
"@3x"
],
"params": {
"quality": 100,
"maxWidth": 100,
"maxHeight": 100
}
}
]
},
{
"id": "thumbnail",
"routes": [
{
"type": "file",
"mimeTypes": [
"image/svg+xml",
"image/png",
"image/jpeg",
"image/gif",
"image/webp"
],
"path": "thumbnail",
"params": {
"quality": 80,
"maxWidth": 2048
},
"variants": [
"@2x",
"@3x"
]
}
]
},
{
"id": "cover",
"routes": [
{
"type": "file",
"mimeTypes": [
"image/png",
"image/jpeg"
],
"path": "cover",
"variants": [
"@2x",
"@3x"
]
}
]
}
]
}
]
},
{
"id": "target",
"routes": [
{
"type": "folder",
"path": "target",
"children": [
{
"id": "class",
"routes": [
{
"type": "folder",
"path": "class",
"priority": 0,
"children": [
{
"id": "index",
"routes": [
{
"type": "file",
"mimeTypes": [
"text/javascript"
],
"path": "index"
}
]
},
{
"id": "protocols",
"routes": [
{
"type": "file",
"mimeTypes": [
"text/javascript"
],
"path": "protocols"
}
]
}
]
}
]
},
{
"id": "triggers",
"routes": [
{
"type": "folder",
"path": "triggers",
"priority": 0,
"isDeprecated": false,
"children": [
{
"id": "beforeSave",
"routes": [
{
"type": "file",
"mimeTypes": [
"text/javascript"
],
"path": "beforesave"
}
]
},
{
"id": "afterSave",
"routes": [
{
"type": "file",
"mimeTypes": [
"text/javascript"
],
"path": "aftersave"
}
]
},
{
"id": "beforeFind",
"routes": [
{
"type": "file",
"mimeTypes": [
"text/javascript"
],
"path": "beforefind"
}
]
},
{
"id": "afterFind",
"routes": [
{
"type": "file",
"mimeTypes": [
"text/javascript"
],
"path": "afterfind"
}
]
},
{
"id": "beforeDelete",
"routes": [
{
"type": "file",
"mimeTypes": [
"text/javascript"
],
"path": "beforedelete"
}
]
},
{
"id": "afterDelete",
"routes": [
{
"type": "file",
"mimeTypes": [
"text/javascript"
],
"path": "afterdelete"
}
]
}
]
}
]
},
{
"id": "routes",
"routes": [
{
"type": "filesCollection",
"path": "routes"
}
]
}
]
}
]
},
{
"id": "managed",
"routes": [
{
"type": "folder",
"path": "managed",
"children": [
{
"id": "classes",
"routes": [
{
"type": "templateCollection",
"templateId": "class",
"path": "classes"
}
]
},
{
"id": "liveClasses",
"name": "Live classes",
"description": "Live classes",
"routes": [
{
"type": "file",
"path": "liveclasses",
"mimeTypes": [
"text/javascript"
]
}
]
}
]
}
]
},
{
"id": "afterInit",
"routes": [
{
"type": "folder",
"path": "afterInit",
"priority": 0,
"children": [
{
"id": "index",
"routes": [
{
"type": "file",
"mimeTypes": [
"text/javascript"
],
"path": "index"
}
]
}
]
}
]
},
{
"id": "beforeInit",
"routes": [
{
"type": "folder",
"path": "beforeInit",
"priority": 0,
"children": [
{
"id": "index",
"routes": [
{
"type": "file",
"mimeTypes": [
"text/javascript"
],
"path": "index"
}
]
}
]
}
]
},
{
"id": "config",
"routes": [
{
"type": "folder",
"path": "config",
"priority": 0,
"children": [
{
"id": "conditions",
"routes": [
{
"type": "file",
"mimeTypes": [
"application/json"
],
"path": "conditions"
}
]
},
{
"id": "entries",
"routes": [
{
"type": "file",
"mimeTypes": [
"application/json"
],
"path": "entries"
}
]
},
{
"id": "groups",
"routes": [
{
"type": "file",
"mimeTypes": [
"application/json"
],
"path": "groups"
}
]
}
]
}
]
},
{
"id": "seed",
"routes": [
{
"type": "folder",
"path": "seed",
"priority": 0,
"children": [
{
"id": "index",
"routes": [
{
"type": "file",
"mimeTypes": [
"text/javascript"
],
"path": "index"
}
]
}
]
}
]
},
{
"id": "system",
"routes": [
{
"type": "folder",
"path": "system",
"priority": 0,
"children": [
{
"id": "docker",
"routes": [
{
"type": "folder",
"path": "docker",
"priority": 0,
"children": [
{
"id": "docker-compose",
"routes": [
{
"type": "file",
"mimeTypes": [
"text/yaml"
],
"path": "docker-compose"
}
]
},
{
"id": "adaptPayload",
"routes": [
{
"type": "file",
"mimeTypes": [
"text/javascript"
],
"path": "adaptpayload"
}
]
}
]
}
]
}
]
}
]
},
{
"id": "functions",
"routes": [
{
"type": "filesCollection",
"path": "functions",
"priority": 0
},
{
"path": "cloudCode",
"priority": 1,
"isDeprecated": true
}
]
},
{
"id": "services",
"routes": [
{
"type": "filesCollection",
"path": "services"
}
]
},
{
"id": "routes",
"routes": [
{
"type": "filesCollection",
"path": "routes"
}
]
},
{
"id": "lib",
"routes": [
{
"type": "filesCollection",
"path": "lib",
"priority": 0
}
]
},
{
"id": "schema",
"routes": [
{
"type": "templateCollection",
"templateId": "schema",
"path": "schema"
}
]
}
]
}
]
}