UNPKG

4.71 kBJSONView Raw
1{
2 "title": "JupyterLab Package Metadata",
3 "version": "0.1.0",
4 "description": "JupyterLab package.json settings.",
5 "definitions": {
6 "extension": {
7 "type": ["boolean", "string"]
8 },
9 "relativePath": {
10 "type": ["string", "null"]
11 },
12 "sharedObject": {
13 "description": "Modules that should be shared in the share scope. Property names are used to match requested modules in this compilation. Relative requests are resolved, module requests are matched unresolved, absolute paths will match resolved requests.",
14 "type": "object",
15 "additionalProperties": {
16 "description": "Module sharing information.",
17 "anyOf": [
18 {
19 "description": "Module is not shared. A local copy will be bundled and used.",
20 "enum": [false]
21 },
22 {
23 "$ref": "#/definitions/sharedConfig"
24 }
25 ]
26 }
27 },
28 "sharedConfig": {
29 "description": "Configuration data for package sharing.",
30 "type": "object",
31 "additionalProperties": false,
32 "properties": {
33 "bundled": {
34 "description": "The module will be bundled and provided to the system as a shared module (the system will use the latest bundled version from any extension). This bundled local copy will be used if the system version does not match the requiredVersion. Defaults to true",
35 "type": "boolean",
36 "default": "true"
37 },
38 "requiredVersion": {
39 "description": "Version requirement from module in share scope. Defaults to the version required in the package.json, or false if the version cannot be determined. You can specify it here in case the version cannot be determined automatically.",
40 "anyOf": [
41 {
42 "description": "No version requirement check.",
43 "enum": [false]
44 },
45 {
46 "description": "The semver range required for the shared module.",
47 "type": "string"
48 }
49 ]
50 },
51 "singleton": {
52 "description": "Allow only a single version of the shared module in share scope. Will only use the system provided version, and not fall back to a local bundled copy. Default is false.",
53 "type": "boolean",
54 "default": "false"
55 },
56 "strictVersion": {
57 "description": "Throw an error (instead of a warning) if the shared module version does not satisfy the requiredVersion. Defaults to false when forced to use the system-provided version of the module (i.e., singleton is true or bundled is false), in which case we will just print a console warning if the system-provided version does not satisfy the requiredVersion. This has no effect if requiredVersion is false.",
58 "type": "boolean"
59 }
60 }
61 }
62 },
63 "properties": {
64 "extension": {
65 "title": "Extension",
66 "description": "Presence of or relative path to a standard JupyterLab extension",
67 "$ref": "#/definitions/extension",
68 "default": false
69 },
70 "mimeExtension": {
71 "title": "Mime extension",
72 "description": "Presence of or relative path to a JupyterLab MIME renderer extension",
73 "$ref": "#/definitions/extension",
74 "default": false
75 },
76 "themePath": {
77 "title": "Theme path",
78 "description": "The relative path to theme files",
79 "$ref": "#/definitions/relativePath",
80 "default": null
81 },
82 "schemaDir": {
83 "title": "Schema directory",
84 "description": "The relative path to schema files",
85 "$ref": "#/definitions/relativePath",
86 "default": null
87 },
88 "outputDir": {
89 "title": "Output directory",
90 "description": "The relative path to the static assets",
91 "$ref": "#/definitions/relativePath",
92 "default": "static"
93 },
94 "webpackConfig": {
95 "title": "Custom Webpack config",
96 "description": "The relative path to a custom webpack config",
97 "$ref": "#/definitions/relativePath",
98 "default": null
99 },
100 "sharedPackages": {
101 "description": "Modules that should be shared in the share scope. When provided, property names are used to match requested modules in this compilation.",
102 "ref": "#/definitions/sharedObject"
103 },
104 "discovery": {
105 "title": "Discovery metadata",
106 "description": "Discovery metadata used to for companion packages",
107 "type": "object"
108 },
109 "disabledExtensions": {
110 "title": "List of disabled extension modules and/or regex patterns for extension ids",
111 "type": "array",
112 "items": {
113 "type": "string"
114 }
115 }
116 },
117 "additionalProperties": false,
118 "type": "object"
119}