Hilft Dir dabei, Deine BÜNDNIS 90/DIE GRÜNEN Website zu optimieren https://green-spider.netzbegruenung.de/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
green-spider/Makefile

35 lines
716 B

.PHONY: webapp dockerimage
# Build docker image
dockerimage:
docker pull debian:stretch-slim
docker build -t spider .
# Run spider in docker image
spider: dockerimage
docker run --rm -ti \
-v $(PWD)/webapp/dist/data:/out \
-v $(PWD)/docs/siteicons:/icons \
spider
test: dockerimage
4 years ago
docker run --rm -ti spider /spider_test.py
screenshots: venv
docker pull netzbegruenung/green-spider-screenshotter:latest
venv/bin/python ./screenshots.py
webapp/node_modules:
cd webapp && npm install
# Build webapp
webapp: webapp/node_modules
cd webapp && npx webpack --config webpack.config.js
cp -r webapp/dist/* ./docs/
rm webapp/dist/bundle.js
serve-webapp:
cd docs && ../venv/bin/python -m http.server