Add export and clean targets to Makefile

main
Marian Steinbach 4 years ago
parent be1320af0d
commit 081e51a59a
  1. 12
      Makefile

@ -8,6 +8,18 @@ dev:
build:
yarn build
# export JSON data for the webapp
export:
docker run --rm -ti \
-v $(PWD)/src:/out \
-v $(PWD)/secrets:/secrets \
-v $(PWD)/public/siteicons:/icons \
quay.io/netzbegruenung/green-spider:latest \
data_export.py /secrets/datastore-reader.json
# Copy build output to the /docs folder where it's served by Github pages
dist: build
cp -r build docs
clean:
rm -rf build

Loading…
Cancel
Save