Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions .heliumcli.yml

This file was deleted.

4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

SHELL := /usr/bin/env bash
PYTHON_BIN := python
HELIUMCLI_PROJECTS ?= '["platform", "frontend"]'
PROJECTS ?= platform frontend www
SKIP_UPDATE ?= 'false'
DEV_LOCAL_AWS_REGION ?= 'us-east-2'
PLATFORM ?= arm64
Expand All @@ -15,7 +15,7 @@ install-reqs:
install: install-reqs
$(PYTHON_BIN) -m pip install -r requirements.txt

@HELIUMCLI_FORCE_FETCH=True HELIUMCLI_SKIP_UPDATE_PULL=True HELIUMCLI_PROJECTS=$(HELIUMCLI_PROJECTS) helium-cli update-projects
@PROJECTS="$(PROJECTS)" ./bin/update-projects.sh

build: install
PLATFORM=$(PLATFORM) make -C projects/platform build-docker
Expand Down
27 changes: 27 additions & 0 deletions bin/update-projects.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/usr/bin/env bash
#
# Clone or update each Helium subproject under projects/, then run
# `make install` in it.

set -euo pipefail

GIT_PROJECT="${GIT_PROJECT:-git@github.com:HeliumEdu}"
PROJECTS="${PROJECTS:-platform frontend www}"
PROJECTS_DIR="projects"

mkdir -p "$PROJECTS_DIR"

for proj in $PROJECTS; do
echo "$proj"
project_path="$PROJECTS_DIR/$proj"

if [ ! -d "$project_path/.git" ]; then
echo "Cloning repo to ./$project_path"
git clone "$GIT_PROJECT/$proj.git" "$project_path"
else
(cd "$project_path" && git fetch --tags --prune --force && git pull)
fi

make install -C "$project_path"
echo ""
done
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
heliumcli==1.6.38
beautifulsoup4==4.13.4
html2text==2024.2.26