mirror of
https://github.com/MadcowD/ell.git
synced 2024-09-22 16:14:36 +03:00
30 lines
766 B
Makefile
30 lines
766 B
Makefile
.PHONY: install npm-install npm-build
|
|
|
|
install: npm-install npm-build python-install
|
|
|
|
python-install:
|
|
poetry self add poetry-dynamic-versioning
|
|
pip uninstall -y ell
|
|
poetry install
|
|
poetry build
|
|
cd dist && pip install *.whl
|
|
rm -rf build
|
|
|
|
npm-install:
|
|
@echo "Running npm install"
|
|
cd ell-studio && npm install
|
|
|
|
npm-build:
|
|
@echo "Running npm build"
|
|
cd ell-studio && npm run build
|
|
@echo "Copying static files"
|
|
python -c "import os, shutil; \
|
|
source_dir = os.path.join('ell-studio', 'build'); \
|
|
target_dir = os.path.join('src', 'ell', 'studio', 'static'); \
|
|
shutil.rmtree(target_dir, ignore_errors=True); \
|
|
shutil.copytree(source_dir, target_dir); \
|
|
print(f'Copied static files from {source_dir} to {target_dir}')"
|
|
|
|
test:
|
|
poetry run pytest -vvv
|