diff --git a/Makefile b/Makefile index a9ec0764f..d29527f41 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint +.PHONY: all format lint build all: help @@ -12,7 +12,21 @@ lint: poetry run black . --check poetry run ruff . +install_frontend: + cd langflow/frontend && npm install + +build_frontend: + cd langflow/frontend && npm run build + +build: + make install_frontend + make build_frontend + poetry build + help: @echo '----' @echo 'format - run code formatters' - @echo 'lint - run linters' \ No newline at end of file + @echo 'lint - run linters' + @echo 'install_frontend - install the frontend dependencies' + @echo 'build_frontend - build the frontend static files' + @echo 'build - build the frontend static files and package the project' \ No newline at end of file diff --git a/langflow/build b/langflow/build deleted file mode 100755 index 1a67cf140..000000000 --- a/langflow/build +++ /dev/null @@ -1,3 +0,0 @@ -#! /bin/bash - -cd ../space_flow && npm run build