feat: make file build and install commands

This commit is contained in:
ogabrielluiz 2023-03-08 08:21:51 -03:00
commit 7feb6a77e4
2 changed files with 16 additions and 5 deletions

View file

@ -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'
@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'

View file

@ -1,3 +0,0 @@
#! /bin/bash
cd ../space_flow && npm run build