green-spider/Makefile

21 lines
374 B
Makefile
Raw Normal View History

2018-04-05 19:39:09 +02:00
.PHONY: webapp
# Python venv for running the spider locally
venv:
virtualenv -p python3 venv
venv/bin/pip3 install -r requirements.txt
spider: venv
venv/bin/python ./spider.py
webapp/node_modules:
cd webapp && npm install
# Build webapp
webapp: webapp/node_modules
cd webapp && npx webpack --config webpack.config.js
2018-04-05 20:24:40 +02:00
rm -rf ./docs/*
cp -r webapp/dist/* ./docs/