diff --git a/mesop/cli/BUILD b/mesop/cli/BUILD index e6779468d..8b195c2ab 100644 --- a/mesop/cli/BUILD +++ b/mesop/cli/BUILD @@ -42,6 +42,23 @@ py_binary( deps = [":cli_lib"], ) +# Editor CLI +py_binary( + name = "editor_cli", + srcs = ["cli.py"], + data = COMMON_DATA + [ + "//mesop/web/src/app/editor:web_package", + ], + main = "cli.py", + tags = [ + # This tag instructs ibazel to pipe into stdin a event describing actions. + "ibazel_notify_changes", + ], + # Need to expose for Colab usage + visibility = ["//build_defs:mesop_users"], + deps = [":cli_lib"], +) + # Dev CLI py_binary( name = "dev_cli", diff --git a/scripts/cli.sh b/scripts/cli.sh index 79fcd1232..7e8d88134 100755 --- a/scripts/cli.sh +++ b/scripts/cli.sh @@ -1,2 +1,2 @@ (lsof -t -i:32123 | xargs kill) || true && \ -ibazel run //mesop/cli -- --path="mesop/mesop/example_index.py" --reload_demo_modules +ibazel run //mesop/cli:editor_cli -- --path="mesop/mesop/example_index.py" --reload_demo_modules