Skip to content

Commit

Permalink
clean up logic about what should be included
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed May 21, 2019
1 parent 4476025 commit 3db4f3c
Show file tree
Hide file tree
Showing 42 changed files with 30 additions and 42 deletions.
19 changes: 17 additions & 2 deletions buildutils/src/ensure-repo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,23 @@ function ensureJupyterlab(): string[] {
} catch (e) {
return;
}
// Only include packages marked as core.
if (!data.jupyterlab || !data.jupyterlab.core) {
// Determine whether to include the package.
if (!data.jupyterlab) {
return;
}
// Skip if explicitly marked as not a core dep.
if (
'coreDependency' in data.jupyterlab &&
!data.jupyterlab.coreDependency
) {
return;
}
// Skip if it is not makred as an extension or a core dep.
if (
!data.jupyterlab.coreDependency &&
!data.jupyterlab.extension &&
!data.jupyterlab.mimeExtension
) {
return;
}

Expand Down
1 change: 0 additions & 1 deletion packages/application-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"access": "public"
},
"jupyterlab": {
"core": true,
"extension": true,
"schemaDir": "schema"
}
Expand Down
6 changes: 3 additions & 3 deletions packages/application/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@
"typedoc": "^0.14.2",
"typescript": "~3.4.3"
},
"jupyterlab": {
"coreDependency": true
},
"publishConfig": {
"access": "public"
},
"jupyterlab": {
"core": true
}
}
1 change: 0 additions & 1 deletion packages/apputils-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
"access": "public"
},
"jupyterlab": {
"core": true,
"extension": true,
"schemaDir": "schema"
}
Expand Down
3 changes: 3 additions & 0 deletions packages/attachments/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
"typedoc": "^0.14.2",
"typescript": "~3.4.3"
},
"jupyterlab": {
"coreDependency": false
},
"publishConfig": {
"access": "public"
}
Expand Down
3 changes: 3 additions & 0 deletions packages/cells/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@
"typedoc": "^0.14.2",
"typescript": "~3.4.3"
},
"jupyterlab": {
"coreDependency": false
},
"publishConfig": {
"access": "public"
}
Expand Down
3 changes: 3 additions & 0 deletions packages/codeeditor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
"typedoc": "^0.14.2",
"typescript": "~3.4.3"
},
"jupyterlab": {
"coreDependency": false
},
"publishConfig": {
"access": "public"
}
Expand Down
1 change: 0 additions & 1 deletion packages/codemirror-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"access": "public"
},
"jupyterlab": {
"core": true,
"extension": true,
"schemaDir": "schema"
}
Expand Down
1 change: 0 additions & 1 deletion packages/completer-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
"access": "public"
},
"jupyterlab": {
"core": true,
"extension": true,
"schemaDir": "schema"
}
Expand Down
1 change: 0 additions & 1 deletion packages/console-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
"access": "public"
},
"jupyterlab": {
"core": true,
"extension": true,
"schemaDir": "schema"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/coreutils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@
"access": "public"
},
"jupyterlab": {
"include": true
"coreDependency": true
}
}
1 change: 0 additions & 1 deletion packages/csvviewer-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"access": "public"
},
"jupyterlab": {
"core": true,
"extension": true
}
}
1 change: 0 additions & 1 deletion packages/docmanager-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
"access": "public"
},
"jupyterlab": {
"core": true,
"extension": true,
"schemaDir": "schema"
}
Expand Down
1 change: 0 additions & 1 deletion packages/documentsearch-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"access": "public"
},
"jupyterlab": {
"core": true,
"extension": true,
"schemaDir": "schema"
}
Expand Down
1 change: 0 additions & 1 deletion packages/extensionmanager-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
"access": "public"
},
"jupyterlab": {
"core": true,
"extension": true,
"schemaDir": "schema"
}
Expand Down
1 change: 0 additions & 1 deletion packages/faq-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"access": "public"
},
"jupyterlab": {
"core": true,
"extension": true
}
}
1 change: 0 additions & 1 deletion packages/filebrowser-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
"access": "public"
},
"jupyterlab": {
"core": true,
"extension": true,
"schemaDir": "schema"
}
Expand Down
1 change: 0 additions & 1 deletion packages/fileeditor-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
"access": "public"
},
"jupyterlab": {
"core": true,
"extension": true,
"schemaDir": "schema"
}
Expand Down
1 change: 0 additions & 1 deletion packages/help-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
"access": "public"
},
"jupyterlab": {
"core": true,
"extension": true,
"schemaDir": "schema"
}
Expand Down
1 change: 0 additions & 1 deletion packages/htmlviewer-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"access": "public"
},
"jupyterlab": {
"core": true,
"extension": true
}
}
1 change: 0 additions & 1 deletion packages/imageviewer-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
"access": "public"
},
"jupyterlab": {
"core": true,
"extension": true,
"schemaDir": "schema"
}
Expand Down
1 change: 0 additions & 1 deletion packages/inspector-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"access": "public"
},
"jupyterlab": {
"core": true,
"extension": true,
"schemaDir": "schema"
}
Expand Down
1 change: 0 additions & 1 deletion packages/javascript-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"access": "public"
},
"jupyterlab": {
"core": true,
"mimeExtension": true
}
}
1 change: 0 additions & 1 deletion packages/json-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
"access": "public"
},
"jupyterlab": {
"core": true,
"mimeExtension": true
}
}
1 change: 0 additions & 1 deletion packages/launcher-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"access": "public"
},
"jupyterlab": {
"core": true,
"extension": true,
"schemaDir": "schema"
}
Expand Down
1 change: 0 additions & 1 deletion packages/mainmenu-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
"access": "public"
},
"jupyterlab": {
"core": true,
"extension": true,
"schemaDir": "schema"
}
Expand Down
1 change: 0 additions & 1 deletion packages/markdownviewer-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
"access": "public"
},
"jupyterlab": {
"core": true,
"extension": true,
"schemaDir": "schema"
}
Expand Down
1 change: 0 additions & 1 deletion packages/mathjax2-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"access": "public"
},
"jupyterlab": {
"core": true,
"extension": true
}
}
1 change: 0 additions & 1 deletion packages/notebook-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
"access": "public"
},
"jupyterlab": {
"core": true,
"extension": true,
"schemaDir": "schema"
}
Expand Down
1 change: 0 additions & 1 deletion packages/pdf-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
"access": "public"
},
"jupyterlab": {
"core": true,
"mimeExtension": true
}
}
1 change: 0 additions & 1 deletion packages/rendermime-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"access": "public"
},
"jupyterlab": {
"core": true,
"extension": true
}
}
1 change: 0 additions & 1 deletion packages/running-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"access": "public"
},
"jupyterlab": {
"core": true,
"extension": true
}
}
1 change: 0 additions & 1 deletion packages/settingeditor-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"access": "public"
},
"jupyterlab": {
"core": true,
"extension": true,
"schemaDir": "schema"
}
Expand Down
1 change: 0 additions & 1 deletion packages/shortcuts-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
"access": "public"
},
"jupyterlab": {
"core": true,
"extension": true,
"schemaDir": "schema"
}
Expand Down
1 change: 0 additions & 1 deletion packages/statusbar-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
"access": "public"
},
"jupyterlab": {
"core": true,
"extension": true,
"schemaDir": "schema"
}
Expand Down
1 change: 0 additions & 1 deletion packages/tabmanager-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
"access": "public"
},
"jupyterlab": {
"core": true,
"extension": true
}
}
1 change: 0 additions & 1 deletion packages/terminal-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
"access": "public"
},
"jupyterlab": {
"core": true,
"extension": true,
"schemaDir": "schema"
}
Expand Down
1 change: 0 additions & 1 deletion packages/theme-dark-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"access": "public"
},
"jupyterlab": {
"core": true,
"extension": true,
"themePath": "style/index.css"
}
Expand Down
1 change: 0 additions & 1 deletion packages/theme-light-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"access": "public"
},
"jupyterlab": {
"core": true,
"extension": true,
"themePath": "style/index.css"
}
Expand Down
1 change: 0 additions & 1 deletion packages/tooltip-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
"access": "public"
},
"jupyterlab": {
"core": true,
"extension": true,
"schemaDir": "schema"
}
Expand Down
1 change: 0 additions & 1 deletion packages/vdom-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
"access": "public"
},
"jupyterlab": {
"core": true,
"extension": true
}
}
1 change: 0 additions & 1 deletion packages/vega5-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"access": "public"
},
"jupyterlab": {
"core": true,
"mimeExtension": true
}
}

0 comments on commit 3db4f3c

Please sign in to comment.