#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
	dh $@ --with nodejs

override_dh_auto_build:
	webpack --config debian/webpack.config.js \
	--target=node \
	--output-library=d3 \
	--output-library-target=umd \
	--entry index.js \
	--output build/d3-request.js
	webpack --config debian/webpack.config.js \
	--target node \
	--output-library-target=commonjs \
	--entry index.js \
	--output build/d3-request.node.js
