#!/usr/bin/make -f

export PYBUILD_NAME=pytest-html
export PYBUILD_TEST_ARGS=testing/test_unit.py

%:
	dh $@ --buildsystem=pybuild

# Rebuild the JavaScript bundle and the stylesheet removed from the
# upstream tarball.
execute_before_dh_auto_build:
	esbuild src/pytest_html/scripts/index.js --bundle \
		--outfile=src/pytest_html/resources/app.js
	sass --no-source-map --no-error-css src/layout/css/style.scss \
		src/pytest_html/resources/style.css
