Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

Add labextension develop cli #37

Merged
merged 8 commits into from
Aug 1, 2020
Merged

Add labextension develop cli #37

merged 8 commits into from
Aug 1, 2020

Conversation

blink1073
Copy link
Contributor

@blink1073 blink1073 commented Jul 28, 2020

Fixes #29

  • Adds packages with minimal metadata (will form the basis of a cookiecutter that just has the shim module).
  • Surfaces a disabled_labextensions trait to take the place of the previous page_config version. We will use this instead of the way server_extensions are enabled/disabled since these can be specific plugins within extensions.
  • Adds labextension develop command
  • Includes dynamic extensions in list
  • Adds support for uninstalling dynamic extensions

@blink1073
Copy link
Contributor Author

A thought: jupyter labextension link could be reclaimed for this, and use the symlink feature from nbextensions. Our watch command would be simpler, and link didn't work all that well. We'd be removing support for linkedPackages, but evidence has shown that it was broken anyway.

@blink1073
Copy link
Contributor Author

@jasongrout I'm going to build out develop for now, but what do you think about reclaiming link?

@blink1073 blink1073 force-pushed the labextension-develop branch from 55f034e to 53d997d Compare July 28, 2020 19:59
@blink1073
Copy link
Contributor Author

image

@blink1073
Copy link
Contributor Author

$ python labextensions.py uninstall @jupyterlab/example-federated-md
Removing: /Users/stslve/miniconda/envs/module-federation/share/jupyter

add todos

Add package infrastructure

add sub packages

clean up metadata handling

wip add handling of dynamic exts

add debug info

Revert "add debug info"

This reverts commit f1f51de.

wip

run node explicitly

remove console logs

finish labextension develop command

wip uninstall dynamic lab extensions

Fully integrated develop command

Fully handle uninstall
@blink1073 blink1073 force-pushed the labextension-develop branch from a89a6a2 to 42bd32f Compare July 31, 2020 11:32
@blink1073
Copy link
Contributor Author

blink1073 commented Aug 1, 2020

$ python labextensions.py disable @jupyterlab/example-federated-md
$ python labextensions.py list
JupyterLab v3.0.0a4
/Users/stslve/miniconda/envs/module-federation/share/jupyter/labextensions
        @jupyterlab/example-federated-md v2.1.0 disabled OK
$ python labextensions.py enable @jupyterlab/example-federated-md
$ python labextensions.py list
JupyterLab v3.0.0a4
/Users/stslve/miniconda/envs/module-federation/share/jupyter/labextensions
        @jupyterlab/example-federated-md v2.1.0  enabled  OK

@blink1073 blink1073 changed the title [WIP] Add labextension develop cli Add labextension develop cli Aug 1, 2020
@blink1073 blink1073 merged commit 68c4aac into master Aug 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add CLI for extension authors
1 participant